[
https://issues.apache.org/jira/browse/PDFBOX-490?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13071593#comment-13071593
]
Jens Bruhn commented on PDFBOX-490:
-----------------------------------
forgot to mention the init()-method, which should be called by constructor:
private void init()
{
final GraphicsEnvironment ge =
GraphicsEnvironment.getLocalGraphicsEnvironment();
final String[] fontFamilies = ge.getAvailableFontFamilyNames();
for (final String fontFamily : fontFamilies)
{
final String fontName = fontFamily.toLowerCase().replaceAll(" ",
"");
_normalizedFontNameSet.put(fontName, fontFamily);
}
}
> Pdf Printing of text from embedded fonts
> ----------------------------------------
>
> Key: PDFBOX-490
> URL: https://issues.apache.org/jira/browse/PDFBOX-490
> Project: PDFBox
> Issue Type: Bug
> Components: FontBox
> Affects Versions: 0.8.0-incubator
> Environment: Windows XP, JRE 1.6
> Reporter: Steve Poling
> Assignee: Andreas Lehmkühler
> Attachments: filled.pdf
>
>
> When printing from utility PrintPdf, text is rendered in the wrong typeface.
> The correct typeface is embedded within the PDF (Embedded Subset) as a
> TrueType font with an ANSI encoding. It may be noted that the AcroFields in a
> Courier typeface render correctly.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira