Advertisement
Guest User

Untitled

a guest
Apr 18th, 2014
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 56.36 KB | None | 0 0
  1. <?xml version='1.0'?>
  2. <!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
  3. <fontconfig>
  4.  
  5.     <!--
  6.  
  7.     /********************************************************************
  8.                                   README
  9.     /********************************************************************
  10.  
  11.     This /etc/fonts/local.conf file is intended to be used
  12.     in conjunction with the freetype-infinality subpixel hinting patch at
  13.     http://www.infinality.net/
  14.  
  15.     - The rules assume that all Windows XP/Vista/7 fonts are installed.
  16.     - The rules assume that the most recent version(s) of the fonts are
  17.         installed.
  18.     - Windows, Apple, Google, and Linux fonts are included in the rules
  19.       along with other misc popular or useful fonts found on the web.
  20.     - Feel free to propose additions and changes to this file at:
  21.         http://www.infinality.net/forum/
  22.         -->
  23.  
  24.     <!--
  25.  
  26.  
  27.     /********************************************************************
  28.     Changes for 2010-11-14
  29.     /********************************************************************
  30.  
  31.     Added configuration for different rendering styles. These can be enabled by
  32.       uncommenting the style you want.  For instance, if you want your system
  33.       to look like Windows 98, uncomment that style, and make sure others
  34.       are commented out.  Obviously you'd want to have appropriate fonts
  35.       installed for that rendering style.  Aliases for different OS
  36.       fontsets will be added eventually.  The old default style is now
  37.       considered "Infinality" style.  Not all styles that are defined are
  38.       filled in yet- but "Apple" and anything above it are.
  39.  
  40.     Due to the above, in combination with the prevalence of @font-face on
  41.       the web, I've made "Infinality" style rendering use autohint by
  42.       default, and only call out fonts that specifically should use TT
  43.       hinting.  The patched autohint will render more fonts, better, than
  44.       TT native hinting will.
  45.  
  46.  
  47.     /********************************************************************
  48.     Changes for 2010-10-22
  49.     /********************************************************************
  50.  
  51.     Promoted Century Gothic, Arial Black and Calibri to Full TT subpixel hinting
  52.     Added Google fonts
  53.     Added Nimbus fonts
  54.     Added more Apple fonts
  55.     Replace Courier New with Apple's Courier - MUCH nicer result
  56.     Better comments to help new users understand what everything means
  57.     Reorganization of some rules
  58.     General Cleanup
  59.     Removed code for artificial oblique, as most distros have this in
  60.       /etc/fonts/conf.d/
  61.     Added nonlatin font alias preferences that favor MS fonts, which have the
  62.       best hinting AFAICT. If you have all Windows Vista/7 fonts installed,
  63.       www.wikipedia.org should look pretty nice.
  64.  
  65.     /********************************************************************
  66.     Changes for 2010-10-03
  67.     /********************************************************************
  68.  
  69.     Promoted Geneva, Geneva CY to Full TT subpixel hinting.
  70.     Added an alias for "Trebuchet" to point to "Trebuchet MS"
  71.     Minor comment updates
  72.  
  73.     -->
  74.  
  75.  
  76.     <match target="pattern">
  77.         <!-- Choose an OS Style.  This affects how everything is applied -->
  78.  
  79.         <!-- A Customized combination of things, similar to Windows 7 -->
  80.         <edit name="rendering_style" target="pattern">
  81.             <string>Infinality</string>
  82.         </edit>
  83.         <edit name="rendering_style" target="font">
  84.             <string>Infinality</string>
  85.         </edit>
  86.  
  87.         <!--
  88.         <edit name="rendering_style" target="pattern">
  89.             <string>Windows 7</string>
  90.         </edit>
  91.         <edit name="rendering_style" target="font">
  92.             <string>Windows 7</string>
  93.         </edit>
  94.         -->
  95.  
  96.         <!--
  97.         <edit name="rendering_style" target="pattern">
  98.             <string>Windows XP</string>
  99.         </edit>
  100.         <edit name="rendering_style" target="font">
  101.             <string>Windows XP</string>
  102.         </edit>
  103.         -->
  104.  
  105.         <!--
  106.         <edit name="rendering_style" target="pattern">
  107.             <string>Windows 98</string>
  108.         </edit>
  109.         <edit name="rendering_style" target="font">
  110.             <string>Windows 98</string>
  111.         </edit>
  112.         -->
  113.  
  114.         <!--
  115.         <edit name="rendering_style" target="pattern">
  116.             <string>Apple</string>
  117.         </edit>
  118.         <edit name="rendering_style" target="font">
  119.             <string>Apple</string>
  120.         </edit>
  121.         -->
  122.  
  123.  
  124.         <!-- THE BELOW STYLES ARE NOT WELL FILLED-IN YET -->
  125.  
  126.         <!--
  127.         <edit name="rendering_style" target="pattern">
  128.             <string>No Replacements</string>
  129.         </edit>
  130.         <edit name="rendering_style" target="font">
  131.             <string>No Replacements</string>
  132.         </edit>
  133.         -->
  134.  
  135.         <!--
  136.         <edit name="rendering_style" target="pattern">
  137.             <string>Linux</string>
  138.         </edit>
  139.         <edit name="rendering_style" target="font">
  140.             <string>Linux</string>
  141.         </edit>
  142.         -->
  143.  
  144.         <!--
  145.         <edit name="rendering_style" target="pattern">
  146.             <string>Fedora Linux</string>
  147.         </edit>
  148.         <edit name="rendering_style" target="font">
  149.             <string>Fedora Linux</string>
  150.         </edit>
  151.         -->
  152.  
  153.         <!-- Create your own -->
  154.         <!--
  155.         <edit name="rendering_style" target="pattern">
  156.             <string>Your Own Style</string>
  157.         </edit>
  158.         <edit name="rendering_style" target="font">
  159.             <string>Your Own Style</string>
  160.         </edit>
  161.         -->
  162.  
  163.         <!-- Forces certain family replacements - NOT IMPLEMENTED YET -->
  164.         <!--
  165.         <edit name="style_settings">
  166.             <string>Forced</string>
  167.         </edit>
  168.         -->
  169.  
  170.     </match>
  171.  
  172.     <!-- ********************  BITMAP / OUTLINE  **********************  -->
  173.  
  174.     <!-- Prevent gnome from using embedded bitmaps in fonts like Calibri -->
  175.     <match target="font" >
  176.         <test name="rendering_style" qual="any" >
  177.             <string>Infinality</string>
  178.             <string>Windows 7</string>
  179.             <string>Windows XP</string>
  180.             <string>Apple</string>
  181.         </test>
  182.         <edit name="embeddedbitmap" mode="assign">
  183.             <bool>false</bool>
  184.         </edit>
  185.     </match>
  186.  
  187.     <!-- Reject bitmap fonts in favour of Truetype, Postscript, etc. -->
  188.     <match target="font" >
  189.         <test name="rendering_style" qual="any" >
  190.             <string>Infinality</string>
  191.             <string>Windows 7</string>
  192.             <string>Windows XP</string>
  193.             <string>Apple</string>
  194.         </test>
  195.         <selectfont>
  196.             <rejectfont>
  197.                 <pattern>
  198.                     <patelt name="scalable" >
  199.                         <bool>false</bool>
  200.                     </patelt>
  201.                 </pattern>
  202.             </rejectfont>
  203.         </selectfont>
  204.     </match>
  205.  
  206.     <!-- Substitute truetype fonts for bitmap ones -->
  207.     <match target="pattern" >
  208.         <test name="rendering_style" qual="any" >
  209.             <string>Infinality</string>
  210.             <string>Windows 7</string>
  211.             <string>Windows XP</string>
  212.             <string>Apple</string>
  213.         </test>
  214.         <edit name="prefer_outline" >
  215.             <bool>true</bool>
  216.         </edit>
  217.     </match>
  218.  
  219.     <!-- **************************** ALIASES **********************  -->
  220.  
  221.     <!-- Uncomment 1 of the 3 below for default fonts -->
  222.     <!-- Default fonts - Microsoft Appearance -->
  223.     <match target="font" >
  224.         <test name="rendering_style" qual="any" >
  225.             <string>Infinality</string>
  226.             <string>Windows 7</string>
  227.             <string>Windows XP</string>
  228.             <string>Windows 98</string>
  229.         </test>
  230.         <alias>
  231.             <family>sans</family>
  232.             <default>
  233.                 <family>Arial</family>
  234.             </default>
  235.         </alias>
  236.         <alias>
  237.             <family>sans-serif</family>
  238.             <default>
  239.                 <family>Arial</family>
  240.             </default>
  241.         </alias>
  242.         <alias>
  243.             <family>serif</family>
  244.             <default>
  245.                 <family>Times New Roman</family>
  246.             </default>
  247.         </alias>
  248.     </match>
  249.  
  250.     <!-- Default fonts - Apple Appearance -->
  251.     <match target="font" >
  252.         <test name="rendering_style" qual="any" >
  253.             <string>Apple</string>
  254.         </test>
  255.         <alias>
  256.             <family>sans</family>
  257.             <default>
  258.                 <family>Lucida Grande</family>
  259.             </default>
  260.         </alias>
  261.  
  262.         <alias>
  263.             <family>sans-serif</family>
  264.             <default>
  265.                 <family>Lucida Grande</family>
  266.             </default>
  267.         </alias>
  268.  
  269.         <alias>
  270.             <family>serif</family>
  271.             <default>
  272.                 <family>Times</family>
  273.             </default>
  274.         </alias>
  275.     </match>
  276.  
  277.     <!-- Default fonts - Linux Appearance -->
  278.     <!-- this is handled by default fontconfig rules -->
  279.  
  280.  
  281.     <!-- These MS aliases typically are used in user interfaces -->
  282.     <!-- You will mostly run into fonts with these names in WINE programs -->
  283.     <!-- Uncomment 1 of the below for these UI fonts -->
  284.  
  285.     <!-- WINE UI fonts - Microsoft Windows Vista/7 Appearance -->
  286.  
  287.     <match target="font" >
  288.         <test name="rendering_style" qual="any" >
  289.             <string>Infinality</string>
  290.             <string>Windows 7</string>
  291.         </test>
  292.         <alias binding="same">
  293.             <family>System</family>
  294.             <accept>
  295.                 <family>Segoe UI</family>
  296.             </accept>
  297.         </alias>
  298.         <alias binding="same">
  299.             <family>MS Shell Dlg</family>
  300.             <accept>
  301.                 <family>Segoe UI</family>
  302.             </accept>
  303.         </alias>
  304.         <alias binding="same">
  305.             <family>MS Sans Serif</family>
  306.             <accept>
  307.                 <family>Segoe UI</family>
  308.             </accept>
  309.         </alias>
  310.     </match>
  311.  
  312.     <!-- WINE UI fonts - Microsoft Windows 98/XP Appearance -->
  313.     <!-- For Win 98, make sure font smoothing is DISABLED within WINE:
  314.         wget http://files.polosatus.ru/winefontssmoothing_en.sh
  315.         sh winefontssmoothing_en.sh
  316.     -->
  317.     <match target="font" >
  318.         <test name="rendering_style" qual="any" >
  319.             <string>Windows 98</string>
  320.         </test>
  321.         <alias binding="same">
  322.             <family>System</family>
  323.             <accept>
  324.                 <family>Microsoft Sans Serif</family>
  325.             </accept>
  326.         </alias>
  327.         <alias binding="same">
  328.             <family>MS Shell Dlg</family>
  329.             <accept>
  330.                 <family>Microsoft Sans Serif</family>
  331.             </accept>
  332.         </alias>
  333.         <alias binding="same">
  334.             <family>MS Sans Serif</family>
  335.             <accept>
  336.                 <family>Microsoft Sans Serif</family>
  337.             </accept>
  338.         </alias>
  339.     </match>
  340.  
  341.     <match target="font" >
  342.         <test name="rendering_style" qual="any" >
  343.             <string>Windows XP</string>
  344.         </test>
  345.         <alias binding="same">
  346.             <family>System</family>
  347.             <accept>
  348.                 <family>Tahoma</family>
  349.             </accept>
  350.         </alias>
  351.         <alias binding="same">
  352.             <family>MS Shell Dlg</family>
  353.             <accept>
  354.                 <family>Tahoma</family>
  355.             </accept>
  356.         </alias>
  357.         <alias binding="same">
  358.             <family>MS Sans Serif</family>
  359.             <accept>
  360.                 <family>Tahoma</family>
  361.             </accept>
  362.         </alias>
  363.     </match>
  364.  
  365.     <!-- WINE UI fonts - Apple Appearance -->
  366.     <match target="font" >
  367.         <test name="rendering_style" qual="any" >
  368.             <string>Apple</string>
  369.         </test>
  370.         <alias binding="same">
  371.             <family>System</family>
  372.             <accept>
  373.                 <family>Lucida Grande</family>
  374.             </accept>
  375.         </alias>
  376.         <alias binding="same">
  377.             <family>MS Shell Dlg</family>
  378.             <accept>
  379.                 <family>Lucida Grande</family>
  380.             </accept>
  381.         </alias>
  382.         <alias binding="same">
  383.             <family>MS Sans Serif</family>
  384.             <accept>
  385.                 <family>Lucida Grande</family>
  386.             </accept>
  387.         </alias>
  388.     </match>
  389.  
  390.     <!-- WINE UI fonts - Linux Appearance -->
  391.     <match target="font" >
  392.         <test name="rendering_style" qual="any" >
  393.             <string>Linux</string>
  394.         </test>
  395.         <alias binding="same">
  396.             <family>System</family>
  397.             <accept>
  398.                 <family>DejaVu Sans</family>
  399.             </accept>
  400.         </alias>
  401.         <alias binding="same">
  402.             <family>MS Shell Dlg</family>
  403.             <accept>
  404.                 <family>DejaVu Sans</family>
  405.             </accept>
  406.         </alias>
  407.         <alias binding="same">
  408.             <family>MS Sans Serif</family>
  409.             <accept>
  410.                 <family>DejaVu Sans</family>
  411.             </accept>
  412.         </alias>
  413.     </match>
  414.  
  415.     <!-- Establish priorities for non-Latin fonts -->
  416.     <!-- http://en.wikipedia.org/wiki/List_of_Microsoft_Windows_fonts -->
  417.     <!-- Uncomment 1 of the below for these UI fonts -->
  418.  
  419.     <!-- Non-latin fonts - Microsoft Windows Vista/7 Appearance -->
  420.     <match target="font" >
  421.         <test name="rendering_style" qual="any" >
  422.             <string>Infinality</string>
  423.             <string>Windows 7</string>
  424.             <string>Windows XP</string>
  425.             <string>Windows 98</string>
  426.         </test>
  427.         <alias>
  428.             <family>serif</family>
  429.             <prefer>
  430.                 <family>Times New Roman</family>
  431.                 <family>Batang</family>
  432.                 <family>DFKai-SB</family>
  433.                 <family>EucrosiaUPC</family>
  434.                 <family>JasmineUPC</family>
  435.                 <family>KaiTi</family>
  436.                 <family>Kartika</family>
  437.                 <family>KodchiangUPC</family>
  438.                 <family>MingLiU</family>
  439.                 <family>MS Mincho</family>
  440.                 <family>SimSun</family>
  441.                 <family>Sylfaen</family>
  442.                 <family>DaunPenh</family>
  443.                 <family>MV Boli</family>
  444.                 <family>Iskoola Pota</family>
  445.                 <family>Latha</family>
  446.                 <family>Microsoft Himalaya</family>
  447.                 <family>Mongolian Baiti</family>
  448.                 <family>Shruti</family>
  449.                 <family>Cardo</family>
  450.                 <family>MPH 2B Damase</family>
  451.             </prefer>
  452.         </alias>
  453.         <alias>
  454.             <family>sans-serif</family>
  455.             <prefer>
  456.                 <family>Arial</family>
  457.                 <family>Meiryo</family>
  458.                 <family>Arabic Typesetting</family>
  459.                 <family>DokChampa</family>
  460.                 <family>Malgun Gothic</family>
  461.                 <family>Estrangelo Edessa</family>
  462.                 <family>Gautami</family>
  463.                 <family>Iskoola Pota</family>
  464.                 <family>Microsoft YaHei</family>
  465.                 <family>Mangal</family>
  466.                 <family>Microsoft JhengHei</family>
  467.                 <family>Vrinda</family>
  468.                 <family>Plantagenet Cherokee</family>
  469.                 <family>Raavi</family>
  470.                 <family>Nyala</family>
  471.                 <family>Tunga</family>
  472.                 <family>Kartika</family>
  473.                 <family>MV Boli</family>
  474.                 <family>DaunPenh</family>
  475.                 <family>Iskoola Pota</family>
  476.                 <family>Latha</family>
  477.                 <family>Microsoft Himalaya</family>
  478.                 <family>Mongolian Baiti</family>
  479.                 <family>Shruti</family>
  480.                 <family>Skeirs</family>
  481.                 <family>Cardo</family>
  482.                 <family>MPH 2B Damase</family>
  483.                 <family>Tahoma</family>
  484.                 <family>Arial Unicode MS</family>
  485.             </prefer>
  486.         </alias>
  487.         <alias>
  488.             <family>monospace</family>
  489.             <prefer>
  490.                 <family>Consolas</family>
  491.                 <family>Inconsolata</family>
  492.                 <family>Andale Mono</family>
  493.                 <family>Courier New</family>
  494.                 <family>Microsoft JhengHei</family>
  495.                 <family>Microsoft YaHei</family>
  496.                 <family>MPH 2B Damase</family>
  497.             </prefer>
  498.         </alias>
  499.         <alias>
  500.             <family>fantasy</family>
  501.             <prefer>
  502.                 <family>Impact</family>
  503.                 <family>Copperplate Gothic Std</family>
  504.                 <family>Cooper Std</family>
  505.                 <family>Bauhaus Std</family>
  506.             </prefer>
  507.         </alias>
  508.         <alias>
  509.             <family>cursive</family>
  510.             <prefer>
  511.                 <family>ITC Zapf Chancery Std</family>
  512.                 <family>Zapfino</family>
  513.                 <family>Comic Sans MS</family>
  514.             </prefer>
  515.         </alias>
  516.     </match>
  517.  
  518.     <!-- ************************** REPLACEMENTS  **********************  -->
  519.  
  520.     <!-- Replaces sans, sans-serif, serif with a specific font preference -->
  521.     <!-- This is also set in aliases above -->
  522.  
  523.     <!-- Microsoft style - sans, sans-serif, serif -->
  524.     <match target="font" >
  525.         <test name="rendering_style" qual="any" >
  526.             <string>Infinality</string>
  527.             <string>Windows 7</string>
  528.             <string>Windows XP</string>
  529.             <string>Windows 98</string>
  530.         </test>
  531.         <test name="family" qual="any" >
  532.             <string>sans</string>
  533.         </test>
  534.         <edit mode="assign" name="family" >
  535.             <string>Arial</string>
  536.         </edit>
  537.     </match>
  538.     <match target="font" >
  539.         <test name="rendering_style" qual="any" >
  540.             <string>Infinality</string>
  541.             <string>Windows 7</string>
  542.             <string>Windows XP</string>
  543.             <string>Windows 98</string>
  544.         </test>
  545.         <test name="family" qual="any" >
  546.             <string>sans-serif</string>
  547.         </test>
  548.         <edit mode="assign" name="family" >
  549.             <string>Arial</string>
  550.         </edit>
  551.     </match>
  552.     <match target="font" >
  553.         <test name="rendering_style" qual="any" >
  554.             <string>Infinality</string>
  555.             <string>Windows 7</string>
  556.             <string>Windows XP</string>
  557.             <string>Windows 98</string>
  558.         </test>
  559.         <test name="family" qual="any" >
  560.             <string>serif</string>
  561.         </test>
  562.         <edit mode="assign" name="family" >
  563.             <string>Times New Roman</string>
  564.         </edit>
  565.     </match>
  566.  
  567.     <!-- Apple style - sans, sans-serif, serif -->
  568.     <match target="font" >
  569.         <test name="rendering_style" qual="any" >
  570.             <string>Apple</string>
  571.         </test>
  572.         <test name="family" qual="any" >
  573.             <string>sans</string>
  574.         </test>
  575.         <edit mode="assign" name="family" >
  576.             <string>Lucida Grande</string>
  577.         </edit>
  578.     </match>
  579.     <match target="font" >
  580.         <test name="rendering_style" qual="any" >
  581.             <string>Apple</string>
  582.         </test>
  583.         <test name="family" qual="any" >
  584.             <string>sans-serif</string>
  585.         </test>
  586.         <edit mode="assign" name="family" >
  587.             <string>Lucida Grande</string>
  588.         </edit>
  589.     </match>
  590.     <match target="font" >
  591.         <test name="rendering_style" qual="any" >
  592.             <string>Apple</string>
  593.         </test>
  594.         <test name="family" qual="any" >
  595.             <string>serif</string>
  596.         </test>
  597.         <edit mode="assign" name="family" >
  598.             <string>Times</string>
  599.         </edit>
  600.     </match>
  601.  
  602.  
  603.  
  604.     <!-- Replace these common poorly hinted fonts with Arial -->
  605.     <!-- Adjust as necessary -->
  606.  
  607.     <!-- Microsoft Appearance - Poorly Hinted Fonts -->
  608.     <match target="font" >
  609.         <test name="rendering_style" qual="any" >
  610.             <string>Infinality</string>
  611.             <string>Windows 7</string>
  612.             <string>Windows XP</string>
  613.             <string>Windows 98</string>
  614.         </test>
  615.         <test name="family" qual="any" >
  616.             <string>Nimbus Sans</string>
  617.         </test>
  618.         <edit mode="assign" name="family" >
  619.             <string>Arial</string>
  620.         </edit>
  621.     </match>
  622.     <match target="pattern" name="family">
  623.         <test name="rendering_style" qual="any" >
  624.             <string>Infinality</string>
  625.             <string>Windows 7</string>
  626.             <string>Windows XP</string>
  627.             <string>Windows 98</string>
  628.         </test>
  629.         <test name="family" qual="any" >
  630.             <string>Nimbus Sans</string>
  631.         </test>
  632.         <edit binding="strong" mode="prepend" name="family" >
  633.             <string>Arial</string>
  634.         </edit>
  635.     </match>
  636.     <match target="font" >
  637.         <test name="rendering_style" qual="any" >
  638.             <string>Infinality</string>
  639.             <string>Windows 7</string>
  640.             <string>Windows XP</string>
  641.             <string>Windows 98</string>
  642.         </test>
  643.         <test name="family" qual="any" >
  644.             <string>Nimbus Sans L</string>
  645.         </test>
  646.         <edit mode="assign" name="family" >
  647.             <string>Arial</string>
  648.         </edit>
  649.     </match>
  650.     <match target="pattern" name="family">
  651.         <test name="rendering_style" qual="any" >
  652.             <string>Infinality</string>
  653.             <string>Windows 7</string>
  654.             <string>Windows XP</string>
  655.             <string>Windows 98</string>
  656.         </test>
  657.         <test name="family" qual="any" >
  658.             <string>Nimbus Sans L</string>
  659.         </test>
  660.         <edit binding="strong" mode="prepend" name="family" >
  661.             <string>Arial</string>
  662.         </edit>
  663.     </match>
  664.  
  665.     <!-- Apple Appearance - Poorly Hinted Fonts -->
  666.     <match target="font" >
  667.         <test name="rendering_style" qual="any" >
  668.             <string>Apple</string>
  669.         </test>
  670.         <test name="family" qual="any" >
  671.             <string>Nimbus Sans</string>
  672.         </test>
  673.         <edit mode="assign" name="family" >
  674.             <string>Helvetica Neue</string>
  675.         </edit>
  676.     </match>
  677.     <match target="pattern" name="family">
  678.         <test name="rendering_style" qual="any" >
  679.             <string>Apple</string>
  680.         </test>
  681.         <test name="family" qual="any" >
  682.             <string>Nimbus Sans</string>
  683.         </test>
  684.         <edit binding="strong" mode="prepend" name="family" >
  685.             <string>Helvetica Neue</string>
  686.         </edit>
  687.     </match>
  688.     <match target="font" >
  689.         <test name="rendering_style" qual="any" >
  690.             <string>Apple</string>
  691.         </test>
  692.         <test name="family" qual="any" >
  693.             <string>Nimbus Sans L</string>
  694.         </test>
  695.         <edit mode="assign" name="family" >
  696.             <string>Helvetica Neue</string>
  697.         </edit>
  698.     </match>
  699.     <match target="pattern" name="family">
  700.         <test name="family" qual="any" >
  701.             <string>Nimbus Sans L</string>
  702.         </test>
  703.         <edit binding="strong" mode="prepend" name="family" >
  704.             <string>Helvetica Neue</string>
  705.         </edit>
  706.     </match>
  707.  
  708.     <!-- This replacement handles the fonts here, which I recommend
  709.     in place of the default Terminus bitmap files:
  710.     http://files.ax86.net/terminus-ttf/4.30/
  711.  
  712.     Note that Terminus will only look good at the pixel sizes that
  713.     it was designed for!
  714.     -->
  715.     <match target="font" >
  716.         <test name="family" qual="any" >
  717.             <string>Terminus</string>
  718.         </test>
  719.         <edit mode="assign" name="family" >
  720.             <string>Terminus (ttf)</string>
  721.         </edit>
  722.     </match>
  723.     <match target="pattern" name="family">
  724.         <test name="family" qual="any" >
  725.             <string>Terminus</string>
  726.         </test>
  727.         <edit binding="strong" mode="prepend" name="family" >
  728.             <string>Terminus (ttf)</string>
  729.         </edit>
  730.     </match>
  731.  
  732.     <!-- Replace Helvetica with Arial -->
  733.     <!-- Currently Helvetica has cap height issues -->
  734.  
  735.     <!-- Microsoft Appearance - Helvetica -->
  736.     <match target="pattern" name="family">
  737.         <test name="rendering_style" qual="any" >
  738.             <string>Infinality</string>
  739.             <string>Windows 7</string>
  740.             <string>Windows XP</string>
  741.             <string>Windows 98</string>
  742.         </test>
  743.         <test name="family" qual="any" >
  744.             <string>Helvetica</string>
  745.         </test>
  746.         <edit binding="strong" mode="prepend" name="family" >
  747.             <string>Arial</string>
  748.         </edit>
  749.     </match>
  750.     <match target="font" >
  751.         <test name="rendering_style" qual="any" >
  752.             <string>Infinality</string>
  753.             <string>Windows 7</string>
  754.             <string>Windows XP</string>
  755.             <string>Windows 98</string>
  756.         </test>
  757.         <test name="family" qual="any" >
  758.             <string>Helvetica</string>
  759.         </test>
  760.         <edit mode="assign" name="family" >
  761.             <string>Arial</string>
  762.         </edit>
  763.     </match>
  764.  
  765.     <!-- Linux Appearance - Helvetica -->
  766.     <match target="pattern" name="family">
  767.         <test name="rendering_style" qual="any" >
  768.             <string>Linux</string>
  769.         </test>
  770.         <test name="family" qual="any" >
  771.             <string>Helvetica</string>
  772.         </test>
  773.         <edit binding="strong" mode="prepend" name="family" >
  774.             <string>Liberation Sans</string>
  775.         </edit>
  776.     </match>
  777.     <match target="font" >
  778.         <test name="rendering_style" qual="any" >
  779.             <string>Linux</string>
  780.         </test>
  781.         <test name="family" qual="any" >
  782.             <string>Helvetica</string>
  783.         </test>
  784.         <edit mode="assign" name="family" >
  785.             <string>Liberation Sans</string>
  786.         </edit>
  787.     </match>
  788.  
  789.     <!-- Replace Helvetica Neue with Arial -->
  790.     <!-- Currently Helvetica Neue has cap height issues -->
  791.  
  792.     <!-- Microsoft Appearance - Helvetica Neue -->
  793.     <match target="pattern" name="family">
  794.         <test name="rendering_style" qual="any" >
  795.             <string>Infinality</string>
  796.             <string>Windows 7</string>
  797.             <string>Windows XP</string>
  798.             <string>Windows 98</string>
  799.         </test>
  800.         <test name="family" qual="any" >
  801.             <string>Helvetica Neue</string>
  802.         </test>
  803.         <edit binding="strong" mode="prepend" name="family" >
  804.             <string>Arial</string>
  805.         </edit>
  806.     </match>
  807.     <match target="font" >
  808.         <test name="rendering_style" qual="any" >
  809.             <string>Infinality</string>
  810.             <string>Windows 7</string>
  811.             <string>Windows XP</string>
  812.             <string>Windows 98</string>
  813.         </test>
  814.         <test name="family" qual="any" >
  815.             <string>Helvetica Neue</string>
  816.         </test>
  817.         <edit mode="assign" name="family" >
  818.             <string>Arial</string>
  819.         </edit>
  820.     </match>
  821.  
  822.     <!-- Linux Appearance - Helvetica Neue -->
  823.     <match target="pattern" name="family">
  824.         <test name="rendering_style" qual="any" >
  825.             <string>Linux</string>
  826.         </test>
  827.         <test name="family" qual="any" >
  828.             <string>Helvetica Neue</string>
  829.         </test>
  830.         <edit binding="strong" mode="prepend" name="family" >
  831.             <string>Liberation Sans</string>
  832.         </edit>
  833.     </match>
  834.     <match target="font" >
  835.         <test name="rendering_style" qual="any" >
  836.             <string>Linux</string>
  837.         </test>
  838.         <test name="family" qual="any" >
  839.             <string>Helvetica Neue</string>
  840.         </test>
  841.         <edit mode="assign" name="family" >
  842.             <string>Liberation Sans</string>
  843.         </edit>
  844.     </match>
  845.  
  846.  
  847.     <!-- Replace "Arial" with black weight, with font "Arial Black" -->
  848.     <match target="pattern">
  849.         <test name="family" compare="eq" target="default">
  850.             <string>Arial</string>
  851.         </test>
  852.         <test compare="more" name="weight" >
  853.             <const>bold</const>
  854.         </test>
  855.         <edit name="family" mode="prepend" binding="same">
  856.             <string>Arial Black</string>
  857.         </edit>
  858.         <edit name="weight" mode="assign">
  859.             <const>bold</const>
  860.         </edit>
  861.     </match>
  862.  
  863.     <!-- Replace 'Nimbus Mono L' with Courier New -->
  864.     <match target="font" >
  865.         <test name="family" qual="any" >
  866.             <string>Nimbus Mono L</string>
  867.         </test>
  868.         <edit mode="assign" name="family" >
  869.             <string>Courier New</string>
  870.         </edit>
  871.     </match>
  872.     <match target="pattern" name="family" >
  873.         <test name="family" compare="eq" target="default">
  874.             <string>Nimbus Mono L</string>
  875.         </test>
  876.         <edit binding="strong" mode="prepend" name="family" >
  877.             <string>Courier New</string>
  878.         </edit>
  879.     </match>
  880.  
  881.     <!-- Replace "Lucida Sans Unicode" bold with Lucida Grande bold weight -->
  882.     <match target="pattern">
  883.         <test name="family" compare="eq" target="default">
  884.             <string>Lucida Sans Unicode</string>
  885.         </test>
  886.         <test compare="more" name="weight" >
  887.             <const>medium</const>
  888.         </test>
  889.         <edit name="family" mode="prepend" binding="same">
  890.             <string>Lucida Grande</string>
  891.         </edit>
  892.         <edit name="weight" mode="assign">
  893.             <const>bold</const>
  894.         </edit>
  895.     </match>
  896.  
  897.     <!-- Microsoft Appearance - Courier -->
  898.     <match target="pattern">
  899.         <test name="rendering_style" qual="any" >
  900.             <string>Windows 7</string>
  901.             <string>Windows XP</string>
  902.             <string>Windows 98</string>
  903.         </test>
  904.         <test name="family" compare="eq" target="default">
  905.             <string>Courier</string>
  906.         </test>
  907.         <edit name="family" mode="prepend" binding="same">
  908.             <string>Courier New</string>
  909.         </edit>
  910.     </match>
  911.     <match target="font" >
  912.         <test name="rendering_style" qual="any" >
  913.             <string>Windows 7</string>
  914.             <string>Windows XP</string>
  915.             <string>Windows 98</string>
  916.         </test>
  917.         <test name="family" qual="any" >
  918.             <string>Courier</string>
  919.         </test>
  920.         <edit mode="assign" name="family" >
  921.             <string>Courier New</string>
  922.         </edit>
  923.     </match>
  924.  
  925.     <!-- NOTE: Apple's Courier renders much nicer than Courier New -->
  926.     <!-- Apple Appearance - Courier -->
  927.     <match target="pattern">
  928.         <test name="rendering_style" qual="any" >
  929.             <string>Apple</string>
  930.             <string>Infinality</string>
  931.         </test>
  932.         <test name="family" compare="eq" target="default">
  933.             <string>Courier New</string>
  934.         </test>
  935.         <edit name="family" mode="prepend" binding="same">
  936.             <string>Courier</string>
  937.         </edit>
  938.     </match>
  939.     <match target="font" >
  940.         <test name="rendering_style" qual="any" >
  941.             <string>Apple</string>
  942.             <string>Infinality</string>
  943.         </test>
  944.         <test name="family" qual="any" >
  945.             <string>Courier New</string>
  946.         </test>
  947.         <edit mode="assign" name="family" >
  948.             <string>Courier</string>
  949.         </edit>
  950.     </match>
  951.  
  952.     <!-- Microsoft Appearance:  Replace 'Times' with Times New Roman -->
  953.     <match target="pattern" name="family" >
  954.         <test name="rendering_style" qual="any" >
  955.             <string>Infinality</string>
  956.             <string>Windows 7</string>
  957.             <string>Windows XP</string>
  958.             <string>Windows 98</string>
  959.         </test>
  960.         <test name="family" qual="any" >
  961.             <string>Times</string>
  962.         </test>
  963.         <edit binding="strong" mode="prepend" name="family" >
  964.             <string>Times New Roman</string>
  965.         </edit>
  966.     </match>
  967.     <match target="font" >
  968.         <test name="rendering_style" qual="any" >
  969.             <string>Infinality</string>
  970.             <string>Windows 7</string>
  971.             <string>Windows XP</string>
  972.             <string>Windows 98</string>
  973.         </test>
  974.         <test name="family" qual="any" >
  975.             <string>Times</string>
  976.         </test>
  977.         <edit mode="assign" name="family" >
  978.             <string>Times New Roman</string>
  979.         </edit>
  980.     </match>
  981.  
  982.  
  983.     <!-- Fix poorly specified font family names -->
  984.  
  985.     <match target="pattern" name="family">
  986.         <test name="family" qual="any" >
  987.             <string>Trebuchet</string>
  988.         </test>
  989.         <edit binding="strong" mode="prepend" name="family" >
  990.             <string>Trebuchet MS</string>
  991.         </edit>
  992.     </match>
  993.     <match target="font" >
  994.         <test name="family" qual="any" >
  995.             <string>Trebuchet</string>
  996.         </test>
  997.         <edit mode="assign" name="family" >
  998.             <string>Trebuchet MS</string>
  999.         </edit>
  1000.     </match>
  1001.  
  1002.     <match target="pattern" name="family" >
  1003.         <test name="family" qual="any" >
  1004.             <string>Palatino</string>
  1005.         </test>
  1006.         <edit binding="strong" mode="prepend" name="family" >
  1007.             <string>Palatino Linotype</string>
  1008.         </edit>
  1009.     </match>
  1010.     <match target="font" >
  1011.         <test name="family" qual="any" >
  1012.             <string>Palatino</string>
  1013.         </test>
  1014.         <edit mode="assign" name="family" >
  1015.             <string>Palatino Linotype</string>
  1016.         </edit>
  1017.     </match>
  1018.  
  1019.     <match target="pattern" name="family" >
  1020.         <test name="family" qual="any" >
  1021.             <string>Lucida Sans</string>
  1022.         </test>
  1023.         <edit binding="strong" mode="prepend" name="family" >
  1024.             <string>Lucida Grande</string>
  1025.         </edit>
  1026.     </match>
  1027.     <match target="font" >
  1028.         <test name="family" qual="any" >
  1029.             <string>Lucida Sans</string>
  1030.         </test>
  1031.         <edit mode="assign" name="family" >
  1032.             <string>Lucida Grande</string>
  1033.         </edit>
  1034.     </match>
  1035.  
  1036.     <!-- ********************  BASE SETTINGS  **********************  -->
  1037.  
  1038.     <!-- These are the base settings for all rendered fonts.
  1039.     We modify them for specific fonts later. -->
  1040.  
  1041.     <match target="font" >
  1042.         <test name="rendering_style" qual="any" >
  1043.             <string>Infinality</string>
  1044.         </test>
  1045.         <edit mode="assign" name="rgba" >
  1046.             <const>rgb</const>
  1047.         </edit>
  1048.         <edit mode="assign" name="hinting" >
  1049.             <bool>true</bool>
  1050.         </edit>
  1051.         <edit mode="assign" name="autohint" >
  1052.             <bool>true</bool>
  1053.         </edit>
  1054.         <edit mode="assign" name="antialias" >
  1055.             <bool>true</bool>
  1056.         </edit>
  1057.         <edit mode="assign" name="hintstyle" >
  1058.             <const>hintslight</const>
  1059.         </edit>
  1060.         <edit name="lcdfilter" mode="assign">
  1061.             <const>lcddefault</const>
  1062.         </edit>
  1063.     </match>
  1064.  
  1065.     <match target="font" >
  1066.         <test name="rendering_style" qual="any">
  1067.             <string>Windows 7</string>
  1068.         </test>
  1069.         <edit mode="assign" name="rgba" >
  1070.             <const>rgb</const>
  1071.         </edit>
  1072.         <edit mode="assign" name="hinting" >
  1073.             <bool>true</bool>
  1074.         </edit>
  1075.         <edit mode="assign" name="autohint" >
  1076.             <bool>false</bool>
  1077.         </edit>
  1078.         <edit mode="assign" name="antialias" >
  1079.             <bool>true</bool>
  1080.         </edit>
  1081.         <edit mode="assign" name="hintstyle" >
  1082.             <const>hintfull</const>
  1083.         </edit>
  1084.         <edit name="lcdfilter" mode="assign">
  1085.             <const>lcddefault</const>
  1086.         </edit>
  1087.     </match>
  1088.  
  1089.     <match target="font" >
  1090.         <test name="rendering_style" qual="any">
  1091.             <string>Windows XP</string>
  1092.         </test>
  1093.         <edit mode="assign" name="rgba" >
  1094.             <const>rgb</const>
  1095.         </edit>
  1096.         <edit mode="assign" name="hinting" >
  1097.             <bool>true</bool>
  1098.         </edit>
  1099.         <edit mode="assign" name="autohint" >
  1100.             <bool>false</bool>
  1101.         </edit>
  1102.         <edit mode="assign" name="antialias" >
  1103.             <bool>true</bool>
  1104.         </edit>
  1105.         <edit mode="assign" name="hintstyle" >
  1106.             <const>hintfull</const>
  1107.         </edit>
  1108.         <edit name="lcdfilter" mode="assign">
  1109.             <const>lcddefault</const>
  1110.         </edit>
  1111.     </match>
  1112.  
  1113.     <match target="font" >
  1114.         <test name="rendering_style" qual="any">
  1115.             <string>Windows 98</string>
  1116.         </test>
  1117.         <edit mode="assign" name="rgba" >
  1118.             <const>rgb</const>
  1119.         </edit>
  1120.         <edit mode="assign" name="hinting" >
  1121.             <bool>true</bool>
  1122.         </edit>
  1123.         <edit mode="assign" name="autohint" >
  1124.             <bool>false</bool>
  1125.         </edit>
  1126.         <edit mode="assign" name="antialias" >
  1127.             <bool>false</bool>
  1128.         </edit>
  1129.         <edit mode="assign" name="hintstyle" >
  1130.             <const>hintfull</const>
  1131.         </edit>
  1132.         <edit name="lcdfilter" mode="assign">
  1133.             <const>lcddefault</const>
  1134.         </edit>
  1135.     </match>
  1136.  
  1137.     <match target="font" >
  1138.         <test name="rendering_style" qual="any">
  1139.             <string>Apple</string>
  1140.         </test>
  1141.         <edit mode="assign" name="rgba" >
  1142.             <const>rgb</const>
  1143.         </edit>
  1144.         <edit mode="assign" name="hinting" >
  1145.             <bool>false</bool>
  1146.         </edit>
  1147.         <edit mode="assign" name="autohint" >
  1148.             <bool>false</bool>
  1149.         </edit>
  1150.         <edit mode="assign" name="antialias" >
  1151.             <bool>true</bool>
  1152.         </edit>
  1153.         <edit mode="assign" name="hintstyle" >
  1154.             <const>hintnone</const>
  1155.         </edit>
  1156.         <edit name="lcdfilter" mode="assign">
  1157.             <const>lcddefault</const>
  1158.         </edit>
  1159.     </match>
  1160.  
  1161.     <match target="font" >
  1162.         <test name="rendering_style" qual="any">
  1163.             <string>Fedora Linux</string>
  1164.         </test>
  1165.         <edit mode="assign" name="rgba" >
  1166.             <const>none</const>
  1167.         </edit>
  1168.         <edit mode="assign" name="hinting" >
  1169.             <bool>true</bool>
  1170.         </edit>
  1171.         <edit mode="assign" name="autohint" >
  1172.             <bool>true</bool>
  1173.         </edit>
  1174.         <edit mode="assign" name="antialias" >
  1175.             <bool>true</bool>
  1176.         </edit>
  1177.         <edit mode="assign" name="hintstyle" >
  1178.             <const>hintfull</const>
  1179.         </edit>
  1180.         <edit name="lcdfilter" mode="assign">
  1181.             <const>lcdnone</const>
  1182.         </edit>
  1183.     </match>
  1184.  
  1185.  
  1186.     <!-- ********************  FONT GROUPS  **********************  -->
  1187.  
  1188.     <!-- Full Subpixel BCI for these fonts.  (Cleartype-like, circa Windows XP/Vista/7) -->
  1189.     <!-- These will take advantage of subpixel hinting if infinality patch installed. -->
  1190.     <!-- This should only be used by fonts that contain TrueType instructions, -->
  1191.     <!-- otherwise fonts will appear blurry. -->
  1192.  
  1193.     <match target="font" >
  1194.         <test name="family" qual="any" >
  1195.             <string>Andale Mono</string>
  1196.             <string>Andalus</string>
  1197.             <string>Angsana New</string>
  1198.             <string>AngsanaUPC</string>
  1199.             <string>Aquabase</string>
  1200.             <string>Arial Black</string>
  1201.             <string>Arial MT</string>
  1202.             <string>Arial Narrow</string>
  1203.             <string>Arial SF MT</string>
  1204.             <string>Arial Unicode MS</string>
  1205.             <string>Arial</string>
  1206.             <string>ArialMT</string>
  1207.             <string>Bitstream Vera Sans Mono</string>
  1208.             <string>Bitstream Vera Sans</string>
  1209.             <string>Bitstream Vera Serif</string>
  1210.             <string>Book Antiqua</string>
  1211.             <string>Bookman Old Style</string>
  1212.             <string>Browallia New</string>
  1213.             <string>BrowalliaUPC</string>
  1214.             <string>Calibri</string>
  1215.             <string>Cambria</string>
  1216.             <string>Candara</string>
  1217.             <string>Century Gothic</string>
  1218.             <string>Chalkduster</string>
  1219.             <string>Charcoal CY</string>
  1220.             <string>Charcoal</string>
  1221.             <string>Charis SIL</string>
  1222.             <string>Chicago</string>
  1223.             <string>Comic Sans MS</string>
  1224.             <string>Consolas</string>
  1225.             <string>Constantia</string>
  1226.             <string>Copperplate</string>
  1227.             <string>Corbel</string>
  1228.             <string>Cordia New</string>
  1229.             <string>CordiaUPC</string>
  1230.             <string>Courier 10 Pitch</string>
  1231.             <string>Courier New</string>
  1232.             <string>Courier</string>
  1233.             <string>Dark Courier</string>
  1234.             <string>DejaVu LGC Sans Mono</string>
  1235.             <string>DejaVu Sans Mono</string>
  1236.             <string>DejaVu Sans</string>
  1237.             <string>DejaVu Serif</string>
  1238.             <string>Estrangelo Edessa</string>
  1239.             <string>Euphemia</string>
  1240.             <string>FrankRuehl</string>
  1241.             <string>Franklin Gothic Medium</string>
  1242.             <string>Futura</string>
  1243.             <string>Georgia</string>           
  1244.             <string>Gotham Book</string>
  1245.             <string>Gotham Light</string>
  1246.             <string>Gotham Medium</string>
  1247.             <string>Guatami</string>
  1248.             <string>Impact</string>
  1249.             <string>Latha</string>
  1250.             <string>Levinim MT</string>
  1251.             <string>Liberation Mono</string>
  1252.             <string>Liberation Sans</string>
  1253.             <string>Liberation Serif</string>
  1254.             <string>Lucida Console</string>
  1255.             <string>Lucida Grande</string>
  1256.             <string>Lucida Sans Unicode</string>
  1257.             <string>Luxi Mono</string>
  1258.             <string>Malgun Gothic</string>
  1259.             <string>Microsoft Himalaya</string>
  1260.             <string>Microsoft JhengHei</string>
  1261.             <string>Microsoft Sans Serif</string>
  1262.             <string>Microsoft Uighur</string>
  1263.             <string>Microsoft YaHei</string>
  1264.             <string>Microsoft Yi Baiti</string>
  1265.             <string>Miriam Fixed</string>
  1266.             <string>Molengo</string>
  1267.             <string>Monaco</string>
  1268.             <string>Mongolian Baiti</string>
  1269.             <string>MoolBoran</string>
  1270.             <string>Narkisim</string>
  1271.             <string>Nina</string>
  1272.             <string>Nyala</string>
  1273.             <string>Padauk</string>
  1274.             <string>Palatino Linotype</string>
  1275.             <string>Plantagenet Cherokee</string>
  1276.             <string>Raavi</string>
  1277.             <string>Segoe UI</string>
  1278.             <string>Segoe UI Semibold</string>
  1279.             <string>TITUS Cyberbit Basic</string>
  1280.             <string>Tahoma</string>
  1281.             <string>Times New Roman</string>
  1282.             <string>Traditional Arabic</string>
  1283.             <string>Trebuchet MS</string>
  1284.             <string>Tunga</string>
  1285.             <string>Verdana</string>
  1286.             <string>Vrinda</string>
  1287.             <string>Yanone Kaffeesatz</string>
  1288.            
  1289.             <string>Garamond</string>          
  1290.         </test>
  1291.         <edit mode="assign" name="font_type" target="font">
  1292.             <string>TT Instructed Font</string>
  1293.         </edit>
  1294.         <!--<edit mode="assign" name="hinting" >
  1295.             <bool>true</bool>
  1296.         </edit>
  1297.         <edit mode="assign" name="autohint" >
  1298.             <bool>false</bool>
  1299.         </edit>
  1300.         <edit mode="assign" name="antialias" >
  1301.             <bool>true</bool>
  1302.               </edit>
  1303.         <edit mode="assign" name="hintstyle" >
  1304.             <const>hintfull</const>
  1305.         </edit>-->
  1306.     </match>
  1307.  
  1308.     <match target="font" >
  1309.         <test name="font_type" qual="any" >
  1310.             <string>TT Instructed Font</string>
  1311.         </test>
  1312.         <test name="rendering_style" qual="any" >
  1313.             <string>Infinality</string>
  1314.             <string>Windows 7</string>
  1315.             <string>Windows XP</string>
  1316.         </test>
  1317.         <edit mode="assign" name="antialias" >
  1318.             <bool>true</bool>
  1319.         </edit>
  1320.         <edit mode="assign" name="hintstyle" >
  1321.             <const>hintfull</const>
  1322.         </edit>
  1323.         <edit mode="assign" name="autohint" >
  1324.             <bool>false</bool>
  1325.         </edit>
  1326.     </match>
  1327.  
  1328.     <match target="font" >
  1329.         <test name="font_type" qual="any" >
  1330.             <string>TT Instructed Font</string>
  1331.         </test>
  1332.         <test name="rendering_style" qual="any" >
  1333.             <string>Windows 98</string>
  1334.         </test>
  1335.         <edit mode="assign" name="antialias" >
  1336.             <bool>false</bool>
  1337.         </edit>
  1338.         <edit mode="assign" name="hintstyle" >
  1339.             <const>hintfull</const>
  1340.         </edit>
  1341.         <edit mode="assign" name="autohint" >
  1342.             <bool>false</bool>
  1343.         </edit>
  1344.     </match>
  1345.  
  1346.     <match target="font" >
  1347.         <test name="font_type" qual="any" >
  1348.             <string>TT Instructed Font</string>
  1349.         </test>
  1350.         <test name="rendering_style" qual="any" >
  1351.             <string>Apple</string>
  1352.         </test>
  1353.         <edit mode="assign" name="antialias" >
  1354.             <bool>true</bool>
  1355.         </edit>
  1356.         <edit mode="assign" name="hintstyle" >
  1357.             <const>hintnone</const>
  1358.         </edit>
  1359.         <edit mode="assign" name="autohint" >
  1360.             <bool>true</bool>
  1361.         </edit>
  1362.     </match>
  1363.  
  1364.  
  1365.     <!-- Make these fonts use autohint slight hinting -->
  1366.     <!-- Makes only horizontal stems align to pixels.  Truer to glyph -->
  1367.     <match target="font" >
  1368.         <test name="family" qual="any" >
  1369.             <string>AR PL ShanHeiSun Uni</string>
  1370.             <string>American Typewriter</string>
  1371.             <string>Apple Chancery</string>
  1372.             <string>Apple Garamond Light</string>
  1373.             <string>Apple Garamond</string>
  1374.             <string>AppleGothic</string>
  1375.             <string>Apple Symbols</string>
  1376.             <string>Arabic Typesetting</string>
  1377.             <string>Baekmuk Gulim</string>
  1378.             <string>Baskerville</string>
  1379.             <string>Big Caslon</string>
  1380.             <string>Bitstream Charter</string>
  1381.             <string>BrushScript</string>
  1382.             <string>Cantarell</string>
  1383.             <string>CantarellRegular</string>
  1384.             <string>Cantarell Regular</string>
  1385.             <string>Cardo</string>
  1386.             <string>Century Schoolbook L</string>
  1387.             <string>Century</string>
  1388.             <string>Charis SIL</string>
  1389.             <string>Chalkboard</string>
  1390.             <string>CMU Bright</string>
  1391.             <string>Cochin</string>
  1392.             <string>Comfortaa</string>
  1393.             <string>Comfortaa Regular</string>
  1394.             <string>ComfortaaRegular</string>
  1395.             <string>Courier Std</string>
  1396.             <string>Courier10 BT</string>
  1397.             <string>Crimson Text</string>
  1398.             <string>David</string>
  1399.             <string>Delicious</string>
  1400.             <string>Didot</string>
  1401.             <string>DilenniaUPC</string>
  1402.             <string>District</string>
  1403.             <string>DokChampa</string>
  1404.             <string>Droid Sans Mono</string>
  1405.             <string>Droid Sans</string>
  1406.             <string>Droid Serif</string>
  1407.             <string>Dutch801 Rm BT</string>
  1408.             <string>EucrosiaUPC</string>
  1409.             <string>FreeMono</string>
  1410.             <string>FreeSans</string>
  1411.             <string>FreeSerif</string>
  1412.             <string>FreesiaUPC</string>
  1413.             <string>Frutiger LT Std</string>
  1414.             <string>Frutiger Linotype</string>
  1415.             <string>Frutiger-Normal</string>
  1416.             <string>Gautami</string>
  1417.             <string>Geneva CY</string>
  1418.             <string>Geneva Regular</string>
  1419.             <string>Geneva</string>
  1420.             <string>Gentium</string>
  1421.             <string>Gill Sans</string>
  1422.             <string>Hard Gothic</string>
  1423.             <string>Helvetica</string>
  1424.             <string>Helvetica CY</string>
  1425.             <string>Helvetica Neue</string>
  1426.             <string>Herculanum</string>
  1427.             <string>Hoefler Text</string>
  1428.             <string>IM Fell</string>
  1429.             <string>Inconsolata</string>
  1430.             <string>IrisUPC</string>
  1431.             <string>JasmineUPC</string>
  1432.             <string>Jomolhari</string>
  1433.             <string>Josefin Sans Std Light</string>
  1434.             <string>Kai</string>
  1435.             <string>Kalinga</string>
  1436.             <string>KodchiangUPC</string>
  1437.             <string>Laconic</string>
  1438.             <string>Lacuna</string>
  1439.             <string>Levenim MT</string>
  1440.             <string>LilyUPC</string>
  1441.             <string>LilyUPC</string>
  1442.             <string>Linux Biolinum</string>
  1443.             <string>Linux Libertine</string>
  1444.             <string>Lobster</string>
  1445.             <string>Lohit Bengali</string>
  1446.             <string>Lohit Gujarati</string>
  1447.             <string>Lohit Hindi</string>
  1448.             <string>Lohit Hindi</string>
  1449.             <string>Lohit Kannada</string>
  1450.             <string>Lohit Malayalam</string>
  1451.             <string>Lohit Oriya</string>
  1452.             <string>Lohit Punjabi</string>
  1453.             <string>Lohit Tamil</string>
  1454.             <string>Lohit Telugu</string>
  1455.             <string>Lucida Sans Std</string>
  1456.             <string>Luxi Sans</string>
  1457.             <string>Luxi Serif</string>
  1458.             <string>M+ 2p</string>
  1459.             <string>Marker Felt</string>
  1460.             <string>Megalopolis</string>
  1461.             <string>MetaMedium-Roman</string>
  1462.             <string>Metabook-Roman</string>
  1463.             <string>MgOpen Canonica</string>
  1464.             <string>MgOpen Cosmetica</string>
  1465.             <string>MgOpen Modata</string>
  1466.             <string>MgOpen Moderna</string>
  1467.             <string>Myriad Pro</string>
  1468.             <string>Miriam</string>
  1469.             <string>MS Mincho</string>
  1470.             <string>MyriadRegular</string>
  1471.             <string>Neuton</string>
  1472.             <string>Nimbus Roman No9 L</string>
  1473.             <string>Nimbus Mono L</string>
  1474.             <string>Nimbus Sans</string>
  1475.             <string>Nimbus Sans L</string>
  1476.             <string>Nobile</string>
  1477.             <string>Nobile002</string>
  1478.             <string>Nobile-bold</string>
  1479.             <string>Nobile-italic002</string>
  1480.             <string>Nobile-bold-italic002</string>
  1481.             <string>OFL Sorts Mill Goudy TT</string>
  1482.             <string>Ocean Sans Std</string>
  1483.             <string>Old Standard TT</string>
  1484.             <string>Optima</string>  <!--- needs work but may be able to be promoted eventually -->
  1485.             <string>OTS derived font</string>
  1486.             <string>OTS derivied font</string>          <!-- bug in chrome code? -->
  1487.             <string>Palladio</string>
  1488.             <string>Papyrus</string>
  1489.             <string>PrimaSans BT</string>
  1490.             <string>proxima-nova-1</string>
  1491.             <string>proxima-nova-2</string>
  1492.             <string>proxima nova</string>
  1493.             <string>proxima nova bold</string>
  1494.             <string>proxima nova regular</string>
  1495.             <string>Reenie Beanie</string>
  1496.             <string>SimHei</string>
  1497.             <string>Skia</string>
  1498.             <string>Swansea</string>
  1499.             <string>Swiss721</string>
  1500.             <string>Sylfaen</string>
  1501.             <string>Tangerine</string>
  1502.             <string>Times LT Std</string>
  1503.             <string>Times New Roman MT Std</string>
  1504.             <string>Times Roman</string>
  1505.             <string>Times Ten LT Std</string>
  1506.             <string>Univers LT Std</string>
  1507.             <string>URWClassico</string>
  1508.             <string>Utopia</string>
  1509.             <string>Verdimka</string>
  1510.             <string>Vollkorn</string>
  1511.             <string>Yanone Kaffeesatz</string>
  1512.             <string>Zapfino</string>
  1513.             <string>cmbx10</string>
  1514.             <string>cmex10</string>
  1515.             <string>cmmi10</string>
  1516.             <string>cmr10</string>
  1517.             <string>cmsy10</string>
  1518.             <string>cmtt10</string>
  1519.             <string>eufm10</string>
  1520.             <string>msam10</string>
  1521.             <string>msbm10</string>
  1522.             <string>wasy10</string>
  1523.             <string>Eurostile LT Std</string>
  1524.         </test>
  1525.         <edit mode="assign" name="font_type" target="font">
  1526.             <string>NON TT Instructed Font</string>
  1527.         </edit>
  1528.     </match>
  1529.  
  1530.     <match target="font" >
  1531.         <test name="rendering_style" qual="any" >
  1532.             <string>Infinality</string>
  1533.             <string>Windows 7</string>
  1534.             <string>Windows XP</string>
  1535.             <string>Linux</string>
  1536.             <string>Fedora Linux</string>
  1537.         </test>
  1538.         <test name="font_type" target="font">
  1539.             <string>NON TT Instructed Font</string>
  1540.         </test>
  1541.         <edit mode="assign" name="autohint"  >
  1542.             <bool>true</bool>
  1543.         </edit>
  1544.         <edit mode="assign" name="hintstyle" >
  1545.             <const>hintslight</const>
  1546.         </edit>
  1547.         <edit mode="assign" name="hinting" >
  1548.             <bool>true</bool>
  1549.         </edit>
  1550.         <edit mode="assign" name="antialias" >
  1551.             <bool>true</bool>
  1552.         </edit>
  1553.     </match>
  1554.  
  1555.     <!-- For Windows 98 do "smooth edges" for these non-BCI fonts -->
  1556.     <match target="font" >
  1557.         <test name="rendering_style" qual="any" >
  1558.             <string>Windows 98</string>
  1559.         </test>
  1560.         <test name="font_type" target="font">
  1561.             <string>NON TT Instructed Font</string>
  1562.         </test>
  1563.         <edit mode="assign" name="rgba" >
  1564.             <const>none</const>
  1565.         </edit>
  1566.         <edit mode="assign" name="hinting" >
  1567.             <bool>true</bool>
  1568.         </edit>
  1569.         <edit mode="assign" name="autohint" >
  1570.             <bool>true</bool>
  1571.         </edit>
  1572.         <edit mode="assign" name="antialias" >
  1573.             <bool>true</bool>
  1574.         </edit>
  1575.     </match>
  1576.  
  1577.     <!-- For Windows 98 do "smooth edges" for Bold Fonts over 14 px -->
  1578.     <match target="font" >
  1579.         <test name="rendering_style" qual="any" >
  1580.             <string>Windows 98</string>
  1581.         </test>
  1582.         <test name="weight" compare="more">
  1583.             <const>medium</const>
  1584.         </test>
  1585.         <test compare="more_eq" name="pixelsize" qual="any" >
  1586.             <double>14</double>
  1587.         </test>
  1588.         <edit mode="assign" name="rgba" >
  1589.             <const>none</const>
  1590.         </edit>
  1591.         <edit mode="assign" name="hinting" >
  1592.             <bool>true</bool>
  1593.         </edit>
  1594.         <edit mode="assign" name="autohint" >
  1595.             <bool>false</bool>
  1596.         </edit>
  1597.         <edit mode="assign" name="antialias" >
  1598.             <bool>true</bool>
  1599.         </edit>
  1600.     </match>
  1601.  
  1602.     <!-- For Windows 98 do "smooth edges" for fonts above 17 px -->
  1603.     <match target="font" >
  1604.         <test name="rendering_style" qual="any" >
  1605.             <string>Windows 98</string>
  1606.         </test>
  1607.         <test compare="more_eq" name="pixelsize" qual="any" >
  1608.             <double>18</double>
  1609.         </test>
  1610.         <edit mode="assign" name="rgba" >
  1611.             <const>none</const>
  1612.         </edit>
  1613.         <edit mode="assign" name="hinting" >
  1614.             <bool>true</bool>
  1615.         </edit>
  1616.         <edit mode="assign" name="autohint" >
  1617.             <bool>false</bool>
  1618.         </edit>
  1619.         <edit mode="assign" name="antialias" >
  1620.             <bool>true</bool>
  1621.         </edit>
  1622.     </match>
  1623.  
  1624.  
  1625.  
  1626.     <!-- OVERRIDE ABOVE SETTINGS -->
  1627.     <!-- Monochrome BCI for these non-bold fonts (circa Windows 98) -->
  1628.     <!-- This should only be used by fonts that contain TrueType instructions -->
  1629.     <match target="font" >
  1630.         <test name="family" qual="any" >
  1631.             <string>xxx-NOTHING-xxx</string>
  1632.         </test>
  1633.         <edit mode="assign" name="hinting" >
  1634.             <bool>true</bool>
  1635.         </edit>
  1636.         <edit mode="assign" name="autohint" >
  1637.             <bool>false</bool>
  1638.         </edit>
  1639.         <edit mode="assign" name="antialias" >
  1640.             <bool>false</bool>
  1641.         </edit>
  1642.         <edit mode="assign" name="hintstyle" >
  1643.             <const>hintfull</const>
  1644.         </edit>
  1645.     </match>
  1646.  
  1647.     <!-- OVERRIDE ABOVE SETTINGS -->
  1648.     <!-- Make these fonts use no antialiasing or hinting (circa DOS / X11) -->
  1649.     <match target="font" >
  1650.         <test name="family" qual="any" >
  1651.             <string>ProFontWindows</string>
  1652.             <string>Terminus</string>
  1653.             <string>Terminus (ttf)</string>
  1654.         </test>
  1655.         <edit mode="assign" name="hintstyle" >
  1656.             <const>hintnone</const>
  1657.         </edit>
  1658.         <edit mode="assign" name="antialias" >
  1659.             <bool>false</bool>
  1660.         </edit>
  1661.         <edit mode="assign" name="hinting" >
  1662.             <bool>false</bool>
  1663.         </edit>
  1664.         <!--<edit name="prefer_bitmap">
  1665.             <bool>true</bool>
  1666.           </edit>-->
  1667.     </match>
  1668.  
  1669.     <!-- OVERRIDE ABOVE SETTINGS -->
  1670.     <!-- Full autohint -->
  1671.     <!-- Makes vertical/horizontal stems align to pixels, but is not true to the glyphs -->
  1672.     <!-- Some glyphs may look forced into place, however they are very sharp -->
  1673.     <match target="font" >
  1674.         <test name="family" qual="any" >
  1675.             <string>xxx-NOTHING-xxx</string>
  1676.         </test>
  1677.         <edit mode="assign" name="hinting" >
  1678.             <bool>true</bool>
  1679.         </edit>
  1680.         <edit mode="assign" name="autohint" >
  1681.             <bool>true</bool>
  1682.         </edit>
  1683.         <edit mode="assign" name="antialias" >
  1684.             <bool>true</bool>
  1685.         </edit>
  1686.         <edit mode="assign" name="hintstyle" >
  1687.             <const>hintfull</const>
  1688.         </edit>
  1689.     </match>
  1690.  
  1691.     <!-- OVERRIDE ABOVE SETTINGS -->
  1692.     <!-- Light autohint on italics -->
  1693.     <!-- Use for anything that is full auto or TT hinted above -->
  1694.     <match target="font" >
  1695.         <test name="family" qual="any" >
  1696.             <string>xxx-NOTHING-xxx</string>
  1697.         </test>
  1698.         <test target="pattern" compare="not_eq" name="slant" >
  1699.             <const>roman</const>
  1700.         </test>
  1701.         <edit mode="assign" name="hinting" >
  1702.             <bool>true</bool>
  1703.         </edit>
  1704.         <edit mode="assign" name="autohint" >
  1705.             <bool>true</bool>
  1706.         </edit>
  1707.         <edit mode="assign" name="antialias" >
  1708.             <bool>true</bool>
  1709.         </edit>
  1710.         <edit mode="assign" name="hintstyle" >
  1711.             <const>hintslight</const>
  1712.         </edit>
  1713.     </match>
  1714.  
  1715.  
  1716.     <!-- *************  FORCED ARTIFICIAL ITALIC / BOLD ******************  -->
  1717.  
  1718.     <!-- "Unforced" artificial/italic already included in /etc/fonts/conf.d/ rules -->
  1719.  
  1720.     <!-- Force artificial italic instead of the font's default italic -->
  1721.     <!-- In rare cases this is more visually appealing -->
  1722.  
  1723.     <!-- Set the flag -->
  1724.     <match target="pattern">
  1725.         <test target="font" compare="eq" name="family" qual="any" >
  1726.             <string>-------Courier</string>  <!-- Somehow this breaks QT -->
  1727.         </test>
  1728.  
  1729.         <!-- match requests for non-roman face -->
  1730.         <test name="slant" compare="not_eq" >
  1731.             <const>roman</const>
  1732.         </test>
  1733.  
  1734.         <!-- remember that this should be slanted -->
  1735.         <edit name="fake_slant">
  1736.             <bool>true</bool>
  1737.         </edit>
  1738.  
  1739.         <!--- change to match a roman face instead -->
  1740.         <edit name="slant">
  1741.             <const>roman</const>
  1742.         </edit>
  1743.     </match>
  1744.  
  1745.     <!-- Force flagged fonts to have artificial oblique -->
  1746.     <match target="font" >
  1747.         <!-- check to see if the font is roman -->
  1748.         <test name="slant" >
  1749.             <const>roman</const>
  1750.         </test>
  1751.         <!-- look for fonts which were marked for fake obliquing -->
  1752.         <test name="fake_slant">
  1753.             <bool>true</bool>
  1754.         </test>
  1755.         <!-- multiply the matrix to slant the font -->
  1756.         <edit mode="assign" name="matrix" >
  1757.             <times>
  1758.                 <name>matrix</name>
  1759.                 <matrix>
  1760.                     <double>1.0</double>
  1761.                     <double>0.2</double>
  1762.                     <double>0</double>
  1763.                     <double>1</double>
  1764.                 </matrix>
  1765.             </times>
  1766.         </edit>
  1767.         <!-- pretend the font is oblique now -->
  1768.         <edit mode="assign" name="slant" >
  1769.             <const>oblique</const>
  1770.         </edit>
  1771.     </match>
  1772.  
  1773.  
  1774.     <!-- Force fake bold instead of the font's default bold -->
  1775.     <!-- In rare cases this is more visually appealing -->
  1776.  
  1777.     <!-- Set the flag -->
  1778.     <match target="pattern">
  1779.         <test target="font" compare="eq" name="family" qual="any" >
  1780.             <string>xxx-NOTHING-xxx</string>
  1781.         </test>
  1782.  
  1783.         <!-- match requests for bold face -->
  1784.         <test name="weight" compare="more">
  1785.             <const>medium</const>
  1786.         </test>
  1787.  
  1788.         <!-- remember that this should be bolded -->
  1789.         <edit name="fake_bold">
  1790.             <bool>true</bool>
  1791.         </edit>
  1792.  
  1793.         <!--- change to match a medium weight instead -->
  1794.         <edit name="weight">
  1795.             <const>medium</const>
  1796.         </edit>
  1797.     </match>
  1798.  
  1799.     <!-- Force flagged fonts to have artificial bold -->
  1800.     <match target="font" >
  1801.         <!-- look for fonts which were marked for fake bolding -->
  1802.         <test name="fake_bold">
  1803.             <bool>true</bool>
  1804.         </test>
  1805.         <!-- Set the embolden flag -->
  1806.         <edit name="embolden" mode="assign">
  1807.                 <bool>true</bool>
  1808.         </edit>
  1809.         <!-- pretend the font is bold now -->
  1810.         <edit mode="assign" name="weight" >
  1811.             <const>bold</const>
  1812.         </edit>
  1813.     </match>
  1814.  
  1815.  
  1816.  
  1817.     <!-- Prevent BCI fonts in Win98 mode from getting artificial italic -->
  1818.     <match target="font">
  1819.         <test name="rendering_style" qual="any" >
  1820.             <string>Windows 98</string>
  1821.         </test>
  1822.         <test name="font_type" target="font">
  1823.             <string>TT Instructed Font</string>
  1824.         </test>
  1825.         <!-- check to see if the font is roman -->
  1826.         <test name="slant" >
  1827.             <const>roman</const>
  1828.         </test>
  1829.         <!-- match requests for non-roman face -->
  1830.         <test target="pattern" name="slant" compare="not_eq">
  1831.             <const>roman</const>
  1832.         </test>
  1833.         <!-- pretend the font is oblique now -->
  1834.         <edit mode="assign" name="slant" >
  1835.             <const>oblique</const>
  1836.         </edit>
  1837.     </match>
  1838.  
  1839.     <!-- Prevent BCI fonts in Win98 mode from getting artificial emboldened -->
  1840.     <match target="font">
  1841.         <test name="rendering_style" qual="any" >
  1842.             <string>Windows 98</string>
  1843.         </test>
  1844.         <test name="font_type" target="font">
  1845.             <string>TT Instructed Font</string>
  1846.         </test>
  1847.         <!-- check to see if the font is just regular -->
  1848.         <test name="weight" compare="less_eq">
  1849.             <const>medium</const>
  1850.         </test>
  1851.         <!-- check to see if the pattern requests bold -->
  1852.         <test target="pattern" name="weight" compare="more">
  1853.             <const>medium</const>
  1854.         </test>
  1855.         <!-- pretend it's bold now -->
  1856.         <edit name="weight" mode="assign">
  1857.             <const>bold</const>
  1858.         </edit>
  1859.     </match>
  1860.  
  1861.  
  1862.     <!-- ********************  FINAL SETTINGS **********************  -->
  1863.  
  1864.     <!-- Make verdana 9 and 10 appear like they do on Windows -->
  1865.     <!-- Does not work with Google Chrome, but does in Firefox -->
  1866.     <match target="font">
  1867.         <test name="rendering_style" qual="any" >
  1868.             <string>Infinality</string>
  1869.             <string>Windows 7</string>
  1870.             <string>Windows XP</string>
  1871.         </test>
  1872.         <test name="family" qual="any" >
  1873.             <string>Verdana</string>
  1874.         </test>
  1875.         <test compare="less" name="weight" >
  1876.             <const>bold</const>
  1877.         </test>
  1878.         <test compare="more_eq" name="pixelsize" qual="any" >
  1879.             <double>8.5</double>
  1880.         </test>
  1881.         <test compare="less" name="pixelsize" qual="any" >
  1882.                 <double>10.5</double>
  1883.             </test>
  1884.         <edit name="matrix" mode="assign" >
  1885.             <times>
  1886.                 <name>matrix</name>
  1887.                 <matrix>
  1888.                     <double>1.1</double>
  1889.                     <double>0.0</double>
  1890.                     <double>0.0</double>
  1891.                     <double>1.0</double>
  1892.                 </matrix>
  1893.             </times>
  1894.         </edit>
  1895.     </match>
  1896.  
  1897.  
  1898.     <!-- Make verdana 12 appear like it does on Windows -->
  1899.     <!-- Does not work with Google Chrome, but does in Firefox -->
  1900.     <match target="font">
  1901.         <test name="rendering_style" qual="any" >
  1902.             <string>Infinality</string>
  1903.             <string>Windows 7</string>
  1904.             <string>Windows XP</string>
  1905.         </test>
  1906.         <test name="family" qual="any" >
  1907.             <string>Verdana</string>
  1908.         </test>
  1909.         <test compare="less" name="weight" >
  1910.             <const>bold</const>
  1911.         </test>
  1912.         <test compare="more_eq" name="pixelsize" qual="any" >
  1913.             <double>11.5</double>
  1914.         </test>
  1915.         <test compare="less" name="pixelsize" qual="any" >
  1916.                 <double>12.5</double>
  1917.             </test>
  1918.         <edit name="matrix" mode="assign" >
  1919.             <times>
  1920.                 <name>matrix</name>
  1921.                 <matrix>
  1922.                     <double>1.05</double>
  1923.                     <double>0.0</double>
  1924.                     <double>0.0</double>
  1925.                     <double>1.0</double>
  1926.                 </matrix>
  1927.             </times>
  1928.         </edit>
  1929.     </match>
  1930.  
  1931.     <!-- All fonts should use slight hinting below 8.5 px -->
  1932.     <match target="font" >
  1933.         <test name="rendering_style" qual="any" >
  1934.             <string>Infinality</string>
  1935.             <string>Windows 7</string>
  1936.             <string>Windows XP</string>
  1937.         </test>
  1938.         <test compare="less" name="pixelsize" qual="any" >
  1939.             <double>8.5</double>
  1940.         </test>
  1941.         <edit mode="assign" name="hintstyle" >
  1942.             <const>hintslight</const>
  1943.         </edit>
  1944.         <edit mode="assign" name="autohint" >
  1945.             <bool>true</bool>
  1946.         </edit>
  1947.     </match>
  1948.  
  1949.     <!-- All fonts should use full hinting above 22 px
  1950.     <match target="font" >
  1951.         <test compare="more_eq" name="pixelsize" qual="any" >
  1952.             <double>22.5</double>
  1953.         </test>
  1954.         <edit mode="assign" name="hintstyle" >
  1955.             <const>hintfull</const>
  1956.         </edit>
  1957.         <edit mode="assign" name="autohint" >
  1958.             <bool>true</bool>
  1959.         </edit>
  1960.     </match> -->
  1961.  
  1962.  
  1963.     <!-- These full hinted fonts should use slight hinting below 12 px -->
  1964.     <match target="font" >
  1965.         <test name="family" qual="any" >
  1966.             <string>Arial Black</string>
  1967.         </test>
  1968.         <test compare="less" name="pixelsize" qual="any" >
  1969.             <double>11.5</double>
  1970.         </test>
  1971.         <edit mode="assign" name="hintstyle" >
  1972.             <const>hintslight</const>
  1973.         </edit>
  1974.         <edit mode="assign" name="autohint" >
  1975.             <bool>true</bool>
  1976.         </edit>
  1977.     </match>
  1978.  
  1979.     <!-- These full hinted fonts should use slight hinting below 14 px -->
  1980.     <match target="font" >
  1981.         <test name="family" qual="any" >
  1982.             <string>Aquabase</string>
  1983.             <string>Browallia New</string>
  1984.             <string>BrowalliaUPC</string>
  1985.         </test>
  1986.         <test compare="less" name="pixelsize" qual="any" >
  1987.             <double>13.5</double>
  1988.         </test>
  1989.         <edit mode="assign" name="hintstyle" >
  1990.             <const>hintslight</const>
  1991.         </edit>
  1992.         <edit mode="assign" name="autohint" >
  1993.             <bool>true</bool>
  1994.         </edit>
  1995.     </match>
  1996.    
  1997.     <!-- These full hinted fonts should use slight hinting at 17 px -->
  1998.     <match target="font" >
  1999.         <test name="family" qual="any" >
  2000.             <string>Gill Sans</string>
  2001.         </test>
  2002.         <test compare="less" name="pixelsize" qual="any" >
  2003.             <double>17.5</double>
  2004.         </test>
  2005.         <test compare="more_eq" name="pixelsize" qual="any" >
  2006.             <double>16.5</double>
  2007.         </test>    
  2008.         <edit mode="assign" name="autohint" >
  2009.             <bool>true</bool>
  2010.         </edit>    
  2011.         <edit mode="assign" name="hintstyle" >
  2012.             <const>hintslight</const>
  2013.         </edit>
  2014.     </match>
  2015.  
  2016.     <!-- Gentium has issues with the infinality autohint patch -->
  2017.     <match target="font" >
  2018.         <test name="font_type" qual="any" >
  2019.             <string>Gentium</string>
  2020.         </test>
  2021.         <test compare="less" name="pixelsize" qual="any" >
  2022.             <double>10.5</double>
  2023.         </test>
  2024.         <edit mode="assign" name="antialias" >
  2025.             <bool>true</bool>
  2026.         </edit>
  2027.         <edit mode="assign" name="hintstyle" >
  2028.             <const>hintnone</const>
  2029.         </edit>
  2030.     </match>
  2031.  
  2032.     <!-- Italic Courier looks bad with BCI hinting -->
  2033.     <match target="font" >
  2034.         <test name="family" qual="any" >
  2035.             <string>Courier</string>
  2036.         </test>
  2037.         <!-- match requests for non-roman face -->
  2038.         <test name="slant" compare="not_eq" >
  2039.             <const>roman</const>
  2040.         </test>
  2041.         <edit mode="assign" name="hintstyle" >
  2042.             <const>hintslight</const>
  2043.         </edit>
  2044.         <edit mode="assign" name="autohint" >
  2045.             <bool>true</bool>
  2046.         </edit>
  2047.     </match>
  2048.  
  2049.  
  2050.     <!--  Rescan configuration every 10 seconds when FcFontSetList is called -->
  2051.     <rescan>
  2052.         <int>10</int>
  2053.     </rescan>
  2054.  
  2055.  
  2056.     <!-- Global Override for Debugging -->
  2057. <!--
  2058.     <match target="font" >
  2059.         <edit mode="assign" name="rgba" >
  2060.             <const>rgb</const>
  2061.         </edit>
  2062.         <edit mode="assign" name="hinting" >
  2063.             <bool>true</bool>
  2064.         </edit>
  2065.         <edit mode="assign" name="autohint" >
  2066.             <bool>false</bool>
  2067.         </edit>
  2068.         <edit mode="assign" name="antialias" >
  2069.             <bool>true</bool>
  2070.         </edit>
  2071.         <edit mode="assign" name="hintstyle" >
  2072.             <const>hintfull</const>
  2073.         </edit>
  2074.         <edit name="lcdfilter" mode="assign">
  2075.             <const>lcddefault</const>
  2076.         </edit>
  2077.     </match>
  2078.     -->
  2079.  
  2080. </fontconfig>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement