[
https://issues.apache.org/jira/browse/PDFBOX-516?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12754703#action_12754703
]
Andreas Lehmkühler edited comment on PDFBOX-516 at 9/13/09 7:57 AM:
--------------------------------------------------------------------
I've added Antonys Patch with version 814322. I've made a slight modification,
so that the PSName is only used if it is different to the familyname.
This solution could be in combination with PDFBOX-517 a workaround for
PDFBOX-490, if custom fonts are used which are part of the environment .
Thanks to Antony for his contribution.
was (Author: lehmi):
I've added Antonys Patch with version 814322. I've made a slight
modification, so that the PSName is only used if it is different to the
familyname.
This solution could be a workaround for PDFBOX-490, if custom fonts are used
which are part of the environment .
Thanks to Antony for his contribution.
> Font Manager does not always find correct font from environment
> ---------------------------------------------------------------
>
> Key: PDFBOX-516
> URL: https://issues.apache.org/jira/browse/PDFBOX-516
> Project: PDFBox
> Issue Type: Bug
> Components: PDModel
> Affects Versions: 0.8.0-incubator
> Environment: Java
> Reporter: Antony Scerri
> Attachments: FontManager.diff
>
>
> The FontManager.java class does not identify fonts found in PDFs correctly
> when matching against those loaded from environment (possibly also effects
> mappings and externaly loaded fonts but I did not check for this).
> Some PDFs include fonts using Postscript (PS) names these will typicaly
> include "PS" somewhere in the name, and other notation such as "MT". When the
> environment based fonts are loaded only the font family name is used plus any
> styles. To fix this the lookup should also include the PS name which can be
> retrieved from AWT fonts easily. The attached patch (FontManager.diff)
> includes a very simple change to facilitate this.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.