You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Antony Scerri (JIRA)" <ji...@apache.org> on 2009/09/08 13:44:58 UTC
[jira] Created: (PDFBOX-516) Font Manager does not always find
correct font from environment
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
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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Issue Comment Edited: (PDFBOX-516) Font Manager does not
always find correct font from environment
Posted by "Andreas Lehmkühler (JIRA)" <ji...@apache.org>.
[ 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.
[jira] Resolved: (PDFBOX-516) Font Manager does not always find
correct font from environment
Posted by "Andreas Lehmkühler (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PDFBOX-516?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andreas Lehmkühler resolved PDFBOX-516.
---------------------------------------
Resolution: Fixed
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.
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.
[jira] Updated: (PDFBOX-516) Font Manager does not always find
correct font from environment
Posted by "Antony Scerri (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PDFBOX-516?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Antony Scerri updated PDFBOX-516:
---------------------------------
Description:
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.
was:
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.
> 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
>
> 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.
[jira] Updated: (PDFBOX-516) Font Manager does not always find
correct font from environment
Posted by "Antony Scerri (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PDFBOX-516?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Antony Scerri updated PDFBOX-516:
---------------------------------
Attachment: FontManager.diff
> 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.
[jira] Issue Comment Edited: (PDFBOX-516) Font Manager does not
always find correct font from environment
Posted by "Andreas Lehmkühler (JIRA)" <ji...@apache.org>.
[ 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:47 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 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.
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.