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

Suresh P psuresh at gmx.com
Tue Sep 6 06:58:32 PDT 2011


"Raimund Steger" <rs at mytum.de> writes:

> 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...

I have made a GUI Fontik(https://gitorious.org/fontik) which can perform
some of these tasks.Have a try.

thanks
-suresh

>
> Raimund


More information about the Fontconfig mailing list