Error in OS/2 table of mona.ttf
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
fonttools (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: ttf-mona
Dumpint OS/2 table of mona.ttf results in the following error:
$ ttx -d . -t OS/2 /usr/share/
Dumping "/usr/share/
Traceback (most recent call last):
File "/usr/bin/ttx", line 11, in <module>
ttx.
File "/usr/lib/
process(jobs, options)
File "/usr/lib/
action(input, output, options)
File "/usr/lib/
disassemble
File "/usr/lib/
self.
File "/usr/lib/
table = self[tag]
File "/usr/lib/
table.
File "/usr/lib/
sstruct.
File "/usr/lib/
return unpack(format, data[:length], object), data[length:]
File "/usr/lib/
elements = struct.
File "/usr/lib/
return o.unpack(s)
struct.error: unpack requires a string argument of length 18
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/
report_file = open(pr_filename, 'wt')
IOError: [Errno 13] Permission denied: '/var/crash/
Original exception was:
Traceback (most recent call last):
File "/usr/bin/ttx", line 11, in <module>
ttx.
File "/usr/lib/
process(jobs, options)
File "/usr/lib/
action(input, output, options)
File "/usr/lib/
disassemble
File "/usr/lib/
self.
File "/usr/lib/
table = self[tag]
File "/usr/lib/
table.
File "/usr/lib/
sstruct.
File "/usr/lib/
return unpack(format, data[:length], object), data[length:]
File "/usr/lib/
elements = struct.
File "/usr/lib/
return o.unpack(s)
struct.error: unpack requires a string argument of length 18
Please fix the OS/2 table of mona.ttf so that ttx is able to dump it and also other applications can access this data without errors.
affects: | xfonts-mona (Ubuntu) → fonttools (Ubuntu) |
tags: |
added: fixed-upstream removed: fix-in-progress-upstream |
Changed in fonttools (Ubuntu): | |
status: | New → Fix Committed |
also these errors occur: fonts/truetype/ mona/mona. ttf fonts/truetype/ mona/mona. ttf" to "/tmp/mona# 4.ttx". .. main(sys. argv[1: ]) python2. 5/site- packages/ FontTools/ fontTools/ ttx.py" , line 289, in main python2. 5/site- packages/ FontTools/ fontTools/ ttx.py" , line 274, in process python2. 5/site- packages/ FontTools/ fontTools/ ttx.py" , line 171, in ttDump Instructions= options. disassembleInst ructions) python2. 5/site- packages/ FontTools/ fontTools/ ttLib/_ _init__ .py", line 267, in saveXML _tableToXML( tableWriter, tag, progress) python2. 5/site- packages/ FontTools/ fontTools/ ttLib/_ _init__ .py", line 301, in _tableToXML toXML(writer, self, progress)
$ ttx -d /tmp /usr/share/
Dumping "/usr/share/
Dumping 'GlyphOrder' table...
Dumping 'head' table...
Dumping 'hhea' table...
Dumping 'maxp' table...
An exception occurred during the decompilation of the 'OS/2' table
Dumping 'OS/2' table...
An exception occurred during the decompilation of the 'hmtx' table
Dumping 'hmtx' table...
Dumping 'cmap' table...
Dumping 'fpgm' table...
Dumping 'cvt ' table...
An exception occurred during the decompilation of the 'loca' table
Dumping 'loca' table...
An exception occurred during the decompilation of the 'glyf' table
Dumping 'glyf' table...
Traceback (most recent call last):
File "/usr/bin/ttx", line 11, in <module>
ttx.
File "/usr/lib/
process(jobs, options)
File "/usr/lib/
action(input, output, options)
File "/usr/lib/
disassemble
File "/usr/lib/
self.
File "/usr/lib/
table.
TypeError: toXML() takes exactly 3 arguments (4 given)