# $XFree86: xc/lib/Xft/XftConfig.cpp,v 1.5 2000/12/14 23:03:53 keithp Exp $

match edit rgba=rgb;

#dir "/usr/X11R6/lib/X11/fonts/Type1"
dir "/usr/X11R6/lib/X11/fonts/TrueType"
#do I want this:
#dir "/usr/X11R6/lib/X11/fonts/75dpi"
#dir "/usr/X11R6/lib/X11/fonts/misc"

#
# alias 'fixed' for 'mono'
#
match any family == "fixed"		edit family =+ "mono";
match any family == "console"		edit family =+ "mono";

#
# Check users config file
#

includeif	"~/.xftconfig"

#
# Alias between XLFD families and font file family name, prefer local
# fonts
#
match any family == "charter"		edit family += "bitstream charter";
match any family == "bitstream charter" edit family =+ "charter";


########## NEW STUFF:

#
# Use lucida console as default fixed type font
# and set the spacing of "mono" to 100, this
# fixes broken fonts which are fixed, but do not
# set mono-spacing.
match
      any family == "mono" 
edit
      family += "lucida console";
      spacing = 100;


#
# Alias between XLFD families and font file family name, prefer local fonts
#
match any family == "Charter"           edit family += "Bitstream Charter";
match any family == "Bitstream Charter" edit family =+ "Charter";

match any family == "Lucidux Serif"     edit family += "LuciduxSerif";
match any family == "LuciduxSerif"      edit family =+ "Lucidux Serif";

match any family == "Lucidux Sans"      edit family += "LuciduxSans";
match any family == "LuciduxSans"       edit family =+ "Lucidux Sans";

match any family == "Lucidux Mono"      edit family += "LuciduxMono";
match any family == "LuciduxMono"       edit family =+ "Lucidux Mono";


#
# TrueType font aliases
#
match any family == "Comic Sans"        edit family += "Comic Sans MS";
match any family == "Comic Sans MS"     edit family =+ "Comic Sans";
match any family == "Trebuchet"         edit family += "Trebuchet MS";
match any family == "Trebuchet MS"      edit family =+ "Trebuchet";
match any family == "Monotype"          edit family =+ "Monotype.com";
match any family == "Andale Mono"       edit family += "Monotype.com";
match any family == "Monotype.com"      edit family =+ "Andale Mono";

match edit antialias = true;
match edit rgba=rgb;

# Danny:
# set the AA for different fonts
#
# most TT fonts do not need to be aliased between
# 8 and 15 points, although this might be a matter of taste.
match 
      any size > 8
      any size < 15
edit
      antialias = false;


# Danny: Courier looks terrible, and I
# cannot get most characters to fit nicely
# in their space. So I use courier 10 pitch
match 
      any family == "courier" 
edit
      family += "courier 10 pitch";


# these are symbols, and for some reason this needs to be added!:

match 
      any family == "webdings" 
edit
#      antialias = false;
      encoding += "glyphs-fontspecific";

match 
      any family == "symbol" 
edit
#      antialias = false;
      encoding += "glyphs-fontspecific";

match 
      any family == "Standard Symbols L" 
edit
#      antialias = false;
      encoding += "glyphs-fontspecific";

match 
      any family == "dingbats" 
edit
#      antialias = false;
      encoding += "glyphs-fontspecific";

match 
      any family == "Cursor" 
edit
#      antialias = false;
      encoding += "glyphs-fontspecific";


# maybe arial looks better like this?:
#match 
#      any family == "Arial" 
#      any size > 7
#      any size < 15
#edit
#      antialias = false;