Re: What metric does fontconfig use to select a font
- To: "Cyker Way" <cykerway@xxxxxxxxx>
- Subject: Re: What metric does fontconfig use to select a font
- From: "Raimund Steger" <rs@xxxxxxxx>
- Date: Mon, 5 Sep 2011 09:47:51 -0000 (UTC)
- Cc: fontconfig@xxxxxxxxxxxxxxxxxxxxx
- Delivered-to: fontconfig@xxxxxxxxxxxxxxxxxxxxx
- Importance: Normal
- In-reply-to: <CANhUKiXCP=GtqrW6n+WLd_tMf+BDpVnAdxrj1tUdrhedGWf0aA@mail.gmail.com>
- References: <CANhUKiXCP=GtqrW6n+WLd_tMf+BDpVnAdxrj1tUdrhedGWf0aA@mail.gmail.com>
- User-agent: SquirrelMail/1.4.15
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
_______________________________________________
Fontconfig mailing list
Fontconfig@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/fontconfig
[Fedora Users]
[Fedora Cloud]
[Kernel]
[Fedora Legacy]
[Fedora Packaging]
[Fedora Desktop]
[PAM]
[Red Hat Development]
[Red Hat 9]
[Gimp]
[Yosemite News]