Re: Font selection algorithm?
- From: Robert Siemer <Robert Siemer-i18n backsla sh>
- Cc: gtk-i18n-list gnome org
- Subject: Re: Font selection algorithm?
- Date: Wed, 20 Jan 2010 08:52:20 +0800
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? 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=..."?
In the example above: is the "sans" the default in Pango if not
overwritten in the app? Or is the default the empty pattern?
In a standard gtk/gnome app, the ":lang=..." part comes from the current
locale or is it text driven?
Thanks again,
Robert
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]