Re: Per application settings in .fonts.conf?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

_______________________________________________
Fontconfig mailing list
Fontconfig@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/fontconfig


[Index of Archives]     [Fedora Fonts]     [Fedora Users]     [Fedora Cloud]     [Kernel]     [Fedora Packaging]     [Fedora Desktop]     [PAM]     [Gimp Graphics Editor]     [Yosemite News]

  Powered by Linux