#31 TTX fails to assemble TTX file

closed-works-for-me
None
5
2008-03-01
2007-11-16
No

I have successfully used TTX to disassemble an OpenType font with a MATH table, which I have created with FontForge. After slightly editing the XML file, in particular changing

<fsSelection value="00000000 01000000"/>

to

<fsSelection value="00000000 11000000"/>, TTX fails to
assemble to resulting file. Here is the output I get:

apostolo@dhcppc0>> ttx Asana-Math.ttx
Compiling "Asana-Math.ttx" to "Asana-Math#16.otf"...
Parsing 'GlyphOrder' table...
Parsing 'CFF ' table...
Parsing 'FFTM' table...
Parsing 'GDEF' table...
Parsing 'GPOS' table...
Parsing 'GSUB' table...
Parsing 'MATH' table...
Parsing 'OS/2' table...
Parsing 'cmap' table...
Parsing 'feat' table...
Parsing 'head' table...
Parsing 'hhea' table...
Parsing 'hmtx' table...
Parsing 'maxp' table...
Parsing 'morx' table...
Parsing 'name' table...
Parsing 'post' table...
Parsing 'prop' table...
Traceback (most recent call last):
File "/bin/ttx", line 11, in ?
ttx.main(sys.argv[1:])
File "/usr/lib/python2.4/site-packages/FontTools/fontTools/ttx.py", line 250, in main
process(jobs, options)
File "/usr/lib/python2.4/site-packages/FontTools/fontTools/ttx.py", line 235, in process
action(input, output, options)
File "/usr/lib/python2.4/site-packages/FontTools/fontTools/ttx.py", line 164, in ttCompile
ttf.save(output)
File "/usr/lib/python2.4/site-packages/FontTools/fontTools/ttLib/__init__.py", line 163, in save
self._writeTable(tag, writer, done)
File "/usr/lib/python2.4/site-packages/FontTools/fontTools/ttLib/__init__.py", line 512, in _writeTable
tabledata = self.getTableData(tag)
File "/usr/lib/python2.4/site-packages/FontTools/fontTools/ttLib/__init__.py", line 524, in getTableData
return self.tables[tag].compile(self)
File "/usr/lib/python2.4/site-packages/FontTools/fontTools/ttLib/tables/otBase.py", line 33, in compile
self.table.compile(writer, font)
File "/usr/lib/python2.4/site-packages/FontTools/fontTools/ttLib/tables/otBase.py", line 346, in compile
conv.write(writer, font, tableStack, value)
File "/usr/lib/python2.4/site-packages/FontTools/fontTools/ttLib/tables/otConverters.py", line 175, in write
value.compile(subWriter, font, tableStack)
File "/usr/lib/python2.4/site-packages/FontTools/fontTools/ttLib/tables/otBase.py", line 346, in compile
conv.write(writer, font, tableStack, value)
File "/usr/lib/python2.4/site-packages/FontTools/fontTools/ttLib/tables/otConverters.py", line 175, in write
value.compile(subWriter, font, tableStack)
File "/usr/lib/python2.4/site-packages/FontTools/fontTools/ttLib/tables/otBase.py", line 324, in compile
table = self.preWrite(font)
File "/usr/lib/python2.4/site-packages/FontTools/fontTools/ttLib/tables/otTables.py", line 48, in preWrite
rawTable = {"GlyphArray": self.glyphs}
AttributeError: Coverage instance has no attribute 'glyphs'

Discussion

    • assigned_to: nobody --> jvr
     
  • Logged In: YES
    user_id=92689
    Originator: NO

    I doubt whether the bug has either to do with the editing of the fsSelection field or the MATH table. Can you tell me which font this is?

     
    • status: open --> closed-works-for-me
     
  • Logged In: YES
    user_id=92689
    Originator: NO

    Thanks!

    I can't reproduce the problem with current CVS of FontTools, closing as "Works For Me".