[Fontconfig] Remap italic to small-caps

Tobias Wolf towolf at gmail.com
Tue Jan 19 05:54:31 PST 2010


On Tue, Jan 19, 2010 at 12:05 AM, Behdad Esfahbod <behdad at behdad.org> wrote:
> On 01/15/2010 11:30 AM, Tobias Wolf wrote:
> > Am I misunderstanding the examples in /etc/fonts w.r.t. re-assigning a family?
>
> Which ones?  What you can do is:
>
> <match target="pattern">
>        <test name="family">
>                <string>TT2010</string>
>        </test>
>        <test name="slant" compare="not_eq">
>                <const>roman</const>
>        </test>
>        <edit name="family" mode="assign">
>                <string>TT2010 SC</string>
>        </edit>
>        <edit name="slant" mode="assign">
>                <const>roman</const>
>        </edit>
> </match>
>
> This should work if you ask for "TT2010" only.

Ah. Aua. That’s it. Thank you, Behdad! ... Scales from my eyes ... I
had left in an excess test stanza that conflicted with what I wanted
to test.

--Tobias


More information about the Fontconfig mailing list