のねのBlog

パソコンやソフト開発で起きた問題など書きます。よろしくお願いします。

ttx -t EBDT -z bitwise

$ ttx -t EBDT -z bitwise MS-Gothic.ttf
Dumping "MS-Gothic.ttf" to "MS-Gothic#7.ttx"...
Dumping 'EBDT' table...
Traceback (most recent call last):
  File "/Users/m_fujii/bin/FDK/Tools/osx/../SharedData/FDKScripts/ttx.py", line 13, in <module>
    ttx.main(sys.argv[1:])
  File "/Users/m_fujii/bin/FDK/Tools/osx/Python/Current/lib/python2.7/site-packages/FontTools/fontTools/ttx.py", line 310, in main
    process(jobs, options)
  File "/Users/m_fujii/bin/FDK/Tools/osx/Python/Current/lib/python2.7/site-packages/FontTools/fontTools/ttx.py", line 295, in process
    action(input, output, options)
  File "/Users/m_fujii/bin/FDK/Tools/osx/Python/Current/lib/python2.7/site-packages/FontTools/fontTools/ttx.py", line 206, in ttDump
    bitmapGlyphDataFormat=options.bitmapGlyphDataFormat)
  File "/Users/m_fujii/bin/FDK/Tools/osx/Python/Current/lib/python2.7/site-packages/FontTools/fontTools/ttLib/__init__.py", line 283, in saveXML
    self._tableToXML(tableWriter, tag, progress, quiet)
  File "/Users/m_fujii/bin/FDK/Tools/osx/Python/Current/lib/python2.7/site-packages/FontTools/fontTools/ttLib/__init__.py", line 323, in _tableToXML
    table.toXML(writer, self)
  File "/Users/m_fujii/bin/FDK/Tools/osx/Python/Current/lib/python2.7/site-packages/FontTools/fontTools/ttLib/tables/E_B_D_T_.py", line 143, in toXML
    curBitmap.toXML(strikeIndex, curName, writer, ttFont)
  File "/Users/m_fujii/bin/FDK/Tools/osx/Python/Current/lib/python2.7/site-packages/FontTools/fontTools/ttLib/tables/E_B_D_T_.py", line 410, in toXML
    self.writeData(strikeIndex, glyphName, writer, ttFont)
  File "/Users/m_fujii/bin/FDK/Tools/osx/Python/Current/lib/python2.7/site-packages/FontTools/fontTools/ttLib/tables/E_B_D_T_.py", line 442, in writeData
    writeFunc(strikeIndex, glyphName, self, writer, ttFont)
  File "/Users/m_fujii/bin/FDK/Tools/osx/Python/Current/lib/python2.7/site-packages/FontTools/fontTools/ttLib/tables/E_B_D_T_.py", line 298, in _writeBitwiseImageData
    metrics = bitmapObject.exportMetrics
  File "/Users/m_fujii/bin/FDK/Tools/osx/Python/Current/lib/python2.7/site-packages/FontTools/fontTools/ttLib/tables/E_B_D_T_.py", line 395, in __getattr__
    raise AttributeError(attr)
AttributeError: exportMetrics