pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tilman Hausherr <THaush...@t-online.de>
Subject Re: Choosing a font for non-ASCII characters
Date Sat, 02 Mar 2019 15:00:53 GMT
Am 02.03.2019 um 15:54 schrieb Christopher Schultz:
> Is there a good way to probe
> text to determine whether or not an alternate font will be necessary
> and only load/bundle it then?

 From the new EmbeddedMultipleFonts.java example (in the source code 

     boolean isWinAnsiEncoding(int unicode)
         String name = 
         if (".notdef".equals(name))
             return false;
         return WinAnsiEncoding.INSTANCE.contains(name);

When that one returns true, you can use the built-in fonts.


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

View raw message