[Fontconfig] Making family names returned by FcFreeTypeQueryFace locale aware?

Behdad Esfahbod behdad at behdad.org
Wed Jan 5 09:10:46 PST 2011


On 01/05/11 11:44, Jjgod Jiang wrote:
> On Wed, Jan 5, 2011 at 5:12 PM, Behdad Esfahbod <behdad at behdad.org> wrote:
>> On 12/28/10 09:56, Jjgod Jiang wrote:
>>> I have no problem with this, all I'm asking is the *order* of family
>>> names returned by fontconfig to be consistent in all occasions. If in
>>> one case (FcFontList) it's sorted with locale while in another case
>>> (FcFreeTypeQueryFace) it's not, then third party libraries like Qt will
>>> have difficulty implementing its own font matching mechanism based on
>>> fontconfig.
>>
>> You can check familylang.
> 
> Can you explain a bit more about how that's going to work (for the patterns
> returned by FcFreeTypeQueryFace)?

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.

Begs the question: why do you not use fontconfig's matching facility?

behdad

> - Jiang
> 


More information about the Fontconfig mailing list