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

bai yuan commented on PDFBOX-5697:
----------------------------------

[~tilman] OK, i try to update the version to 3.0.0.

> Load  a font “SimsunBold” throw an exception
> --------------------------------------------
>
>                 Key: PDFBOX-5697
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-5697
>             Project: PDFBox
>          Issue Type: Bug
>          Components: FontBox
>    Affects Versions: 2.0.24
>            Reporter: bai yuan
>            Priority: Major
>         Attachments: image-2023-10-12-10-36-33-803.png, simsunbd.ttf
>
>
> Load the attach file, it will throws an exception:
> {code:java}
> PDDocument doc = new PDDocument();
> PDPage page = new PDPage();
> doc.addPage(page);
> PDPageContentStream stream = new PDPageContentStream(doc, page);
> TrueTypeFont ttFont = new TTFParser().parse("simsunbd.ttf");
> PDFont font = PDType0Font.load(doc, ttFont, true); {code}
> !image-2023-10-12-10-36-33-803.png!



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org

Reply via email to