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
download):
boolean isWinAnsiEncoding(int unicode)
{
String name =
GlyphList.getAdobeGlyphList().codePointToName(unicode);
if (".notdef".equals(name))
{
return false;
}
return WinAnsiEncoding.INSTANCE.contains(name);
}
When that one returns true, you can use the built-in fonts.
Tilman
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]