[Fontconfig] What metric does fontconfig use to select a font

Akira TAGOH akira at tagoh.org
Mon Sep 5 03:58:39 PDT 2011


That depends on what kind of the fontconfig configuration files you have.
you may get more information from the debugging log by setting the env var
like FC_DEBUG=4.

On Mon, Sep 5, 2011 at 7:29 PM, Cyker Way <cykerway at gmail.com> wrote:

> Hmm, it seems ~/.fonts.conf will be the first processed configurations. So
> this solution should work. Thanks.
>
> BTW, how does fontconfig sort the precedence of fonts according to the
> application request? If this question is not fully answered, maybe other
> problems will arise in the future. Do you have any idea on that?
>
>
> 2011/9/5 Raimund Steger <rs at mytum.de>
>
>> Hi,
>>
>> > And what should I do to make sure one specific font will certainly be
>> > chosen
>> > when executing, say, 'fc-match sans'?
>>
>> maybe something like the following example in ~/.fonts.conf could work:
>>
>>  <match target="pattern">
>>    <test name="family" qual="all"><string>sans-serif</string></test>
>>    <edit mode="assign_replace" name="family">
>>      <string>Helvetica</string>
>>    </edit>
>>    <edit mode="assign_replace" name="foundry">
>>      <string>Adobe</string>
>>    </edit>
>>  </match>
>>
>> But I'm not sure if this is a good idea, since the font you choose might
>> only be suitable for a limited range of character sets. Maybe that could
>> be sorted out by adding additional "lang" tests...
>>
>> Raimund
>>
>>
>>
>> --
>> R.Steger Tel. +49-179-2981632 icq 16845346
>>
>>
>
>
> --
>
>
>
> Cyker Way
> E-mail: cykerway at gmail.com
> http://www.cykerway.com
>
> _______________________________________________
> Fontconfig mailing list
> Fontconfig at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/fontconfig
>
>


-- 
Akira TAGOH
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/fontconfig/attachments/20110905/24c1ac7f/attachment.htm>


More information about the Fontconfig mailing list