fonts.conf

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



hey keith et all,

just updated (debian unstable) to fontconfig 2.1.92 which aparently uses
fonts.conf instead of XftConfig for font configurations. there, it says:
        Note that the normal 'make install' procedure for fontconfig is to
        replace any existing fonts.conf file with the new version.  Place
        any local customizations in local.conf which this file references.

now previously, i was using:
# Gtk likes to ask for "Monospace"
match any family == "monospace"         edit family =+ "mono";
# Type1 fonts (gsfonts-x11)
dir "/usr/X11R6/lib/X11/fonts/Type1"
# Sans:   Nimbus_Sans_L* URW_Gothic_L*
# Serif:  Nimbus_Roman_No9_L* URW_Bookman_L* Century_Schoolbook_L* Bitstream_Charter* URW_Palladio_L*
# Mono:   Nimbus_Mono_L* Courier_10_Pitch*
# Script: URW_Chancery_L*
match any family == "sans"      edit family += "Nimbus Sans L";
match any family == "serif"     edit family += "Nimbus Roman No9 L";
#match any family == "mono"     edit family += "Nimbus Mono L";
#match any family == "sans"     edit family += "URW Gothic L";
#match any family == "serif"    edit family += "URW Bookman L";
match any family == "mono"      edit family += "Courier 10 Pitch";

which got me decently looking fonts.
how do i achive that same effect (i.e. selecting defaults for sans,
serif and monospace) with fonts.conf?
i tried adding:
        <dir>/usr/X11R6/lib/X11/fonts/Type1</dir>
        <alias>
                <family>Nimbus Roman No9 L</family>
                <family>Georgia</family>
                <family>Luxi Serif</family>
                <family>FreeSerif</family>
                <default><family>serif</family></default>
        </alias>
        <alias>
                <family>Nimbus Sans L</family>
                <family>Arial</family>
                <family>Luxi Sans</family>
                <family>FreeSans</family>
                <default><family>sans-serif</family></default>
        </alias>
        <alias>
                <family>Courier 10 Pitch</family>
                <family>Courier New</family>
                <family>Luxi Mono</family>
                <family>FreeMono</family>
                <default><family>monospace</family></default>
        </alias>
to local.conf, and even to the top of fonts.conf, but that
doesn't seem to have any effect on the fonts being used for sans,
serif and monospace.

btw, you might want to add the aliases for FreeSerif, FreeSans
and FreeMono to your standard fonts.conf for people using the
freefont package.

---
ciaoTJ



[Index of Archives]     [Fedora Fonts]     [Fedora Users]     [Fedora Cloud]     [Kernel]     [Fedora Packaging]     [Fedora Desktop]     [PAM]     [Gimp Graphics Editor]     [Yosemite News]

  Powered by Linux