I'm trying using ~/.fonts.conf to replace Helvetica with Droid Sans, here's the content of the file:
<?xml version="1.0"?> <!DOCTYPE fontconfig SYSTEM "fonts.dtd"> <fontconfig> <match target="pattern"> <test qual="any" name="family"><string>Helvetica</string></test> <edit name="family" mode="assign"><string>Droid Sans</string></edit> </match> </fontconfig>
but no matter what, nothing seems to happen. I tried running fc-cache, I have checked in
/etc/fonts/conf.d and I found
50-user.conf which seems to explicitly call user specific configurations.
What am I missing?
EDIT: after investigation I found out that other rules in
/etc/fonts/conf.d overwrite user configuration, so linking
00-user.conf helped. Still it's just a partial success, since I can specify which fonts should be substituted, but the substitute of my choice is ignored: in other words, I can make
Helvetica invalid and the system falls back to the next font (i.e. in the browser, it takes the next font specified in the style sheet, if none is present it displays standard sans-serif).