You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (JIRA)" <ji...@apache.org> on 2019/02/08 13:46:00 UTC

[jira] [Comment Edited] (PDFBOX-4457) Multiple Fonts with fallback technology

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

Tilman Hausherr edited comment on PDFBOX-4457 at 2/8/19 1:45 PM:
-----------------------------------------------------------------

PDFBox is low level. So a method that would split a string and then change fonts when needed doesn't exist. But it sounds like a good idea to add it as an example.

I don't know when or if I'll do that, but the code isn't difficult - just try to encode each character, and when the exception is thrown, try the next font in the list. Collect as much as possible and then output, then work on the rest.


was (Author: tilman):
PDFBox is low level. So a method that would split a string and then change fonts when needed doesn't exist. But it sounds like a good idea to add it as an example.

> Multiple Fonts with fallback technology
> ---------------------------------------
>
>                 Key: PDFBOX-4457
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-4457
>             Project: PDFBox
>          Issue Type: Improvement
>          Components: FontBox
>    Affects Versions: 2.0.13
>            Reporter: Jürgen Bosch
>            Priority: Major
>
> Hi,
> how is it possible to create a fallback for languages that aren’t supported by the used PDFont by using a font stack similar to this: Arial, Helvetica, sans-serif
>  
> I want to render normal latin characters and chinese, japanese and other asian characters.
> Is there an open soure font which contains all these characters like the arial-unicode-ms?
> Regards
> Jürgen



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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