[Fontconfig] Per application settings in .fonts.conf?

Wendell P wendellp at operamail.com
Wed Dec 12 18:07:51 PST 2012


On Wed, Dec 12, 2012, at 02:31 PM, Raimund Steger wrote:
> (1) sometimes it's easier to just provide virtual family names that you 
> only use in some applications. 

I tried this approach on my system, but it didn't work. Did I make an
error?

On Debian Wheezy, here is the ~/.fonts.conf. I intended to have
antialiasing on by default, but off when "Monospace" font is chosen.

--------------------------------------------------------------------------------------
<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
  <match target="font">
    <edit mode="assign" name="rgba"><const>rgb</const></edit>
    <edit mode="assign" name="embeddedbitmap"><bool>true</bool></edit>
    <edit mode="assign" name="autohint"><bool>false</bool></edit>
    <edit mode="assign" name="hinting"><bool>true</bool></edit>
    <edit mode="assign" name="antialias"><bool>true</bool></edit>
    <edit mode="assign"
    name="lcdfilter"><const>lcddefault</const></edit>
    <edit mode="assign" name="hintstyle"><const>hintfull</const></edit>
  </match>

  <match target="pattern">
    <test name="family"><string>Monospace</string></test>
    <edit mode="assign" name="antialias"><bool>false</bool></edit>
  </match>

</fontconfig>
--------------------------------------------------------------------------------------

-- 
http://www.fastmail.fm - Does exactly what it says on the tin



More information about the Fontconfig mailing list