[ 
https://issues.apache.org/jira/browse/PDFBOX-2262?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14117153#comment-14117153
 ] 

simon steiner commented on PDFBOX-2262:
---------------------------------------

i get

[java] java.lang.NullPointerException
[java]  at 
org.apache.pdfbox.pdmodel.font.PDType0Font.codeToGID(PDType0Font.java:306)

[java] java.io.IOException: Found Token[kind=NAME, text=ND] but expected ND
[java]  at org.apache.fontbox.type1.Type1Parser.readDef(Type1Parser.java:698)

PDFBOX147-corporate_guide.pdf
[java] java.lang.UnsupportedOperationException: not implemented: missing CFF
[java]  at 
org.apache.pdfbox.pdmodel.font.PDCIDFontType0.<init>(PDCIDFontType0.java:102)  


[java] java.lang.IllegalArgumentException: Built-in Encoding required for 
symbolic font
[java]  at 
org.apache.pdfbox.encoding.DictionaryEncoding.<init>(DictionaryEncoding.java:84)

> Remove usage of AWT fonts
> -------------------------
>
>                 Key: PDFBOX-2262
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-2262
>             Project: PDFBox
>          Issue Type: Improvement
>          Components: PDModel, Rendering
>    Affects Versions: 2.0.0
>            Reporter: John Hewson
>            Assignee: John Hewson
>             Fix For: 2.0.0
>
>         Attachments: Basiswissen-Vorschriften.pdf, 
> Basiswissen-Vorschriften.pdf-1.png, 
> Basiswissen-Vorschriften.pdf-1.png-diff.png, 
> Basiswissen-Vorschriften.pdf-9.png, 
> Basiswissen-Vorschriften.pdf-9.png-diff.png, 
> ELVIA-Reiserucktritt-Vollschutz.pdf-1.png, FreeSansTest.pdf, 
> PDFBOX-1094-094730.pdf-1.png, PDFBOX-1770.pdf-1.png, 
> PDF_Spec-Shading-23.pdf-1.png, PDF_Spec-Shading-23.pdf-1.png-diff.png, 
> bugzilla867751.pdf-2.png, bugzilla867751.pdf-2.png-diff.png, 
> bugzilla886049.pdf, bugzilla886049.pdf-1.png, test_1fd9a_test.pdf
>
>
> We're still using AWT fonts to render the "standard 14" built-in fonts, which 
> causes rendering problems and encoding issues (see  PDFBOX-2140). We're also 
> using AWT for some fallback fonts.
> Removal of these AWT fonts isn't too difficult, we need to load the fonts 
> using the existing PDFFontManager mechanism which has recently been added. 
> All missing TrueType fonts loaded from disk have been using SystemFontManager 
> for a number of weeks now. 
> We should ship some sensible default fonts with PDFBox, such as the 
> Liberation fonts (see PDFBOX-2169, PDFBOX-2263), in case PDFFontManager can't 
> find anything suitable, rather than falling back to the default TTF font, but 
> by default we'll probe the system for suitable fonts.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to