Advertisement
Guest User

brebs

a guest
Jul 15th, 2010
3,196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 24.63 KB | None | 0 0
  1. <?xml version="1.0"?>
  2. <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
  3. <fontconfig>
  4.  
  5.  
  6.     <!-- Info:
  7.     Latest version:   http://forums.gentoo.org/viewtopic-p-6183606.html#6183606
  8.     xeffects thread:  http://forums.gentoo.org/viewtopic-t-511382.html
  9.     Alternative:      https://wiki.ubuntu.com/Fonts
  10.     http://wiki.archlinux.org/index.php/XOrg_Font_Configuration
  11.     http://antigrain.com/research/font_rasterization/index.html
  12.     http://freddie.witherden.org/pages/font-rasterisation/
  13.     http://fontconfig.org/fontconfig-user.html
  14.     Free fonts: http://www.design-by-izo.com/2010/06/07/8-excellent-fonts-for-screen-and-print/
  15.     -->
  16.  
  17.  
  18.     <!-- Crimson Text: http://www.fontsquirrel.com/fonts/download/Crimson_text -->
  19.     <alias>
  20.         <family>Times</family>
  21.         <prefer>
  22.             <family>Times New Roman</family>
  23.             <family>Times New Roman PS</family>
  24.             <family>Times Ten</family>
  25.             <family>Crimson Text</family>
  26.             <family>Cambria</family>
  27.         </prefer>
  28.     </alias>
  29.  
  30.  
  31.     <!-- http://bugs.gentoo.org/show_bug.cgi?id=130466
  32.     Times: http://en.wikipedia.org/wiki/Times_Roman
  33.     Crimson Text: http://www.fontsquirrel.com/fonts/download/Crimson_text
  34.     Linux Libertine from http://sourceforge.net/projects/linuxlibertine/
  35.     Is important to have good, easily-readable default fonts for:
  36.     serif, sans-serif, monospace, Courier -->
  37.     <alias>
  38.         <family>serif</family>
  39.         <prefer>
  40.             <family>Times New Roman</family>
  41.             <family>Crimson Text</family>
  42.             <family>Cambria</family>
  43.             <family>DejaVu Serif</family>
  44.             <family>Bitstream Vera Serif</family>
  45.             <family>Liberation Serif</family>
  46.             <family>Linux Libertine</family>
  47.         </prefer>
  48.     </alias>
  49.  
  50.     <!-- Corbel is ugly - don't use -->
  51.     <alias>
  52.         <family>sans-serif</family>
  53.         <prefer>
  54.             <family>DejaVu Sans</family>
  55.             <family>Bitstream Vera Sans</family>
  56.             <family>Verdana</family>
  57.             <family>Liberation Sans</family>
  58.         </prefer>
  59.     </alias>
  60.  
  61.     <!-- Examples: http://www.codestyle.org/css/font-family/sampler-Monospace.shtml
  62.     Used to show text email messages in Evolution, by default.
  63.     DejaVu Sans Mono is still the best. -->
  64.     <alias>
  65.         <family>monospace</family>
  66.         <prefer>
  67.             <family>DejaVu Sans Mono</family>
  68.             <family>Nimbus Mono L</family>
  69.             <family>Lucida Sans Typewriter</family>
  70.             <family>Consolas</family>
  71.             <family>Bitstream Vera Sans Mono</family>
  72.             <family>Liberation Mono</family>
  73.             <family>Andale Mono</family>
  74.         </prefer>
  75.     </alias>
  76.  
  77.     <!-- Common web font -->
  78.     <match target="pattern">
  79.         <test name="family">
  80.             <string>Helvetica</string>
  81.         </test>
  82.         <edit name="family" mode="prepend" binding="strong">
  83.             <string>Helvetica World</string>
  84.         </edit>
  85.     </match>
  86.  
  87.  
  88.     <!-- Replace Arial bold with a better-looking font - looks terrible at e.g. http://digg.com
  89.     Calibri is quite good.
  90.     ChaletBookTT is awful, found from http://www.identifont.com/
  91.     Also try "Arial Unicode MS" or "Arial MT": http://en.wikipedia.org/wiki/Arial_Unicode
  92.     Arial MT looks vertically squashed.
  93.     Aeriel from http://aur.archlinux.org/packages.php?ID=21892
  94.     i.e. ftp://ftp.fi.debian.org/pub/gentoo/distfiles/ttf-arkpandora-2.04.tgz
  95.     Liberation fontset: https://fedorahosted.org/releases/l/i/liberation-fonts/
  96.     PT Sans: http://www.paratype.com/public/ and http://www.fontstock.com/public/PTSans.zip
  97.     CartoGothic Std: http://www.fontsquirrel.com/fonts/download/CartoGothic-Std
  98.     Cantarell: http://www.fontsquirrel.com/fonts/download/Cantarell
  99.     Comfortaa: http://www.fontsquirrel.com/fonts/download/Comfortaa -->
  100.     <match target="pattern">
  101.         <test name="family">
  102.             <string>Arial</string>
  103.         </test>
  104.         <test compare="less" name="pixelsize">
  105.             <double>12</double>
  106.         </test>
  107.         <edit name="family" mode="prepend" binding="strong">
  108.             <string>Arial MT</string>
  109.         </edit>
  110.     </match>
  111.  
  112.     <!-- Corbel and Candara are weird-looking, with dropped digits.
  113.     Grotesque MT is too wide.
  114.     PT Sans: http://www.paratype.com/public/ and http://www.fontstock.com/public/PTSans.zip -->
  115.     <match target="pattern">
  116.         <test name="family">
  117.             <string>Arial</string>
  118.         </test>
  119.         <test compare="less" name="pixelsize">
  120.             <double>18</double>
  121.         </test>
  122.         <test name="weight" compare="more">
  123.             <const>medium</const>
  124.         </test>
  125.         <edit name="family" mode="prepend" binding="strong">
  126.             <string>PT Sans</string>
  127.         </edit>
  128.     </match>
  129.  
  130.  
  131.     <!-- Prevent middle stroke of e from being raised too high -->
  132.     <match target="pattern">
  133.         <test name="family">
  134.             <string>Times New Roman PS</string>
  135.         </test>
  136.         <test compare="less" name="pixelsize">
  137.             <double>18</double>
  138.         </test>
  139.         <edit name="family" mode="prepend" binding="strong">
  140.             <string>Times New Roman</string>
  141.         </edit>
  142.     </match>
  143.  
  144.  
  145.     <!-- From:
  146.         http://repos.archlinux.org/wsvn/packages/fontconfig/trunk/
  147.         http://bugs.archlinux.org/task/15833
  148.         http://bugs.freedesktop.org/show_bug.cgi?id=18002
  149.         http://freedesktop.org/wiki/Software/poppler
  150.         http://bugs.gentoo.org/show_bug.cgi?id=303591
  151.  
  152.         Get urw-fonts from http://koji.fedoraproject.org/koji/packageinfo?packageID=905 -->
  153.     <match target="pattern">
  154.         <test name="family">
  155.             <string>ZapfDingbats</string>
  156.         </test>
  157.         <edit name="family" mode="prepend" binding="same">
  158.             <string>Dingbats</string>
  159.         </edit>
  160.     </match>
  161.  
  162.     <!-- Based on http://bugs.gentoo.org/show_bug.cgi?id=282151 -->
  163.     <match target="pattern">
  164.         <test name="family">
  165.             <string>NewCenturySchlbk</string>
  166.         </test>
  167.         <edit name="family" mode="append" binding="same">
  168.             <string>Century Schoolbook L</string>
  169.         </edit>
  170.     </match>
  171.  
  172.     <match target="pattern">
  173.         <test name="family">
  174.             <string>AvantGarde</string>
  175.         </test>
  176.         <edit name="family" mode="append" binding="same">
  177.             <string>URW Gothic L</string>
  178.         </edit>
  179.     </match>
  180.  
  181.  
  182.     <match target="pattern">
  183.         <test name="family">
  184.             <string>ZapfChancery</string>
  185.         </test>
  186.         <edit name="family" mode="append" binding="same">
  187.             <string>URW Chancery L</string>
  188.         </edit>
  189.     </match>
  190.  
  191.  
  192.     <!-- From suse-pre-user.conf in fontconfig-2.8.0-20.1.src.rpm from http://software.opensuse.org/search?baseproject=openSUSE%3AFactory&p=1&q=fontconfig
  193.     http://bugs.gentoo.org/show_bug.cgi?id=303591
  194.     https://bugs.freedesktop.org/show_bug.cgi?id=27653 -->
  195.     <match target="pattern">
  196.         <test name="family">
  197.             <string>symbol</string>
  198.         </test>
  199.         <edit name="family" mode="append" binding="strong">
  200.             <string>OpenSymbol</string>
  201.         </edit>
  202.         <edit name="family" mode="append" binding="strong">
  203.             <string>Standard Symbols L</string>
  204.         </edit>
  205.     </match>
  206.  
  207.  
  208.     <match target="pattern" name="family">
  209.         <test name="family" qual="any">
  210.             <string>fixed</string>
  211.         </test>
  212.         <edit name="family" mode="assign">
  213.             <string>monospace</string>
  214.         </edit>
  215.     </match>
  216.  
  217.  
  218. <!--
  219.   From suse-pre-user.conf in fontconfig-2.8.0-2.7.src.rpm from http://download.opensuse.org/factory/repo/src-oss/suse/src/
  220.   OpenSUSE Bugzilla #52167 and bugzilla #246804:
  221.   Some fonts like "Luxi Mono", and "Nimbus Mono L"
  222.   which are intended to be monospace are not detected as
  223.   monospace because they have a few glyphs with wrong width.
  224.   That is of course a bug in the fonts but this is difficult
  225.   to fix and sometimes even impossible because of license reasons.
  226.   For most purposes it is useful to force these fonts to be
  227.   detected as monospace because it doesn't matter much if only
  228.   a handful of rarely used glyphs has the wrong width.
  229. -->
  230.     <match target="scan" >
  231.         <test compare="contains" name="family">
  232.             <string>Luxi Mono</string>
  233.             <string>Nimbus Mono L</string>
  234.         </test>
  235.         <edit mode="assign_replace" name="spacing">
  236.             <const>mono</const>
  237.         </edit>
  238.     </match>
  239.  
  240.  
  241. <!-- From http://svn.mandriva.com/cgi-bin/viewvc.cgi/packages/cooker/fontconfig/current/SOURCES/20-mdv-CJK-dualwidth.conf?view=markup
  242.     and http://svn.mandriva.com/cgi-bin/viewvc.cgi/packages/cooker/fontconfig/current/SOURCES/25-mdv-CJK-disable-hinting.conf?view=log
  243.     https://bugs.freedesktop.org/show_bug.cgi?id=17267
  244.     We can't hint CJK fonts well, so turn off hinting for CJK fonts.
  245.     Some Asian fonts misadvertise themselves as monospaced when
  246.     in fact they are dual-spaced (half and full). This makes
  247.     FreeType very confused as it forces all widths to match.
  248.     Undo this magic by disabling the width-forcing code.
  249. -->
  250.     <match target="font">
  251.         <test target="pattern" name="lang" compare="contains">
  252.             <string>zh-tw</string>
  253.             <string>zh-cn</string>
  254.             <string>ja</string>
  255.             <string>ko</string>
  256.         </test>
  257.         <edit name="spacing">
  258.             <const>proportional</const>
  259.         </edit>
  260.         <edit name="globaladvance">
  261.             <bool>false</bool>
  262.         </edit>
  263.         <edit name="hinting" mode="assign">
  264.             <bool>false</bool>
  265.         </edit>
  266.     </match>
  267.  
  268.  
  269.     <!-- Reject bitmap fonts in favour of Truetype, Postscript, etc. -->
  270.     <selectfont>
  271.         <rejectfont>
  272.             <pattern>
  273.                 <patelt name="scalable">
  274.                     <bool>false</bool>
  275.                 </patelt>
  276.             </pattern>
  277.         </rejectfont>
  278.     </selectfont>
  279.  
  280.  
  281.     <!-- http://svn.mandriva.com/cgi-bin/viewvc.cgi/packages/cooker/fontconfig/current/SOURCES/26-mdv-no-embeddedbitmap.conf?view=markup
  282.     Japanese fonts: http://bbs.archlinux.org/viewtopic.php?id=91276
  283.     Calibri font: http://forums.fedoraforum.org/showthread.php?p=1045807#post1045807
  284.     Don't use bitmaps at all, because they look horrible. Enable them for individiual fonts and sizes, if needed. -->
  285.     <match target="font">
  286.         <edit name="embeddedbitmap" mode="assign">
  287.             <bool>false</bool>
  288.         </edit>
  289.     </match>
  290.  
  291.     <!-- This is only here in case it is useful sometime.
  292.     Example at http://www.codestyle.org/css/font-family/sampler-Monospace.shtml
  293.     Others from 25-no-bitmap-fedora.conf at:
  294.     http://distro.ibiblio.org/pub/linux/distributions/texstar/pclinuxos/apt/pclinuxos/2010/SRPMS.main/fontconfig-2.8.0-1pclos2010.src.rpm
  295.     <match target="font">
  296.         <test name="family" qual="any">
  297.             <string>Cambria</string>
  298.             <string>Monaco</string>
  299.             <string>Kochi Mincho</string>
  300.             <string>Kochi Gothic</string>
  301.             <string>Sazanami Mincho</string>
  302.             <string>Sazanami Gothic</string>
  303.         </test>
  304.         <edit name="embeddedbitmap" mode="assign">
  305.             <bool>false</bool>
  306.         </edit>
  307.     </match> -->
  308.  
  309.  
  310.     <!-- Ubuntu options:  lcdnone, lcddefault, lcdlight, lcdlegacy -->
  311.     <!-- hintnone, hintslight, hintmedium, hintfull -->
  312.     <!-- autohint off: https://bugs.launchpad.net/ubuntu/+source/fontconfig/+bug/14310/comments/14 -->
  313.     <!-- Blurry fonts:  Try rgb, bgr, vrgb, vbgr for "rgba" -->
  314.     <!-- Blurry:  http://forums.gentoo.org/viewtopic-p-5060979.html#5060979 -->
  315.     <match target="font">
  316.         <edit name="rgba" mode="assign"><const>rgb</const></edit>
  317.         <edit name="autohint" mode="assign"><bool>false</bool></edit>
  318.         <edit name="antialias" mode="assign"><bool>true</bool></edit>
  319.         <edit name="hinting" mode="assign"><bool>true</bool></edit>
  320.         <edit name="hintstyle" mode="assign"><const>hintmedium</const></edit>
  321.         <edit name="lcdfilter" mode="assign"><const>lcddefault</const></edit>
  322.     </match>
  323.  
  324.  
  325.     <!-- Microsoft fonts, from http://bbs.archlinux.org/viewtopic.php?pid=728521 -->
  326.     <match target="font">
  327.         <test compare="eq" name="foundry">
  328.             <string>microsoft</string>
  329.         </test>
  330.         <edit name="hintstyle" mode="assign">
  331.             <const>hintfull</const>
  332.         </edit>
  333.     </match>
  334.  
  335.  
  336.     <!-- Greyscale for small fonts - not used
  337.     <match target="font">
  338.         <test name="pixelsize" compare="less_eq"><double>7</double></test>
  339.         <edit name="rgba"><const>none</const></edit>
  340.     </match>
  341.     -->
  342.  
  343.  
  344.     <!-- lcdlegacy.
  345.     Georgia bold & small: http://www.timesonline.co.uk/tol/news/
  346.     DejaVu Sans bold & small: http://foo-projects.org/git/?p=lunar/moonbase.git;a=shortlog
  347.     Vollkorn:  http://0pointer.de/blog/projects/systemd.html -->
  348.     <match target="font">
  349.         <test name="family" qual="any">
  350.             <string>Courier</string>
  351.             <string>Courier New</string>
  352.             <string>DejaVu Sans</string>
  353.             <string>FreeSerif</string>
  354.             <string>Georgia</string>
  355.             <string>Helvetica</string>
  356.             <string>Nimbus Roman No9 L</string>
  357.             <string>Times New Roman</string>
  358.             <string>Vollkorn</string>
  359.         </test>
  360.         <edit name="lcdfilter" mode="assign">
  361.             <const>lcdlegacy</const>
  362.         </edit>
  363.     </match>
  364.  
  365.  
  366.     <!-- lcdlight.
  367.     Lucida Grande at http://www.infoworld.com/d/adventures-in-it/it-personality-types-8-profiles-in-geekdom-313 -->
  368.     <match target="font">
  369.         <test name="family" qual="any">
  370.             <string>Aller</string>
  371.             <string>Lucida Grande</string>
  372.             <string>Helvetica World</string>
  373.         </test>
  374.         <edit name="lcdfilter" mode="assign">
  375.             <const>lcdlight</const>
  376.         </edit>
  377.     </match>
  378.  
  379.  
  380.     <!-- hintslight.
  381.     Baskerville: "Leave A Comment" at http://www.jamiesinz.com/2008/08/huay-tung-tao-reservoir/
  382.     Consolas: http://www.fedoraforum.org/forum/showthread.php?t=186789&page=7
  383.     Corbel and Constantia look far too bold, if not hintslight.
  384.     Times New Roman: http://www.billiardworld.com/glossary.html
  385.     Luxi Sans bold needs hintslight at http://market-ticker.denninger.net/ -->
  386.     <match target="font">
  387.         <test name="family" qual="any">
  388.             <string>Albany Std</string>
  389.             <string>Arial MT</string>
  390.             <string>Arial MT Std</string>
  391.             <string>Arial Special G1</string>
  392.             <string>Arial Unicode MS</string>
  393.             <string>Baskerville</string>
  394.             <string>Cantarell</string>
  395.             <string>CartoGothic Std</string>
  396.             <string>Comic Sans MS</string>
  397.             <string>Consolas</string>
  398.             <string>Constantia</string>
  399.             <string>Corbel</string>
  400.             <string>Helvetica World</string>
  401.             <string>Inconsolata</string>
  402.             <string>Luxi Sans</string>
  403.             <string>Nimbus Sans L</string>
  404.             <string>PT Sans</string>
  405.             <string>Sansation</string>
  406.             <string>Times New Roman</string>
  407.             <string>URW Palladio L</string>
  408.             <string>Vollkorn</string>
  409.         </test>
  410.         <edit mode="assign" name="hintstyle">
  411.             <const>hintslight</const>
  412.         </edit>
  413.     </match>
  414.  
  415.  
  416.     <!-- hintfull
  417.     DejaVu Sans looks less fuzzy with hintfull, e.g. buttons at http://ultimateedition.info/ -->
  418.     <match target="font">
  419.         <test name="family" qual="any">
  420.             <string>Andale Mono</string>
  421.             <string>Arial</string>
  422.             <string>Arial Rounded MT Bold</string>
  423.             <string>Crimson Text</string>
  424.             <string>DejaVu Sans</string>
  425.             <string>Impact</string>
  426.             <string>Liberation Mono</string>
  427.             <string>Liberation Sans</string>
  428.             <string>Liberation Serif</string>
  429.             <string>Linux Libertine</string>
  430.             <string>Microsoft SansSerif</string>
  431.             <string>MS Mincho</string>
  432.             <string>Vegur</string>
  433.         </test>
  434.         <edit mode="assign" name="hintstyle">
  435.             <const>hintfull</const>
  436.         </edit>
  437.     </match>
  438.  
  439.  
  440.     <!-- hintnone.
  441.     Arial Black bold: "e" is filled in, if not hintnone - http://www.gamesradar.com/pc/bejeweled-2-deluxe/news/opinion-man-beats-bejeweled-2-after-three-years-was-it-worth-it/a-2010043014175972070/g-2005120714414257238769 -->
  442.     <match target="font">
  443.         <test name="family" qual="any">
  444.             <string>Arial Black</string>
  445.         </test>
  446.         <test compare="less" name="pixelsize">
  447.             <double>50</double>
  448.         </test>
  449.         <edit mode="assign" name="hintstyle">
  450.             <const>hintnone</const>
  451.         </edit>
  452.     </match>
  453.  
  454.  
  455.     <!-- autohint.
  456.     Luxi Sans - http://market-ticker.denninger.net/
  457.     Some entries copied from http://www.infinality.net/blog/?p=10
  458.     Arial Black: http://www.wired.com/ -->
  459.     <match target="font">
  460.         <test name="family" qual="any">
  461.             <string>Arial Narrow</string>
  462.             <string>Bitstream Vera Serif</string>
  463.             <string>Courier10 BT</string>
  464.             <string>DejaVu LGC Sans Mono</string>
  465.             <string>DejaVu Sans Mono</string>
  466.             <string>DejaVu Serif</string>
  467.             <string>Delicious</string>
  468.             <string>District</string>
  469.             <string>Dutch801 Rm BT</string>
  470.             <string>Fontin Sans</string>
  471.             <string>FreeMono</string>
  472.             <string>FreeSans</string>
  473.             <string>FreeSerif</string>
  474.             <string>Gotham Book</string>
  475.             <string>Gotham Light</string>
  476.             <string>Gotham Medium</string>
  477.             <string>Helvetica</string>
  478.             <string>Helvetica LT Std</string>
  479.             <string>Lacuna</string>
  480.             <string>Lucida Console</string>
  481.             <string>Lucida Grande</string>
  482.             <string>Lucida Sans Unicode</string>
  483.             <string>Luxi Sans</string>
  484.             <string>Luxi Serif</string>
  485.             <string>MankSans</string>
  486.             <string>Metabook-Roman</string>
  487.             <string>MetaMedium-Roman</string>
  488.             <string>Miriam</string>
  489.             <string>Miso</string>
  490.             <string>MS Mincho</string>
  491.             <string>Myriad Pro</string>
  492.             <string>Myriad Web Pro</string>
  493.             <string>Nimbus Mono L</string>
  494.             <string>Nina</string>
  495.             <string>Ocean Sans Std</string>
  496.             <string>Swansea</string>
  497.             <string>Swiss721</string>
  498.             <string>Utopia</string>
  499.             <string>Vegur</string>
  500.             <string>Verdimka</string>
  501.         </test>
  502.         <edit name="autohint" mode="assign">
  503.             <bool>true</bool>
  504.         </edit>
  505.     </match>
  506.  
  507.  
  508.     <!-- From http://forums.gentoo.org/viewtopic-t-511382-start-650.html
  509.     To create difference between small Candara and small Candara bold -->
  510.     <match target="font">
  511.         <test name="family" qual="any">
  512.             <string>Candara</string>
  513.         </test>
  514.         <test compare="less_eq" name="size">
  515.             <double>10</double>
  516.         </test>
  517.         <test name="weight" compare="more">
  518.             <const>medium</const>
  519.         </test>
  520.         <edit name="embolden" mode="assign">
  521.             <bool>true</bool>
  522.         </edit>
  523.     </match>
  524.  
  525.  
  526.     <!-- From http://bugs.gentoo.org/show_bug.cgi?id=233729 -->
  527.     <match target="font">
  528.         <test name="family" qual="any">
  529.             <string>Andale Mono</string>
  530.             <string>Arial</string>
  531.             <string>Comic Sans MS</string>
  532.             <string>Georgia</string>
  533.             <string>Trebuchet MS</string>
  534.             <string>Verdana</string>
  535.         </test>
  536.         <test compare="less" name="weight">
  537.             <const>medium</const>
  538.         </test>
  539.         <test compare="less_eq" name="pixelsize">
  540.             <double>7</double>
  541.         </test>
  542.         <edit mode="assign" name="antialias">
  543.             <bool>false</bool>
  544.         </edit>
  545.     </match>
  546.  
  547.  
  548.     <!-- Tweak Arial bold at http://www.linux-gamers.net/
  549.     Because the top of f is cut off with hintfull and hintmedium.
  550.     But don't change the smaller Arial Bold at http://www.telegraph.co.uk/
  551.     hintnone is better than hintslight for letter-spacing of headings at http://www.linuxmint.com/blog/ -->
  552.     <match target="font">
  553.         <test compare="eq" name="family">
  554.             <string>Arial</string>
  555.         </test>
  556.         <test compare="more" name="weight">
  557.             <const>medium</const>
  558.         </test>
  559.         <edit mode="assign" name="hintstyle">
  560.             <const>hintmedium</const>
  561.         </edit>
  562.         <edit name="lcdfilter" mode="assign">
  563.             <const>lcdlight</const>
  564.         </edit>
  565.         <test compare="more_eq" name="pixelsize">
  566.             <double>14</double>
  567.         </test>
  568.         <test compare="less_eq" name="pixelsize">
  569.             <double>18</double>
  570.         </test>
  571.         <edit mode="assign" name="hintstyle">
  572.             <const>hintnone</const>
  573.         </edit>
  574.     </match>
  575.  
  576.  
  577.     <!-- Tweak Nimbus Sans L at:
  578.     http://unity3d.com/company/news/unity2.6-press.html - the sub-headings -->
  579.     <match target="font">
  580.         <test compare="eq" name="family">
  581.             <string>Nimbus Sans L</string>
  582.         </test>
  583.         <test compare="more" name="weight">
  584.             <const>medium</const>
  585.         </test>
  586.         <test compare="less_eq" name="pixelsize">
  587.             <double>14</double>
  588.         </test>
  589.         <edit mode="assign" name="hintstyle">
  590.             <const>hintnone</const>
  591.         </edit>
  592.     </match>
  593.  
  594.  
  595. <!--
  596.     From dejavu-fonts in Fedora
  597.     http://koji.fedoraproject.org/koji/packageinfo?packageID=1581
  598.  
  599.     /etc/fonts/conf.d/20-unhint-small-dejavu-serif.conf
  600.  
  601.     Disable hinting manually at smaller sizes (< 8ppem)
  602.     This is a copy of the Bistream Vera fonts fonts rule, as DejaVu is
  603.     derived from Vera.
  604.  
  605.     The Bistream Vera fonts have GASP entries suggesting that hinting be
  606.     disabled below 8 ppem, but FreeType ignores those, preferring to use
  607.     the data found in the instructed hints. The initial Vera release
  608.     didn't include the right instructions in the 'prep' table.
  609.  
  610.     Also good rule for Liberation Sans.
  611. -->
  612.     <match target="font">
  613.         <test name="family" qual="any">
  614.             <string>DejaVu Serif</string>
  615.             <string>Liberation Sans</string>
  616.         </test>
  617.         <test compare="less" name="pixelsize">
  618.             <double>7.5</double>
  619.         </test>
  620.         <edit mode="assign" name="hinting">
  621.             <bool>false</bool>
  622.         </edit>
  623.     </match>
  624.  
  625.  
  626.     <!-- Prevent middle stroke of e from being raised too high -->
  627.     <match target="font">
  628.         <test name="family" qual="any">
  629.             <string>Times New Roman PS</string>
  630.         </test>
  631.         <test compare="less" name="pixelsize">
  632.             <double>18</double>
  633.         </test>
  634.         <edit mode="assign" name="hinting">
  635.             <bool>false</bool>
  636.         </edit>
  637.         <edit name="lcdfilter" mode="assign">
  638.             <const>lcdnone</const>
  639.         </edit>
  640.     </match>
  641.  
  642.  
  643.     <!-- Tweak Lucida Sans normal, for http://www.billiardworld.com/talestip.htm -->
  644.     <match target="font">
  645.         <test compare="eq" name="family">
  646.             <string>Lucida Sans</string>
  647.         </test>
  648.         <test compare="less_eq" name="weight">
  649.             <const>medium</const>
  650.         </test>
  651.         <edit mode="assign" name="hintstyle">
  652.             <const>hintslight</const>
  653.         </edit>
  654.         <edit name="lcdfilter" mode="assign">
  655.             <const>lcdlight</const>
  656.         </edit>
  657.     </match>
  658.  
  659.  
  660.     <!-- Tweak PT Sans bold at:
  661.     http://www.theaustralian.com.au/news/opinion/one-mans-burden-to-rebuild-shattered-trust/story-e6frg6zo-1225887289935 - the G in BANGKOK -->
  662.     <match target="font">
  663.         <test compare="eq" name="family">
  664.             <string>PT Sans</string>
  665.         </test>
  666.         <test compare="more_eq" name="weight">
  667.             <const>medium</const>
  668.         </test>
  669.         <test compare="more_eq" name="pixelsize">
  670.             <double>14</double>
  671.         </test>
  672.         <edit mode="assign" name="hintstyle">
  673.             <const>hintfull</const>
  674.         </edit>
  675.     </match>
  676.  
  677.  
  678.     <!-- Tweak Lucida Grande bold at:
  679.     http://market-ticker.denninger.net/ -->
  680.     <match target="font">
  681.         <test compare="eq" name="family">
  682.             <string>Lucida Grande</string>
  683.         </test>
  684.         <test compare="more_eq" name="weight">
  685.             <const>medium</const>
  686.         </test>
  687.         <edit mode="assign" name="autohint">
  688.             <bool>false</bool>
  689.         </edit>
  690.     </match>
  691.  
  692.  
  693. <!--
  694.     "y" looks bad (top-left stroke is chopped in its middle),
  695.     when small-ish and italic, with hintmedium and hintfull.
  696.     E.g. http://www.google.com/search?hl=en&as_q=wine+setthreadpriority+patch&as_epq=1.1.41
  697.     Also, space between letters is too narrow, with hintmedium and hintfull:
  698.     http://www.zerohedge.com/article/greece-willwill-not-issue-6-debt-week-even-evans-pritchard-summarizes-it-best-greece-drownin
  699. -->
  700.     <match target="font">
  701.         <test name="slant" compare="more_eq">
  702.             <int>80</int>
  703.         </test>
  704.         <test compare="less_eq" name="pixelsize">
  705.             <double>16</double>
  706.         </test>
  707.         <test name="hintstyle" compare="more_eq">
  708.             <const>hintmedium</const>
  709.         </test>
  710.         <edit mode="assign" name="hintstyle">
  711.             <const>hintslight</const>
  712.         </edit>
  713.     </match>
  714.  
  715.     <!-- Override above rule for Arial italic - "y" still gets chopped at
  716.     http://planet.gentoo.org/universe/ - must set autohint on to fix that. -->
  717.     <match target="font">
  718.         <test compare="eq" name="family">
  719.             <string>Arial</string>
  720.         </test>
  721.         <test name="slant" compare="more_eq">
  722.             <int>80</int>
  723.         </test>
  724.         <test compare="less_eq" name="pixelsize">
  725.             <double>16</double>
  726.         </test>
  727.         <edit mode="assign" name="hintstyle">
  728.             <const>hintmedium</const>
  729.         </edit>
  730.         <edit name="lcdfilter" mode="assign">
  731.             <const>lcddefault</const>
  732.         </edit>
  733.         <edit mode="assign" name="autohint">
  734.             <bool>true</bool>
  735.         </edit>
  736.     </match>
  737.  
  738.  
  739.     <!-- Bold small fonts can look smudged - hintfull is best, surprisingly.
  740.     This is the general rule, for small bold fonts.
  741.     E.g. http://www.infoworld.com/d/adventures-in-it/it-personality-types-8-profiles-in-geekdom-313
  742.     demibold at http://bugs.archlinux.org/index/proj1 and
  743.     http://foo-projects.org/git/?p=lunar/moonbase.git;a=shortlog -->
  744.     <match target="font">
  745.         <test compare="less_eq" name="pixelsize">
  746.             <double>12</double>
  747.         </test>
  748.         <test name="weight" compare="more">
  749.             <const>medium</const>
  750.         </test>
  751.         <edit mode="assign" name="hintstyle">
  752.             <const>hintfull</const>
  753.         </edit>
  754.         <edit name="lcdfilter" mode="assign">
  755.             <const>lcdlegacy</const>
  756.         </edit>
  757.         <test name="weight" compare="more">
  758.             <const>demibold</const>
  759.         </test>
  760.         <edit name="lcdfilter" mode="assign">
  761.             <const>lcdlight</const>
  762.         </edit>
  763.     </match>
  764.  
  765.  
  766.     <!-- Tweak Lucida Sans bold, after the general rule, for http://www.billiardworld.com/talestip.htm -->
  767.     <!-- Tweak URW Palladio L, after the general rule, for http://blog.gmane.org/gmane.linux.alsa.user/month=20070901 -->
  768.     <match target="font">
  769.         <test name="family" qual="any">
  770.             <string>Lucida Sans</string>
  771.             <string>URW Palladio L</string>
  772.         </test>
  773.         <test compare="more" name="weight">
  774.             <const>medium</const>
  775.         </test>
  776.         <edit mode="assign" name="hintstyle">
  777.             <const>hintslight</const>
  778.         </edit>
  779.         <edit name="lcdfilter" mode="assign">
  780.             <const>lcddefault</const>
  781.         </edit>
  782.     </match>
  783.  
  784.  
  785.     <!-- Arial bold & small needs hinting disabled.
  786.     Worst example: http://www.digg.com/ -->
  787.     <match target="font">
  788.         <test compare="eq" name="family">
  789.             <string>Arial</string>
  790.         </test>
  791.         <test compare="less_eq" name="pixelsize">
  792.             <double>10</double>
  793.         </test>
  794.         <test name="weight" compare="more">
  795.             <const>normal</const>
  796.         </test>
  797.         <edit name="antialias" mode="assign">
  798.             <bool>false</bool>
  799.         </edit>
  800.         <edit name="rgba">
  801.             <const>none</const>
  802.         </edit>
  803.         <edit name="lcdfilter" mode="assign">
  804.             <const>lcdnone</const>
  805.         </edit>
  806.         <edit mode="assign" name="hintstyle">
  807.             <const>hintslight</const>
  808.         </edit>
  809.     </match>
  810.  
  811.  
  812.     <!-- Disable autohint for very bold fonts, to stop them looking too bold. -->
  813.     <match target="font">
  814.         <test name="weight" compare="more">
  815.             <const>demibold</const>
  816.         </test>
  817.         <edit name="autohint" mode="assign">
  818.             <bool>false</bool>
  819.         </edit>
  820.     </match>
  821.  
  822.  
  823.     <!-- Tweak Luxi Sans bold & small
  824.     http://market-ticker.denninger.net/ - sidebar -->
  825.     <match target="font">
  826.         <test name="family" qual="any">
  827.             <string>Aller</string>
  828.             <string>Droid Sans</string>
  829.             <string>Fontin Sans</string>
  830.             <string>Luxi Sans</string>
  831.         </test>
  832.         <test compare="less_eq" name="pixelsize">
  833.             <double>12</double>
  834.         </test>
  835.         <test name="weight" compare="more">
  836.             <const>normal</const>
  837.         </test>
  838.         <edit mode="assign" name="hintstyle">
  839.             <const>hintslight</const>
  840.         </edit>
  841.     </match>
  842.  
  843.  
  844. </fontconfig>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement