Bugfix for width-array of TrueType and AFM-Fonts
------------------------------------------------
Key: PDFBOX-355
URL: https://issues.apache.org/jira/browse/PDFBOX-355
Project: PDFBox
Issue Type: Bug
Reporter: Jukka Zitting
[Issue from SourceForge]
http://sourceforge.net/tracker/index.php?func=detail&aid=1967941&group_id=78314&atid=552834
Hi folks,
I've experienced some problems with embedding TrueType and AFM/PFB fonts.
In both cases the array with the widths of the characters was incomplete
concerning some special characters. The array for afm-fonts has some gaps
whenever a character wasn't defined which leads to an Exception when the
pdf-document was displayed with PDFReader. And finally there was a problem
with german umlauts which weren't defined in the afm-file but were part of
the font. Btw. if I use this fonts with postscript everything works fine.
So I've added a hack (?!?) based on a code-fragment written by V0JT4 in the
pdf-forum (see also
https://sourceforge.net/forum/message.php?msg_id=4705274) for the encoding
of AFM-fonts.
I've attached the latest versions of the sorce code
org.pdfbox.pdmodel.font.PDTrueTypeFont (1.17)
org.pdfbox.pdmodel.font.PDType1AfmPfbFont (1.5)
Lehmi
http://sourceforge.net/tracker/download.php?group_id=78314&atid=552834&file_id=278416&aid=1967879
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.