[
https://issues.apache.org/jira/browse/PDFBOX-3659?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15833004#comment-15833004
]
Tilman Hausherr commented on PDFBOX-3659:
-----------------------------------------
This can be tested only manually:
- change WindowsFontDirFinder (or the appropriate class) to return an empty list
- delete pdfbox font cache file
- create PDF with PDType1Font.SYMBOL and PDType1Font.ZAPF_DINGBATS fonts
- the usual warnings ("Using fallback font LiberationSans for base font
ZapfDingbats") will come, but the file will be generated correctly.
The warnings are because the type 1 static types are used both for rendering
(where the generic font is needed) and for PDF creation (where it isn't needed).
> Can't create text with PDFType1Font.ZAPF_DINGBATS or PDFType1Font.SYMBOL
> without installed fonts
> ------------------------------------------------------------------------------------------------
>
> Key: PDFBOX-3659
> URL: https://issues.apache.org/jira/browse/PDFBOX-3659
> Project: PDFBox
> Issue Type: Bug
> Components: PDModel
> Affects Versions: 2.0.4
> Reporter: Tilman Hausherr
>
> On a system with no fonts, it is not possible to create PDF files that use
> the Standard 14 Symbol and Zapf Dingbats fonts. The current code tries to
> look at the generic fallback font (LiberationSans), which of course doesn't
> have it. But this isn't needed - we have all the metrics needed for the
> standard 14 fonts and don't need any actual font.
> Solution: change {{PDType1Font.encode()}} so that it doesn't use the generic
> font for standard 14 fonts.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]