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

Tilman Hausherr resolved PDFBOX-4880.
-------------------------------------
      Assignee: Tilman Hausherr
    Resolution: Fixed

> NullPointerException in TrueTypeEmbedder.createFontDescriptor() with OCR-B 
> font
> -------------------------------------------------------------------------------
>
>                 Key: PDFBOX-4880
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-4880
>             Project: PDFBox
>          Issue Type: Bug
>    Affects Versions: 2.0.20
>            Reporter: Tilman Hausherr
>            Assignee: Tilman Hausherr
>            Priority: Major
>             Fix For: 2.0.21, 3.0.0 PDFBox
>
>
> {noformat}
> Exception in thread "main" java.lang.NullPointerException
>       at 
> org.apache.pdfbox.pdmodel.font.TrueTypeEmbedder.createFontDescriptor(TrueTypeEmbedder.java:190)
>       at 
> org.apache.pdfbox.pdmodel.font.TrueTypeEmbedder.<init>(TrueTypeEmbedder.java:83)
>       at 
> org.apache.pdfbox.pdmodel.font.PDCIDFontType2Embedder.<init>(PDCIDFontType2Embedder.java:76)
>       at 
> org.apache.pdfbox.pdmodel.font.PDType0Font.<init>(PDType0Font.java:220)
>       at org.apache.pdfbox.pdmodel.font.PDType0Font.load(PDType0Font.java:67)
> {noformat}
> when loading the font at 
> https://www.dafontfree.net/freefonts-ocrb-f151774.htm
> The font has no os2 table. We should throw an IOException instead.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to