#29 traceback from mangal.ttf

Not a bug
closed-invalid
OpenType (9)
5
2009-02-22
2006-12-18
No

When decompiling mangal.ttf (In particular a GSUB class based contextual chaining lookup) ttx gives a traceback. I believe this is because the LookaheadClassDef offset is 0 (the docs don't mention this being allowed, but it appears to be).

$ Tools/ttx mangal.ttf
/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/FontTools/fontTools/ttx.py:177: DeprecationWarning: macfs is deprecated, use Carbon.File, Carbon.Folder or EasyDialogs
import macfs
Dumping "mangal.ttf" to "mangal.ttx"...
Dumping 'GlyphOrder' table...
Dumping 'DSIG' table...
Dumping 'GDEF' table...
Traceback (most recent call last):
File "Tools/ttx", line 11, in ?
ttx.main(sys.argv[1:])
File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/FontTools/fontTools/ttx.py", line 250, in main
process(jobs, options)
File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/FontTools/fontTools/ttx.py", line 235, in process
action(input, output, options)
File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/FontTools/fontTools/ttx.py", line 154, in ttDump
disassembleInstructions=options.disassembleInstructions)
File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/FontTools/fontTools/ttLib/__init__.py", line 220, in saveXML
self._tableToXML(tableWriter, tag, progress)
File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/FontTools/fontTools/ttLib/__init__.py", line 235, in _tableToXML
table = self[tag]
File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/FontTools/fontTools/ttLib/__init__.py", line 322, in __getitem__
table.decompile(data, self)
File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/FontTools/fontTools/ttLib/tables/otBase.py", line 19, in decompile
self.table.decompile(reader, font)
File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/FontTools/fontTools/ttLib/tables/otBase.py", line 316, in decompile
table[conv.name] = conv.read(reader, font, tableStack)
File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/FontTools/fontTools/ttLib/tables/otConverters.py", line 166, in read
table.decompile(subReader, font, tableStack)
File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/FontTools/fontTools/ttLib/tables/otBase.py", line 313, in decompile
l.append(conv.read(reader, font, tableStack))
File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/FontTools/fontTools/ttLib/tables/otConverters.py", line 166, in read
table.decompile(subReader, font, tableStack)
File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/FontTools/fontTools/ttLib/tables/otBase.py", line 313, in decompile
l.append(conv.read(reader, font, tableStack))
File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/FontTools/fontTools/ttLib/tables/otConverters.py", line 166, in read
table.decompile(subReader, font, tableStack)
File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/FontTools/fontTools/ttLib/tables/otBase.py", line 313, in decompile
l.append(conv.read(reader, font, tableStack))
File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/FontTools/fontTools/ttLib/tables/otConverters.py", line 166, in read
table.decompile(subReader, font, tableStack)
File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/FontTools/fontTools/ttLib/tables/otBase.py", line 313, in decompile
l.append(conv.read(reader, font, tableStack))
File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/FontTools/fontTools/ttLib/tables/otConverters.py", line 166, in read
table.decompile(subReader, font, tableStack)
File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/FontTools/fontTools/ttLib/tables/otBase.py", line 312, in decompile
for i in range(tableStack.getValue(conv.repeat) + conv.repeatOffset):
File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/FontTools/fontTools/ttLib/tables/otBase.py", line 275, in getValue
return self.__findTable(name)[name]
File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/FontTools/fontTools/ttLib/tables/otBase.py", line 286, in __findTable
raise KeyError, name
KeyError: 'LookAheadGlyphCount'

Discussion

  • Just van Rossum

    Just van Rossum - 2006-12-18
    • assigned_to: nobody --> jvr
     
  • Just van Rossum

    Just van Rossum - 2008-02-29

    Logged In: YES
    user_id=92689
    Originator: NO

    I downloaded a mangal.ttf somewhere and it dumps fine, but it seems very likely this is a different version. If it's a free font, can you attach it to this issue? Otherwise I'd appreciate an email.

     
  • Paul Wise

    Paul Wise - 2009-02-22

    I can't reproduce this with 2.2 and any of the different versions of the font I found on the web, closing as invalid.

     
  • Paul Wise

    Paul Wise - 2009-02-22
    • milestone: --> Not a bug
    • status: open --> closed-invalid
     

Log in to post a comment.