pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tilman Hausherr <til...@apache.org>
Subject Re: About fonts and locale/language coverage
Date Thu, 18 Apr 2019 06:49:18 GMT
There is no direct method… what you could do is to open the fonts with DTL OTMaster 3.7 light
and search for any clues. There's something in the GSUB tables IIRC, and I think that fontbox
supports this on a very low level. But there is no existing example, so you'd have to look
at the source code how we use this.


On 2019/04/16 08:02:18, Constantine Dokolas <cdokolas@gmail.com> wrote: 
> What is the preferred way to check which languages/locales a font
> (TrueTypeFont) supports?
> I need to load some fonts (ideally of the same family) and select the right
> one for the required language/locale). Or am I going about it the wrong way?
> About my implementation: I'm planning to bundle the Noto fonts (mostly
> because they offer good Unicode coverage and friendly license) and I will
> also be supporting Arabic, which is on a separate font file. When a special
> "font server" gets a request for a font for Arabic locale text (specified
> by an "Arabic" instance of the Locale class), it needs to serve the
> instance loaded with the Arabic "variant" in the family. I'm planning to
> inspect the fonts during the initial scanning of the files and keep a
> registry of which one supports which languages.
> Any thoughts?
> Thanks in advance,
> Constantine
> --
> There is a computer disease that anybody who works with computers knows
> about. It's a very serious disease and it interferes completely with the
> work. The trouble with computers is that you 'play' with them!
> - Richard P. Feynman

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

View raw message