TTLibError: bad glyph record (leftover bytes: 4)
別のエラーがでるようになった。
>python2 d:\python27\scripts\ttx DroidSansArmenian.ttf Dumping "DroidSansArmenian.ttf" to "DroidSansArmenian#1.ttx"... Dumping 'GlyphOrder' table... Dumping 'head' table... Dumping 'hhea' table... Dumping 'maxp' table... Dumping 'OS/2' table... Dumping 'hmtx' table... Dumping 'cmap' table... Dumping 'loca' table... Dumping 'glyf' table... Traceback (most recent call last): File "D:\Python27\lib\site-packages\FontTools\fontTools\ttx.py", line 303, in main process(jobs, options) File "D:\Python27\lib\site-packages\FontTools\fontTools\ttx.py", line 288, in process action(input, output, options) File "D:\Python27\lib\site-packages\FontTools\fontTools\ttx.py", line 180, in ttDump disassembleInstructions=options.disassembleInstructions) File "D:\Python27\lib\site-packages\FontTools\fontTools\ttLib\__init__.py", line 267, in saveXML self._tableToXML(tableWriter, tag, progress) File "D:\Python27\lib\site-packages\FontTools\fontTools\ttLib\__init__.py", line 301, in _tableToXML table.toXML(writer, self, progress) File "D:\Python27\lib\site-packages\FontTools\fontTools\ttLib\tables\_g_l_y_f.py", line 90, in toXML glyph = self[glyphName] File "D:\Python27\lib\site-packages\FontTools\fontTools\ttLib\tables\_g_l_y_f.py", line 150, in __getitem__ glyph.expand(self) File "D:\Python27\lib\site-packages\FontTools\fontTools\ttLib\tables\_g_l_y_f.py", line 229, in expand self.decompileCoordinates(data) File "D:\Python27\lib\site-packages\FontTools\fontTools\ttLib\tables\_g_l_y_f.py", line 376, in decompileCoordinates self.decompileCoordinatesRaw(nCoordinates, data) File "D:\Python27\lib\site-packages\FontTools\fontTools\ttLib\tables\_g_l_y_f.py", line 451, in decompileCoordinatesRaw raise ttLib.TTLibError, "bad glyph record (leftover bytes: %s)" % (len(data) - (xDataLen + yDataLen)) TTLibError: bad glyph record (leftover bytes: 4) (Hit any key to exit)
こちらのfonttoolsをインストールしたところ、エラーがでなくなった。
https://github.com/behdad/fonttools
http://sourceforge.net/p/fonttools/bugs/27/