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

Tilman Hausherr commented on PDFBOX-5702:
-----------------------------------------

You could try to call FontMappers.set() with your own fontmapper. But I don't 
think you'll be happy with it. There might be weird effects if your new 
fallback font is broken in ways that you didn't imagine.

Btw the reason that PDFBox couldn't find a replacement font is because the font 
had the name "CIDFont-F5" instead of the name of the actual font (which was 
Yahei Light)

> Text in a certain font is lost when converting pdf to image
> -----------------------------------------------------------
>
>                 Key: PDFBOX-5702
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-5702
>             Project: PDFBox
>          Issue Type: Bug
>          Components: FontBox
>    Affects Versions: 2.0.28, 2.0.29, 3.0.0 PDFBox
>            Reporter: liu
>            Assignee: Tilman Hausherr
>            Priority: Major
>             Fix For: 2.0.30, 3.0.1 PDFBox, 4.0.0
>
>         Attachments: image2(pdfbox丢失字体).pdf, screenshot-1.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