You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (Jira)" <ji...@apache.org> on 2020/06/14 07:55:00 UTC
[jira] [Created] (PDFBOX-4880) NullPointerException in
TrueTypeEmbedder.createFontDescriptor() with OCR-B font
Tilman Hausherr created PDFBOX-4880:
---------------------------------------
Summary: 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
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: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org