Re: Font selection algorithm?
- From: Behdad Esfahbod <behdad behdad org>
- To: Robert Siemer <Robert Siemer-i18n backsla sh>
- Cc: gtk-i18n-list gnome org
- Subject: Re: Font selection algorithm?
- Date: Wed, 20 Jan 2010 14:17:18 -0500
On 01/19/2010 07:52 PM, Robert Siemer wrote:
> On 01/19/2010 04:18 AM, Behdad Esfahbod wrote:
>> On 01/18/2010 12:50 AM, Robert Siemer wrote:
>
>>> It is really hard to improve the configuration (through fontconfig),
>>> without knowing which font request pattern to intercept. -- Even in a
>>> specific app with FC_DEBUG set it is hard fish the right request chain.
>>
>> Something like:
>>
>> $ fc-match --sort "sans:lang=fa"
>>
>> is all you need to check.
>
> So Pango does at most one fontconfig request for each given text?
One per language.
> So to
> avoid missing characters it requires a corresponding fontconfig
> configuration, and does not launch adapted requests for e.g.
> "sans:lang=someotherlang" or "sans:charset=..."?
It does for lang, not charset.
> In the example above: is the "sans" the default in Pango if not
> overwritten in the app? Or is the default the empty pattern?
I think sans is the default, yes.
> In a standard gtk/gnome app, the ":lang=..." part comes from the current
> locale or is it text driven?
Defaults to locale, but the app can override (eg, firefox passes the web page
language).
behdad
>
> Thanks again,
> Robert
> _______________________________________________
> gtk-i18n-list mailing list
> gtk-i18n-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-i18n-list
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]