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

Tilman Hausherr closed PDFBOX-5697.
-----------------------------------
    Resolution: Won't Fix

> 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to