Max Gilead created PDFBOX-1666:
----------------------------------
Summary: Missing StemV font descriptor entry when embedding AFM
fonts
Key: PDFBOX-1666
URL: https://issues.apache.org/jira/browse/PDFBOX-1666
Project: PDFBox
Issue Type: Bug
Components: PDModel
Affects Versions: 2.0.0
Reporter: Max Gilead
Fix For: 2.0.0
When embedding an AFM font the StemV field is missing in the PDF which renders
it not PDF/A-1b compliant.
As the StemV value is not included in AFM files it seems to be OK to simply set
it to 0. A quick test in Firefox, Chrome, OSX Preview and Acrobat Reader
indicates having StemV set to 0 does not impact font rendering in any obvious
way. FOP computes StemV from other values stored in PFM files but the fields
are optional so can't be relied upon [1] (hence results are often 0 anyway) and
Word [2] and iOS [3] seem to use 0 by default.
Verified in SVN trunk 1504502 (2013.07.18)
[1] http://xmlgraphics.apache.org/fop/1.1/fonts.html
[2] http://tracker.luatex.org/view.php?id=32
[3]
http://blog.nomzit.com/2010/08/18/annoying-bug-in-quartz-pdfcontext-font-handling/
-- just a link to a iOS-originating PDF dissected, nothing to do with the bug
the article is about
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira