[Fontconfig] Making family names returned by FcFreeTypeQueryFace locale aware?
Jjgod Jiang
gzjjgod at gmail.com
Wed Jan 5 10:32:50 PST 2011
Hi,
Never mind, I managed to get that with FcDefaultSubstitute(). Thanks
for the tip!
On Wed, Jan 5, 2011 at 7:18 PM, Jjgod Jiang <gzjjgod at gmail.com> wrote:
> On Wed, Jan 5, 2011 at 6:10 PM, Behdad Esfahbod <behdad at behdad.org> wrote:
>> As far as I understand, you want to be able to know what language a given
>> family name belongs to? familylang tells you that. From there on it's up to
>> your matching algorithm to do whatever it wants.
>
> As I said in my first email, when adding application fonts, the family names
> returned by FcFreeTypeQueryFace is *NOT* sorted by locale, thus, I need to
> find out which name is for the current locale myself. I can test each one
> with their familylang, but how do I know the system familylang?
>
> To be specific, what I need is FcGetDefaultLang() to be exported.
>
>> Begs the question: why do you not use fontconfig's matching facility?
>
> Because Qt has to build its own cross-platform font database, it's not
> just about matching, it's also about providing the users an unified
> font list.
>
> - Jiang
>
More information about the Fontconfig
mailing list