[ 
https://issues.apache.org/jira/browse/PDFBOX-3659?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tilman Hausherr updated PDFBOX-3659:
------------------------------------
    Description: 
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 these 
characters so an exception is thrown. But this lookup 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.

  was:
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.


> 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 these characters so an exception is thrown. But this lookup 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]

Reply via email to