Advertisement
Guest User

brebs

a guest
Jul 29th, 2010
5,210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 11.31 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.     Sub-pixel hinting: http://www.infinality.net/blog/?p=67
  10.     Alternative:       https://wiki.ubuntu.com/Fonts
  11.     http://wiki.archlinux.org/index.php/XOrg_Font_Configuration
  12.     http://antigrain.com/research/font_rasterization/index.html
  13.     http://freddie.witherden.org/pages/font-rasterisation/
  14.     http://fontconfig.org/fontconfig-user.html
  15.     Free fonts: http://www.design-by-izo.com/2010/06/07/8-excellent-fonts-for-screen-and-print/
  16.     -->
  17.  
  18.  
  19.     <!-- Crimson Text: http://www.fontsquirrel.com/fonts/download/Crimson_text -->
  20.     <alias>
  21.         <family>Times</family>
  22.         <prefer>
  23.             <family>Times New Roman</family>
  24.             <family>Times New Roman PS</family>
  25.             <family>Times Ten</family>
  26.             <family>Crimson Text</family>
  27.             <family>Cambria</family>
  28.         </prefer>
  29.     </alias>
  30.  
  31.  
  32.  
  33.     <!-- http://bugs.gentoo.org/show_bug.cgi?id=130466
  34.     Times: http://en.wikipedia.org/wiki/Times_Roman
  35.     Crimson Text: http://www.fontsquirrel.com/fonts/download/Crimson_text
  36.     Linux Libertine from http://sourceforge.net/projects/linuxlibertine/
  37.     Is important to have good, easily-readable default fonts for:
  38.     serif, sans-serif, monospace, Courier -->
  39.     <alias>
  40.         <family>serif</family>
  41.         <prefer>
  42.             <family>Times New Roman</family>
  43.             <family>Crimson Text</family>
  44.             <family>Cambria</family>
  45.             <family>DejaVu Serif</family>
  46.             <family>Bitstream Vera Serif</family>
  47.             <family>Liberation Serif</family>
  48.             <family>Linux Libertine</family>
  49.         </prefer>
  50.     </alias>
  51.  
  52.     <!-- Corbel is ugly - don't use -->
  53.     <alias>
  54.         <family>sans-serif</family>
  55.         <prefer>
  56.             <family>DejaVu Sans</family>
  57.             <family>Bitstream Vera Sans</family>
  58.             <family>Verdana</family>
  59.             <family>Liberation Sans</family>
  60.         </prefer>
  61.     </alias>
  62.  
  63.     <!-- Examples: http://www.codestyle.org/css/font-family/sampler-Monospace.shtml
  64.     Used to show text email messages in Evolution, by default.
  65.     DejaVu Sans Mono is still the best. -->
  66.     <alias>
  67.         <family>monospace</family>
  68.         <prefer>
  69.             <family>DejaVu Sans Mono</family>
  70.             <family>Nimbus Mono L</family>
  71.             <family>Lucida Sans Typewriter</family>
  72.             <family>Consolas</family>
  73.             <family>Bitstream Vera Sans Mono</family>
  74.             <family>Liberation Mono</family>
  75.             <family>Andale Mono</family>
  76.         </prefer>
  77.     </alias>
  78.  
  79.     <!-- Common web font -->
  80.     <match target="pattern">
  81.         <test name="family">
  82.             <string>Helvetica</string>
  83.         </test>
  84.         <edit name="family" mode="prepend" binding="strong">
  85.             <string>Helvetica World</string>
  86.         </edit>
  87.     </match>
  88.  
  89.     <!-- Common web font -->
  90.     <match target="pattern">
  91.         <test name="family">
  92.             <string>Courier</string>
  93.         </test>
  94.         <edit name="family" mode="prepend" binding="strong">
  95.             <string>Courier New</string>
  96.         </edit>
  97.     </match>
  98.  
  99.  
  100.     <!-- Replace Arial bold with a better-looking font - looks terrible at e.g. http://digg.com
  101.     Calibri is quite good.
  102.     ChaletBookTT: http://www.identifont.com/
  103.     Also try "Arial Unicode MS" or "Arial MT": http://en.wikipedia.org/wiki/Arial_Unicode
  104.     Aeriel from http://aur.archlinux.org/packages.php?ID=21892
  105.     i.e. ftp://ftp.fi.debian.org/pub/gentoo/distfiles/ttf-arkpandora-2.04.tgz
  106.     Liberation Sans: https://fedorahosted.org/releases/l/i/liberation-fonts/
  107.     PT Sans: http://www.paratype.com/public/ and http://www.fontstock.com/public/PTSans.zip
  108.     CartoGothic Std: http://www.fontsquirrel.com/fonts/download/CartoGothic-Std
  109.     Cantarell: http://www.fontsquirrel.com/fonts/download/Cantarell
  110.     Comfortaa: http://www.fontsquirrel.com/fonts/download/Comfortaa -->
  111.     <match target="pattern">
  112.         <test name="family">
  113.             <string>Arial</string>
  114.         </test>
  115.         <test compare="less" name="pixelsize">
  116.             <double>12</double>
  117.         </test>
  118.         <edit name="family" mode="prepend" binding="strong">
  119.             <string>Liberation Sans</string>
  120.         </edit>
  121.     </match>
  122.  
  123.  
  124.     <!-- From:
  125.         http://repos.archlinux.org/wsvn/packages/fontconfig/trunk/
  126.         http://bugs.archlinux.org/task/15833
  127.         http://bugs.freedesktop.org/show_bug.cgi?id=18002
  128.         http://freedesktop.org/wiki/Software/poppler
  129.         http://bugs.gentoo.org/show_bug.cgi?id=303591
  130.  
  131.         Get urw-fonts from http://koji.fedoraproject.org/koji/packageinfo?packageID=905 -->
  132.     <match target="pattern">
  133.         <test name="family">
  134.             <string>ZapfDingbats</string>
  135.         </test>
  136.         <edit name="family" mode="prepend" binding="same">
  137.             <string>Dingbats</string>
  138.         </edit>
  139.     </match>
  140.  
  141.     <!-- Based on http://bugs.gentoo.org/show_bug.cgi?id=282151 -->
  142.     <match target="pattern">
  143.         <test name="family">
  144.             <string>NewCenturySchlbk</string>
  145.         </test>
  146.         <edit name="family" mode="append" binding="same">
  147.             <string>Century Schoolbook L</string>
  148.         </edit>
  149.     </match>
  150.  
  151.     <match target="pattern">
  152.         <test name="family">
  153.             <string>AvantGarde</string>
  154.         </test>
  155.         <edit name="family" mode="append" binding="same">
  156.             <string>URW Gothic L</string>
  157.         </edit>
  158.     </match>
  159.  
  160.  
  161.     <match target="pattern">
  162.         <test name="family">
  163.             <string>ZapfChancery</string>
  164.         </test>
  165.         <edit name="family" mode="append" binding="same">
  166.             <string>URW Chancery L</string>
  167.         </edit>
  168.     </match>
  169.  
  170.  
  171.     <!-- 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
  172.     http://bugs.gentoo.org/show_bug.cgi?id=303591
  173.     https://bugs.freedesktop.org/show_bug.cgi?id=27653 -->
  174.     <match target="pattern">
  175.         <test name="family">
  176.             <string>symbol</string>
  177.         </test>
  178.         <edit name="family" mode="append" binding="strong">
  179.             <string>OpenSymbol</string>
  180.         </edit>
  181.         <edit name="family" mode="append" binding="strong">
  182.             <string>Standard Symbols L</string>
  183.         </edit>
  184.     </match>
  185.  
  186.  
  187.     <match target="pattern" name="family">
  188.         <test name="family" qual="any">
  189.             <string>fixed</string>
  190.         </test>
  191.         <edit name="family" mode="assign">
  192.             <string>monospace</string>
  193.         </edit>
  194.     </match>
  195.  
  196.  
  197. <!--
  198.   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/
  199.   OpenSUSE Bugzilla #52167 and bugzilla #246804:
  200.   Some fonts like "Luxi Mono", and "Nimbus Mono L"
  201.   which are intended to be monospace are not detected as
  202.   monospace because they have a few glyphs with wrong width.
  203.   That is of course a bug in the fonts but this is difficult
  204.   to fix and sometimes even impossible because of license reasons.
  205.   For most purposes it is useful to force these fonts to be
  206.   detected as monospace because it doesn't matter much if only
  207.   a handful of rarely used glyphs has the wrong width.
  208. -->
  209.     <match target="scan" >
  210.         <test compare="contains" name="family">
  211.             <string>Luxi Mono</string>
  212.             <string>Nimbus Mono L</string>
  213.         </test>
  214.         <edit mode="assign_replace" name="spacing">
  215.             <const>mono</const>
  216.         </edit>
  217.     </match>
  218.  
  219.  
  220. <!-- From http://svn.mandriva.com/cgi-bin/viewvc.cgi/packages/cooker/fontconfig/current/SOURCES/20-mdv-CJK-dualwidth.conf?view=markup
  221.     and http://svn.mandriva.com/cgi-bin/viewvc.cgi/packages/cooker/fontconfig/current/SOURCES/25-mdv-CJK-disable-hinting.conf?view=log
  222.     https://bugs.freedesktop.org/show_bug.cgi?id=17267
  223.     We can't hint CJK fonts well, so turn off hinting for CJK fonts.
  224.     Some Asian fonts misadvertise themselves as monospaced when
  225.     in fact they are dual-spaced (half and full). This makes
  226.     FreeType very confused as it forces all widths to match.
  227.     Undo this magic by disabling the width-forcing code.
  228. -->
  229.     <match target="font">
  230.         <test target="pattern" name="lang" compare="contains">
  231.             <string>zh-tw</string>
  232.             <string>zh-cn</string>
  233.             <string>ja</string>
  234.             <string>ko</string>
  235.         </test>
  236.         <edit name="spacing">
  237.             <const>proportional</const>
  238.         </edit>
  239.         <edit name="globaladvance">
  240.             <bool>false</bool>
  241.         </edit>
  242.         <edit name="hinting" mode="assign">
  243.             <bool>false</bool>
  244.         </edit>
  245.     </match>
  246.  
  247.  
  248.     <!-- Reject bitmap fonts in favour of Truetype, Postscript, etc. -->
  249.     <selectfont>
  250.         <rejectfont>
  251.             <pattern>
  252.                 <patelt name="scalable">
  253.                     <bool>false</bool>
  254.                 </patelt>
  255.             </pattern>
  256.         </rejectfont>
  257.     </selectfont>
  258.  
  259.  
  260.     <!-- http://svn.mandriva.com/cgi-bin/viewvc.cgi/packages/cooker/fontconfig/current/SOURCES/26-mdv-no-embeddedbitmap.conf?view=markup
  261.     Japanese fonts: http://bbs.archlinux.org/viewtopic.php?id=91276
  262.     Calibri font: http://forums.fedoraforum.org/showthread.php?p=1045807#post1045807
  263.     Don't use bitmaps at all, because they look horrible. Enable them for individiual fonts and sizes, if needed. -->
  264.     <match target="font">
  265.         <edit name="embeddedbitmap" mode="assign">
  266.             <bool>false</bool>
  267.         </edit>
  268.     </match>
  269.  
  270.     <!-- This is only here in case it is useful sometime.
  271.     Example at http://www.codestyle.org/css/font-family/sampler-Monospace.shtml
  272.     Others from 25-no-bitmap-fedora.conf at:
  273.     http://distro.ibiblio.org/pub/linux/distributions/texstar/pclinuxos/apt/pclinuxos/2010/SRPMS.main/fontconfig-2.8.0-1pclos2010.src.rpm
  274.     <match target="font">
  275.         <test name="family" qual="any">
  276.             <string>Cambria</string>
  277.             <string>Monaco</string>
  278.             <string>Kochi Mincho</string>
  279.             <string>Kochi Gothic</string>
  280.             <string>Sazanami Mincho</string>
  281.             <string>Sazanami Gothic</string>
  282.         </test>
  283.         <edit name="embeddedbitmap" mode="assign">
  284.             <bool>false</bool>
  285.         </edit>
  286.     </match> -->
  287.  
  288.  
  289.     <!-- Ubuntu options:  lcdnone, lcddefault, lcdlight, lcdlegacy -->
  290.     <!-- hintnone, hintslight, hintmedium, hintfull -->
  291.     <!-- autohint off: https://bugs.launchpad.net/ubuntu/+source/fontconfig/+bug/14310/comments/14 -->
  292.     <!-- Blurry fonts:  Try rgb, bgr, vrgb, vbgr for "rgba" -->
  293.     <!-- Blurry:  http://forums.gentoo.org/viewtopic-p-5060979.html#5060979 -->
  294.     <match target="font">
  295.         <edit name="rgba" mode="assign"><const>rgb</const></edit>
  296.         <edit name="autohint" mode="assign"><bool>false</bool></edit>
  297.         <edit name="antialias" mode="assign"><bool>true</bool></edit>
  298.         <edit name="hinting" mode="assign"><bool>true</bool></edit>
  299.         <edit name="hintstyle" mode="assign"><const>hintfull</const></edit>
  300.         <edit name="lcdfilter" mode="assign"><const>lcddefault</const></edit>
  301.     </match>
  302.  
  303.  
  304.     <!-- autohint.
  305.     Luxi Sans - http://market-ticker.denninger.net/
  306.     Some entries copied from http://www.infinality.net/blog/?p=10
  307.     Arial Black: http://www.wired.com/ -->
  308.     <match target="font">
  309.         <test name="family" qual="any">
  310.             <string>Arial Narrow</string>
  311.             <string>Bitstream Vera Serif</string>
  312.             <string>Courier10 BT</string>
  313.             <string>DejaVu LGC Sans Mono</string>
  314.             <string>DejaVu Sans Mono</string>
  315.             <string>DejaVu Serif</string>
  316.             <string>Delicious</string>
  317.             <string>District</string>
  318.             <string>Dutch801 Rm BT</string>
  319.             <string>Fontin Sans</string>
  320.             <string>FreeMono</string>
  321.             <string>FreeSans</string>
  322.             <string>FreeSerif</string>
  323.             <string>Gotham Book</string>
  324.             <string>Gotham Light</string>
  325.             <string>Gotham Medium</string>
  326.             <string>Helvetica</string>
  327.             <string>Helvetica LT Std</string>
  328.             <string>Lacuna</string>
  329.             <string>Lucida Console</string>
  330.             <string>Lucida Grande</string>
  331.             <string>Lucida Sans Unicode</string>
  332.             <string>Luxi Sans</string>
  333.             <string>Luxi Serif</string>
  334.             <string>MankSans</string>
  335.             <string>Metabook-Roman</string>
  336.             <string>MetaMedium-Roman</string>
  337.             <string>Miriam</string>
  338.             <string>Miso</string>
  339.             <string>MS Mincho</string>
  340.             <string>Myriad Pro</string>
  341.             <string>Myriad Web Pro</string>
  342.             <string>New Century Schoolbook</string>
  343.             <string>Nimbus Mono L</string>
  344.             <string>Nina</string>
  345.             <string>Ocean Sans Std</string>
  346.             <string>Swansea</string>
  347.             <string>Swiss721</string>
  348.             <string>Utopia</string>
  349.             <string>Vegur</string>
  350.             <string>Verdimka</string>
  351.         </test>
  352.         <edit name="autohint" mode="assign">
  353.             <bool>true</bool>
  354.         </edit>
  355.     </match>
  356.  
  357.  
  358. </fontconfig>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement