There seems to be a problem with amf file parsing. If some field in the amf header does not have
corresponding value to it, the parsing fails like
File "C:\Python\reportlab\pdfbase\pdfmetrics.py", line 110, in parseAFMFile
left, right = string.split(line, ' ', 1)
ValueError: unpack list of wrong size
This is due to the fact that parser assumes each header row containing exactly 2 fields. If the
second field is missing, this occurs. The parser should at least rise some exception like "incomplete
header information". Or, the parser might just silently ignore this incompleteness by inserting a
'None' -value to the missing component.
Log in to post a comment.