#14 Dumping Legendum.otf fails on 'kern' table

closed-fixed
TrueType (18)
5
2014-08-18
2003-09-18
No

Werner Lemberg reports that dumping Legendum.otf (from
http://home.kabelfoon.nl/~slam/fonts/fonts.html\) traces
back when decompiling the 'kern' table:

File "/usr/bin/ttx", line 11, in ?
ttx.main(sys.argv[1:])
File ".../fontTools/ttx.py", line 261, in main
process(jobs, options)
File ".../fontTools/ttx.py", line 246, in process
action(input, output, options)
File ".../fontTools/ttx.py", line 161, in ttDump

disassembleInstructions=options.disassembleInstructions)
File ".../fontTools/ttLib/__init__.py", line 230, in saveXML
self._tableToXML(tableWriter, tag, progress)
File ".../fontTools/ttLib/__init__.py", line 245, in
_tableToXML
table = self[tag]
File ".../fontTools/ttLib/__init__.py", line 339, in
__getitem__
table.decompile(data, self)
File ".../fontTools/ttLib/tables/_k_e_r_n.py", line 40, in
decompile
subtable.decompile(data[:length], ttFont)
File ".../fontTools/ttLib/tables/_k_e_r_n.py", line 91, in
decompile
left, right, value = struct.unpack(">HHh", data[:6])
struct.error: unpack str size does not match format

Discussion

  • Just van Rossum

    Just van Rossum - 2004-09-25
    • status: open --> closed-fixed
     
  • Just van Rossum

    Just van Rossum - 2004-09-25

    Logged In: YES
    user_id=92689

    I added a workaround for buggy kern data.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks