Differences between revisions 7 and 8
Revision 7 as of 2009-07-16 05:24:11
Size: 5982
Editor: SamatJain
Comment: Add fonts.conf
Revision 8 as of 2012-10-20 07:14:08
Size: 1205
Editor: SamatJain
Comment: Remove fonts.conf file
Deletions are marked like this. Additions are marked like this.
Line 4: Line 4:

== fonts.conf ==

Part of my ~/.fonts.conf:

{{{#!highlight xml
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
 <!-- Disable hinting for certain fonts -->
 <!-- If hinting is disabled, then auto-hinting is disabled as well -->
 <match target="font">
  <test name="family" compare="eq">
   <string>Fontin</string>
   <!--<string>Droid Sans</string>-->
   <string>Droid Sans Serif</string>
   <string>Inconsolata</string>
   <!--<string>Fontin Sans</string>-->
  </test>
  <edit name="hintstyle" mode="assign"><const>hintnone</const></edit>
 </match>

 <!-- Disable antialiasing for certain fonts -->
 <match target="font">
  <test name="family" compare="eq">
   <string>Droid Sans</string>
   <string>TitilliumText14L</string>
  </test>
  <edit name="antialias" mode="assign"><bool>false</bool></edit>
 </match>

 <!-- Enable autohinting for all fonts -->
 <!--<match target="font">
  <edit name"autohint" mode="assign"><bool>true</bool></edit>
 </match>-->

 <!-- Turn on autohinting -->
 <match target="font">
  <test name="family" compare="eq">
   <string>Segoe</string>
   <string>Segoe Light</string>
   <string>Segoe Condensed</string>
   <!--<string>Segoe UI</string>-->
   <string>Corbel</string>
   <string>Tahoma</string>

   <string>Lucida Console</string>
   <string>Lucida Console Thin</string>
   <string>Lucida Sans</string>
   <string>Lucida Sans Typewriter</string>
   <string>Lucida Sans Unicode</string>

   <string>Delicious</string>
   <string>Monaco</string>

   <string>Gentium</string>

   <string>Envy Code R</string>
   <string>Pragmata TT</string>
   <string>monofur</string>
   <string>Crystal</string>

   <string>Fontin</string>
   <string>Fontin Sans</string>

   <string>Aller</string>
   <string>Aller Display</string>
   <string>Aller Light</string>
   <string>TitilliumText14L</string>
   <string>Vegur</string>

   <string>Droid Sans</string>
   <string>Droid Sans Mono</string>
   <string>Droid Sans Serif</string>

   <string>Luxi Sans</string>
   <!--<string>Luxi Mono</string>-->

   <!--<string>Aurulent Sans Mono</string>-->
   <string>Rursus Compact Mono</string>
   <string>Verily Serif Mono</string>
   <string>Jura</string>
   <string>Puritan 2.0</string>

   <string>Myriad Web Pro</string>
   <string>Frutiger LT Std</string>

   <string>Minion Web Pro</string>
  </test>
  <edit name="autohint" mode="assign"><bool>true</bool></edit>
  <edit name="minspace" mode="assign"><bool>true</bool></edit>
 </match>
 <match target="font">
  <test name="family">
   <string>Corbel</string>
   <string>Segoe</string>
   <string>Segoe UI</string>
   <string>Delicious</string>
  </test>
  <edit name="minspace" mode="assign"><bool>true</bool></edit>
 </match>
 <match target="font" >
  <test name="family" >
   <string>ProggyCleanTTSZ</string>
   <string>ProggySquareTTSZ</string>
   <string>Sounds of Apathy</string>
  </test>
  <edit mode="assign" name="antialias"><bool>false</bool></edit>
  <edit mode="assign" name="hinting"><bool>false</bool></edit>
 </match>

 <!-- Disable Autohinting for bold fonts -->
 <!--<match target="font">
  <test name="weight" compare="more"><const>medium</const></test>
  <edit name="autohint" mode="assign"><bool>false</bool></edit>
 </match>-->

 <!-- Exclude/Include a range of fonts for Anti Aliasing -->
 <!--
 <match target="font">
  <test name="size" compare="more"><double>9</double></test>
  <test name="size" compare="less"><double>14</double></test>
  <edit name="antialias" mode="assign"><bool>true</bool></edit>
 </match>
 -->

 <!-- Disable global advance -->
 <match target="font">
  <test name="family" compare="eq">
   <string>Monaco</string>
   <string>VerdanaMono</string>
  </test>
  <edit name="globaladvance" mode="assign"><bool>false</bool></edit>
 </match>

 <!-- Force monospace for certain monospaced fonts -->
 <match target="scan">
  <test name="family">
   <string>Luxi Mono</string>
   <string>Lucida Sans Typewriter</string>
   <string>Monaco</string>
  </test>
  <edit name="spacing" mode="assign"><const>mono</const></edit>
 </match>

 <match target="scan">
  <test name="family">
   <string>Luxi Mono</string>
   <string>Lucida Sans Typewriter</string>
   <string>Monaco</string>
  </test>
  <test name="style">
   <string>Bold Oblique</string>
  </test>
  <edit name="spacing" mode="assign"><const>mono</const></edit>
 </match>

 <!-- Set default fonts -->
 <alias>
  <family>sans-serif</family>
  <prefer><family>Segoe</family></prefer>
 </alias>
 <alias>
  <family>monospace</family>
  <prefer><family>Lucida Sans Typewriter</family></prefer>
 </alias>
</fontconfig>
}}}

Contents

  1. Wacom tablet

CheatSheet/X11 has some useful tidbits as well.

Wacom tablet

Starting with X.org 1.6, HAL can be used to configure input devices via FDI-schema XML files. I use the below FDI file (i.e.to be placed in /etc/hal/fdi/policy/wacom.fdi) to configure my Wacom Intuos3 digitizer tablet. The basic configuration is automatically detected by HAL, but the below enables the tablet to work better with my dual-monitor workstation. The Ubuntu Wacom page and the man page for the X11 wacom driver were the most useful resources in setting it up.

The below configuration maps the tablet area to one monitor at a time. Moving to the side of the tablet maps it to another monitor.

   1 <?xml version="1.0" encoding="UTF-8"?> <!-- -*- SGML -*- -->
   2 
   3 <deviceinfo version="0.2">
   4 
   5   <device>
   6     <match key="input.x11_driver" contains="wacom">
   7       <match key="input.x11_options.Type" contains="stylus">
   8         <merge key="input.x11_options.Twinview" type="string">horizontal</merge>
   9       </match>
  10     </match>
  11   </device>
  12 
  13 </deviceinfo>

SamatsWiki: DotFiles/X11 (last edited 2012-10-20 07:14:08 by SamatJain)