On Saturday, 21. July 2001 22:06, Philipp Lehman wrote:
> Maybe I'm searching in the wrong places, but I can't find any docs
> describing format/syntax of the XftConfig files. Any pointers?

I can at least help you with a good Xftconfig file I got from a KDE 
developer. You need to make some modifications (fontpath!).

tim
#
# XftConfig
#
# Use with Type1 and TrueType fonts
#
includeif "~/.xftconfig" 
match edit rgba=rgb;
dir "/usr/XFree86/lib/X11/fonts/Type1"
dir "/usr/X11R6/lib/X11/fonts/truetype"


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

#
#Check users config file
#
includeif       "~/.xftconfig"

#
# Substitute TrueType fonts for Type1 versions
#
match any family == "Times"             edit family += "Times New Roman";
match any family == "Helvetica"         edit family += "Verdana";
match any family == "Courier"           edit family += "Courier New";

#
# Use TrueType fonts for defaults
#
match any family == "serif"             edit family += "Times New Roman";
match any family == "sans"              edit family += "Verdana";

#
# Use monotype.com (andale) face where possible
#
match 
        any family == "mono" 
        all slant == roman 
        all weight < bold
edit
        family += "monotype.com";
#
# otherwise, use courier
#
match any family == "mono"              edit family += "Courier New";

#
# 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";

#
# 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;

# 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 < 14
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 < 12
edit
        antialias = false;

Reply via email to