For cursive fonts I have both the URW Z003 and Écolier Court fonts installed. I want to use Écolier Court, but fc-match cursive
shows that Z0003 is being chosen. I can't remove the Z003 font package because it's a dependency of a number of software packages I want to keep. I've tried making a fontconfig conf file to change what's chosen but haven't had any luck.
The relevant fontconfig lines for URW Z003, in /etc/fonts/conf.d/61-urw-z003.conf
, are:
<alias>
<family>cursive</family>
<prefer>
<family>Z003</family>
</prefer>
</alias>
<alias>
<family>Z003</family>
<default>
<family>cursive</family>
</default>
</alias>
The relevant fontconfig lines for Écolier Court, in /etc/fonts/conf.d/61-ecolier-court.conf
, are
<alias>
<family>cursive</family>
<prefer>
<family>Écolier court</family>
</prefer>
</alias>
<alias>
<family>Écolier court</family>
<default>
<family>cursive</family>
</default>
</alias>
The fontconfig file I've written is:
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<alias>
<family>cursive</family>
<prefer>
<family>Écolier court</family>
</prefer>
</alias>
<alias>
<family>Écolier court</family>
<prefer>
<family>cursive</family>
</prefer>
</alias>
</fontconfig>
I've prefixed my fontconfig file name with both 00-
and 99-
, but in either case fc-match
shows that fontconfig is always choosing Z003 when asked for a cursive font.