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

Tilman Hausherr commented on PDFBOX-5309:
-----------------------------------------

I did some more research into this, using the TTC and TTF specification... The 
conversion tool adds encoding records that were not in the ttc file. The ttc 
file has only one encoding record which isn't good enough for PDFBox 
(PLATFORM_UNICODE + ENCODING_WIN_UNICODE_BMP). See the logic in 
TrueTypeFont.getUnicodeCmapImpl().

So I'd recommend you either use a different font, or try to use the tool I 
mentioned to see if that works.

> Load a font which is from Mac OS throw an exception
> ---------------------------------------------------
>
>                 Key: PDFBOX-5309
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-5309
>             Project: PDFBox
>          Issue Type: Bug
>    Affects Versions: 2.0.24
>            Reporter: bai yuan
>            Priority: Major
>         Attachments: Sample.zip, error.png
>
>
> Using PDType0Font.load to load a font which is from Mac OS,  it throws an 
> exception:
> !error.png![^Sample.zip]
>  



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