20-unhint-small-vera.conf revision a32e9e42
1<?xml version="1.0"?> 2<!DOCTYPE fontconfig SYSTEM "fonts.dtd"> 3<fontconfig> 4 <its:rules xmlns:its="http://www.w3.org/2005/11/its" version="1.0"> 5 <its:translateRule translate="no" selector="/fontconfig/*[not(self::description)]"/> 6 </its:rules> 7 8 <description>Disable hinting for Bitstream Vera fonts when the size is less than 8ppem</description> 9<!-- 10 The Bitstream Vera fonts have GASP entries suggesting that hinting be 11 disabled below 8 ppem, but FreeType ignores those, preferring to use 12 the data found in the instructed hints. The initial Vera release 13 didn't include the right instructions in the 'prep' table. Fix this 14 by disabling hinting manually at smaller sizes (< 8ppem) 15 --> 16 17 <match target="font"> 18 <test name="family" compare="eq" ignore-blanks="true"> 19 <string>Bitstream Vera Sans</string> 20 </test> 21 <test name="pixelsize" compare="less"> 22 <double>7.5</double> 23 </test> 24 <edit name="hinting"> 25 <bool>false</bool> 26 </edit> 27 </match> 28 29 <match target="font"> 30 <test name="family" compare="eq" ignore-blanks="true"> 31 <string>Bitstream Vera Serif</string> 32 </test> 33 <test name="pixelsize" compare="less"> 34 <double>7.5</double> 35 </test> 36 <edit name="hinting"> 37 <bool>false</bool> 38 </edit> 39 </match> 40 41 <match target="font"> 42 <test name="family" compare="eq" ignore-blanks="true"> 43 <string>Bitstream Vera Sans Mono</string> 44 </test> 45 <test name="pixelsize" compare="less"> 46 <double>7.5</double> 47 </test> 48 <edit name="hinting"> 49 <bool>false</bool> 50 </edit> 51 </match> 52 53</fontconfig> 54