Gentoo Archives: gentoo-dev

From: Alan <alan@×××××.org>
To: gentoo-dev@g.o
Subject: Re: [gentoo-dev] TrueType Fonts in X
Date: Thu, 07 Nov 2002 19:26:33
Message-Id: 20021107192524.GA18438@ufies.org
In Reply to: [gentoo-dev] TrueType Fonts in X by Christopher Dudley
1 On Wed, Nov 06, 2002 at 12:22:58AM -0600, Christopher Dudley wrote:
2 > Greetings,
3 > I noticed recently that when Gentoo installs X, it also installs a big
4 > bunch of TTF fonts along with it. (From the Microsoft Free Font collection,
5 > nice. :).
6 >
7 > The problem is, while it installs the fonts, there does not seem to be a
8 > way to use them. When you run the xfontsel program, it only lists the BDF
9 > fonts or whatever it is that X comes with.
10 >
11 > Any ideas why this happens or how to fix it? It could be using the TTF
12 > fonts already, but does it somehow map them to other names?
13 >
14 > Anyway, this should be an interesting one. :)
15
16 You need to add them to your fontpath so that they are avilable to
17 applications in X. There are a couple of ways to do this:
18 - at the command prompt type
19 xset fp+ /path/to/the/truetype/fonts
20 xset fp rehash
21 This will only work for that session though.
22 - the better way to do this is to add them to your /etc/X11/XF86Config
23 file. Close to the top there'll be something like:
24
25 Section "Files"
26 FontPath "/usr/lib/X11/fonts/misc"
27 FontPath "/usr/lib/X11/fonts/75dpi"
28
29 Just add the directory with the fonts there.
30
31 Another thing to do is add the font path to the /etc/X11/XftConfig file.
32 Just add it at the top in the same format as the rest of the lines:
33
34 dir "/some/path/to/fonts"
35
36 Also, search for 'truetype' at forums.gentoo.org and you'll find lots of
37 help there as well!
38
39 alan
40
41 --
42 Alan "Arcterex" <alan@×××××.org> -=][=- http://arcterex.net
43 "I used to herd dairy cows. Now I herd lusers. Apart from the isolation, I
44 think I preferred the cows. They were better conversation, easier to milk, and
45 if they annoyed me enough, I could shoot them and eat them." -Rodger Donaldson
46
47 --
48 gentoo-dev@g.o mailing list