[Fontconfig] Asking FontConfig for a font that supports a script

Behdad Esfahbod behdad at behdad.org
Thu Jul 28 14:52:09 PDT 2011


On 07/28/11 17:37, Sairus Patel wrote:
>> >If you
>> >check that file, you see that indeed FC_CHARSET is matched.  But it's up to
>> >you to populate the charset for different scripts.
> By this you mean the software would call FcFreeTypeCharSet and associate it with each font on the system? I think this would not be efficient enough for our needs. A mechanism whereby the operator of the FontConfig setup on that device would associate particular fonts with particular scripts in the config files, just as happens for associating fonts with generic family names like serif or sans-serif, would be more desirable.

Fontconfig has done that when creating caches, so the font charset is sitting
in a cache file.  It's not hugely expensive, specially given that you should
cache the result per-script, so this happens once per script at most.

behdad


More information about the Fontconfig mailing list