[Fontconfig] Remap italic to small-caps

Behdad Esfahbod behdad at behdad.org
Mon Jan 18 15:05:38 PST 2010


On 01/15/2010 11:30 AM, Tobias Wolf wrote:

> What does work is <edit name="file" mode="assign">. But that can’t be
> right?

Well, that's the closest you can get right now.


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

behdad


> --Tobias


More information about the Fontconfig mailing list