Hello, I am trying to create an alias to a system-installed font. I would like to do something similar to the following, which I copied from
here.
Code:
<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
<dir>~/.fonts</dir>
<alias>
<family>XTerm</family>
<prefer><family>Envy Code R</family></prefer>
<default><family>monospace</family></default>
</alias>
<match target="pattern">
<test name="family">
<string>XTerm</string>
</test>
<edit mode="assign" name="family">
<string>Envy Code R</string>
</edit>
<edit mode="assign" name="antialias">
<bool>false</bool>
</edit>
</match>
</fontconfig>
That post goes on to say "This creates a font alias called XTerm which maps to Envy Code R but disables antialiasing. Run fc-cache ~/.fonts, and you should then be able to select that font in Terminal."
In particular, I would like to disable anti-aliasing for use in a particular application while leaving that font's settings in tact for all other applications. I have pasted this code into ~/.fonts.conf, as it would be nice to do this on a per-user basis, if possible. I do not have Envy Code R so for the sake of argument I replaced all instances with Droid Sans. This does not seem to work for me. I am doing this on Debian Wheezy with fontconfig 2.9 installed (I know a lot changed with > 2.10 but hopefully that doesn't apply here). Running fc-cache ~/.fonts really doesn't seem to do anything, even with the -v switch, so I'm not sure if ~/.fonts.conf is even getting read. What is supposed to happen, and how do I know if the said alias gets created? Thanks.