CrunchBang Linux Pastebin - collaborative debugging

pastebin is a collaborative debugging tool allowing you to share and modify code snippets while chatting on IRC, IM or a message board.

This site is developed to XHTML and CSS2 W3C standards. If you see this paragraph, your browser does not support those standards and you need to upgrade. Visit WaSP for a variety of options.

CrunchBang Linux Pastebin

Posted by ccampari on Thu 29th Apr 03:47 (modification of post by view diff)
View followups from ccampari | download | new post

  1. <?xml version="1.0"?>
  2. <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
  3.  
  4. <!-- This is a work in progress font config file from the CrunchBang Linux forums thread:
  5. http://crunchbanglinux.org/forums/post/66205/
  6. with help from the Arch font wiki:
  7. http://wiki.archlinux.org/index.php/Font_Configuration
  8. and tailored to user configuable settings only.
  9. This file won't do a whole lot until you log out and back in, some stuff might use it right away others maybe not.
  10. This config isn't really meant for drop in replacement yet unless you're messing around, there may be errors and even if not it could make your fonts pretty wonky looking so I sure hope you backed up your original font config :-), to revert, just swap your original file back in and log out or restart X
  11. This is a personal config matched to Crunchbang Statler Alpa 1 (based on Debian Squeeze) with user installed Ubuntu style patched Cairo2 and Xft libraries on an LCD monitor @1280 x 1024, so YMMV. These settings hopefully keep the Ubuntu style shaping intact, but sharper than the out of the box Ubuntu look. Small fonts *should* look clear and normal text should be crisp without being scratchy or bright and with as few as possible raggety tails or smudges. That's the goal of this config anyway. Currently there is still a bit of ringing, more noticable on certain applications.
  12. If you have an existing .Xresources or .Xdefaults user file with font handling in it, it may interact with this file so check both.
  13. -->
  14.  
  15. <!-- The larger this file is, the slower it may be to start up apps that read it, so for performance you may want to rip out most of the comments when you get familiar with what each thing does. -->
  16.  
  17.  
  18. <fontconfig>
  19.  
  20. <!-- Defaults for the local user .fonts.conf file -->
  21.  
  22. <!-- Anitalising
  23. The primary way to smooth out font jaggies, if nothing else you probably want this on -->
  24.  
  25. <match target="font">
  26.     <edit name="antialias" mode="assign">
  27.       <bool>true</bool>
  28.     </edit>
  29.   </match>
  30.  
  31.  
  32. <!--
  33. LCD subpixel rendering 
  34. You'll need to match the pixel order of your display if enabled or you'll get a rainbow looking mess.
  35. Even when set right can still cause slight color smearing on some displays, so disabled by default.
  36. Options: rbg, vrgb, bgr, none
  37. -->
  38.  
  39.     <match target="font">
  40.        <edit mode="assign" name="rgba"><const>none</const>
  41.        </edit>
  42.     </match>
  43.  
  44. <!-- DPI scaling
  45. Many people have good results with setting the DPI to 96, it doesn't do much on my monitor except make the fonts a bit larger and it seems to slow things down a bit so disabled by default, uncomment it if you want it -->
  46.  
  47.  
  48. <!--   
  49.      <match target="pattern">
  50.       <edit name="dpi" mode="assign"><double>96</double>
  51.      </edit>
  52.     </match>
  53.  
  54. -->
  55.  
  56.  
  57.  
  58. <!--
  59. LCD filtering
  60. Seems to be most effective with subpixel rendering on, but can add additional color artifacts when combined. Filtering seems to cause a slight performance hit on my PC, so disabled on most fonts by default.
  61. Options: lcddefault, lcdlegacy, lcdlight, lcdnone
  62. Colar biases I've noticed on my monitor but may not apply to you, so play around with these until you find something you like:
  63. lcddefault- dark green
  64. lcdlegacy- red and blue separation
  65. lcdlight- not sure what it *is*, but it's sparkly!
  66. -->
  67.  
  68.     <match target="font">
  69.         <edit mode="assign" name="lcdfilter"><const>lcdnone</const>
  70.         </edit>
  71.  
  72.  
  73. <!--
  74. Hinting, hintstyle & autohinter - Lines characters up to the pixel grid but could use a better definition probably.
  75. Hintstyle seems to effect the thickness around the characters.
  76. Autohinter does some kind of font discovery to figure it all out, but looks more buttery and squishier than I care for so it's off for reading fonts. But if you like that kind of thing go for it!
  77. Hintstyle Options: none, slight, medium, full
  78. -->
  79.        <edit name="hinting" mode="assign">
  80.           <bool>true</bool>
  81.        </edit>
  82.  
  83.         <edit mode="assign" name="hintstyle">
  84.             <const>hintfull</const>
  85.         </edit>
  86.  
  87.         <edit mode="assign" name="autohint"><bool>false</bool>
  88.        </edit>
  89.     </match>
  90.  
  91.  
  92.  
  93. <!-- Preferred fonts -->
  94. <!-- default families for missing fonts -->
  95.  
  96.     <alias>
  97.         <family>serif</family>
  98.         <prefer><family>DejaVu Serif</family></prefer>
  99.     </alias>
  100.     <alias>
  101.         <family>sans</family>
  102.         <prefer><family>DejaVu Sans</family></prefer>
  103.     </alias>
  104.     <alias>
  105.         <family>monospace</family>
  106.         <prefer><family>DejaVu mono</family></prefer>
  107.     </alias> 
  108.  
  109.  
  110. <!-- Some fonts just look a little funky on my display, so swapping them when possible, for some reason some fonts will swap and others won't so that might go beyond the local config, not sure yet -->
  111.  
  112.    <match target="pattern" name="family" >
  113.         <test name="family" qual="any" >
  114.             <string>Arial</string>
  115.         </test>
  116.         <edit mode="assign" name="family" >
  117.             <string>DejaVu Sans</string>
  118.         </edit>
  119.    </match>
  120.  
  121.    <match target="pattern" name="family" >
  122.         <test name="family" qual="any" >
  123.             <string>Tahoma</string>
  124.         </test>
  125.         <edit mode="assign" name="family" >
  126.             <string>DejaVu Sans</string>
  127.         </edit>
  128.    </match>
  129.  
  130.    <match target="pattern" name="family" >
  131.         <test name="family" qual="any" >
  132.             <string>Verdana</string>
  133.         </test>
  134.         <edit mode="assign" name="family" >
  135.             <string>DejaVu Sans</string>
  136.         </edit>
  137.    </match>
  138.  
  139.   <match target="pattern" name="family" >
  140.         <test name="family" qual="any" >
  141.             <string>Courier New</string>
  142.         </test>
  143.         <edit mode="assign" name="family" >
  144.             <string>Liberation mono</string>
  145.         </edit>
  146.     </match>
  147.  
  148.   <match target="pattern" name="family" >
  149.         <test name="family" qual="any" >
  150.             <string>Times New Roman</string>
  151.         </test>
  152.         <edit mode="assign" name="family" >
  153.             <string>DejaVu Serif</string>
  154.         </edit>
  155.     </match>
  156.  
  157.     <match target="pattern" name="family" >
  158.         <test name="family" qual="any" >
  159.             <string>Times</string>
  160.         </test>
  161.         <edit mode="assign" name="family" >
  162.             <string>DejaVu Serif</string>
  163.         </edit>
  164.     </match>
  165.  
  166.     <match target="pattern" name="family" >
  167.         <test name="family" qual="any" >
  168.             <string>Georgia</string>
  169.         </test>
  170.         <edit mode="assign" name="family" >
  171.             <string>DejaVu Serif</string>
  172.         </edit>
  173.     </match>
  174.  
  175. <!-- if you have the Liberation fonts installed, you may like that better for Georgia (or any of the above)-->
  176.  
  177. <!--
  178.        <match target="pattern" name="family" >
  179.         <test name="family" qual="any" >
  180.             <string>Georgia</string>
  181.         <edit mode="assign" name="family" >
  182.             <string>Liberation Serif</string>
  183.         </edit>
  184.        </match>
  185.  
  186. -->
  187.  
  188. <!-- these are specific customizations for my desktop setup, but I'll leave them in as an example on selective autohinting for effect fonts, but commented out -->
  189.  
  190.  <!-- <match target="pattern" name="family">
  191.         <test name="family" qual="any" >
  192.             <string>larabiefont</string>
  193.         </test>
  194.        <edit mode="assign" name="autohint">
  195.             <bool>true</bool>
  196.         </edit>
  197.      <edit mode="assign" name="hintstyle"><const>hintfull</const>
  198.      </edit>
  199.     </match>
  200.  
  201.   <match target="pattern" name="family" >
  202.         <test name="family" qual="any" >
  203.             <string>axaxax</string>
  204.         </test>
  205.      <edit mode="assign" name="hintstyle"><const>hintfull</const>
  206.       </edit>
  207.        <edit mode="assign" name="autohint">
  208.             <bool>true</bool>
  209.         </edit>
  210.   </match>
  211.  
  212.   -->
  213.  
  214. <!-- Anyways, have fun with this here font config, take it, change it and and make it your own! :-) -->
  215.  
  216. </fontconfig>

Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:

To highlight particular lines, prefix each line with @@


Remember me