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

Tilman Hausherr commented on PDFBOX-5515:
-----------------------------------------

This is because your font doesn't have a proper postscript name record. In the 
screenshot this would be the one with nameID 6, which is "00". But even that 
one is ignored by us because only language IDs 0 and 1033 are supported. 
There's a comment from 2014 in our code "only these two formats are valid". I 
don't know if the comment is correct, but even if we'd expand that one you 
still wouldn't get a decent name, just "00".
 !screenshot-1.png! 

> Load  a font “EUDC” throw an exception
> --------------------------------------
>
>                 Key: PDFBOX-5515
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-5515
>             Project: PDFBox
>          Issue Type: Bug
>    Affects Versions: 2.0.26
>            Reporter: bai yuan
>            Priority: Major
>         Attachments: EUDC.ttf, image-2022-09-22-11-13-37-448.png, 
> pdfbox.java, screenshot-1.png
>
>
> Using PDType0Font.load to load the attch font,  it throws an exception:
> !image-2022-09-22-11-13-37-448.png![^EUDC.ttf][^pdfbox.java]
>  



--
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