]> git.wh0rd.org - fontconfig.git/commitdiff
Add prefer_outline hacks to replace bitmap fonts with equivalent outlines
authorKeith Packard <keithp@keithp.com>
Wed, 12 Feb 2003 18:23:03 +0000 (18:23 +0000)
committerKeith Packard <keithp@keithp.com>
Wed, 12 Feb 2003 18:23:03 +0000 (18:23 +0000)
fonts.conf.in

index 2ffe083c6625d87727fcfe9462e7d46afdebee6c..768ccf5ee695127ef5187ccc80cb5b9be321ddeb 100644 (file)
                <accept><family>Courier New</family></accept>
        </alias>
 
+<!--
+ Check user preference to avoid bitmap fonts and replace
+ bitmap face names with equivalent scalable fonts
+ -->
+
+       <match target="pattern">
+               <test name="prefer_outline">
+                       <bool>true</bool>
+               </test>
+               <test name="family">
+                       <string>Helvetica</string>
+               </test>
+               <edit name="family" mode="prepend" binding="same">
+                       <string>Arial</string>
+               </edit>
+       </match>
+
+       <match target="pattern">
+               <test name="prefer_outline">
+                       <bool>true</bool>
+               </test>
+               <test name="family">
+                       <string>Times</string>
+               </test>
+               <edit name="family" mode="prepend" binding="same">
+                       <string>Times New Roman</string>
+               </edit>
+       </match>
 <!--
   Provide required aliases for standard names
 -->