[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: RH 6 and TrueType Fonts
- From: "Jose M. Sanchez" <opjose ex-pressnet com>
- To: <redhat-list redhat com>
- Cc: <martin nitram demon co uk>
- Subject: Re: RH 6 and TrueType Fonts
- Date: Mon, 31 May 1999 13:56:14 -0400
This has been covered many times on the list.
Next time you might want to check at http://searchlinux.com
A search on True Type resulted in many answers to your questions... however
here's the short of it...
Grab your winblows fonts and dump them to a new directory in Linux.
/usr/X11R6/lib/X11/fonts/ttfonts is a good choice since most of the other
fonts are in /usr/X11R6/lib/X11/fonts.
Since the font names are mixed case you FIRST need to convert them to all
lowercase...
THIS IS IMPORTANT!
Go to the directory containing the fonts and type this in:
ls | while read f
do
[ -f "$f" ] && mv -f "$f" "`echo \"$f\" | tr A-Z a-z`"
done
You'll get the ">" prompt as you type each line, hit return at the end of
each line above...
NOTE the punctuation those "backquotes" are important...
The prompt will return to normal after you type done, and the script will
execute...
Voila, all the fonts are now lower case!
Now you "make" the font.dir file... while still in the ttfonts directory
type
ttmkfdir -o fonts.dir
And cat the file to be sure it was made...
cat fonts.dir
Now edit the /etc/X11/fs/config file
To be sure that the fonts are registered first, put the pathname to the new
fonts at the TOP of the list followed by a comma... So things should look
like this...
-----Cut--------
# where to look for fonts
# Some of these are commented out, i.e. the TrueType and T
# directories in /usr/share, because they aren't forced to
# installed alongside X.
#
catalogue = /usr/X11R6/lib/X11/fonts/ttfonts,
/usr/X11R6/lib/X11/fonts/misc:unscaled,
/usr/X11R6/lib/X11/fonts/75dpi:unscaled,
/usr/X11R6/lib/X11/fonts/100dpi:unscaled,
/usr/X11R6/lib/X11/fonts/misc,
/usr/X11R6/lib/X11/fonts/Type1,
/usr/X11R6/lib/X11/fonts/Speedo,
/usr/share/fonts/default/Type1,
/usr/X11R6/lib/X11/fonts/100dpi,
/usr/X11R6/lib/X11/fonts/75dpi,
/usr/X11R6/lib/X11/fonts/cyrillic,
/usr/share/fonts/ISO8859-2/misc,
/usr/share/fonts/ISO8859-2/100dpi,
/usr/share/fonts/ISO8859-2/75dpi,
/usr/share/fonts/ISO8859-2/Type1,
/usr/share/fonts/ISO8859-9/misc,
/usr/share/fonts/ISO8859-9/100dpi,
/usr/share/fonts/ISO8859-9/75dpi
------- CUT -----
Notice that the last line DOES NOT have a comma... also the above represents
MY configuration, so unless you know what you are doing only change the
first line...
Get out of X and restart the font server...
/etc/rc.d/init.d/xfs stop
/etc/rc.d/init.d/xfs status
/etc/rc.d/init.d/xfs start
(ok some of you are going to nitpick this to death and point out that I
could have just used restart...
well for some daemons there are problems with restart, NFS, etc, daemons do
not terminate this way...
so to be safe, do the above to ensure that the files are re-read)
Return to X, and your fonts await you...
-JMS
----- Original Message -----
From: Martin Bartlett <martin nitram demon co uk>
To: <redhat-list redhat com>
Sent: Monday, May 31, 1999 12:07 PM
Subject: RH 6 and TrueType Fonts
>
> RH6 in and working - but how the heck do you use the TrueType font support
> that is inherent in th Xserver.
>
> Martin
>
> ===========================================================
> _/ _/_/_/_/
> _/_/ _/_/ _/
> _/ _/_/ _/_/_/_/ Martin John Bartlett
> _/ _/ _/ _/ (martin nitram demon co uk)
> _/ _/_/_/_/
> _/
> _/ _/
> _/_/
> ===========================================================
>
>
> --
> PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
> http://www.redhat.com http://archive.redhat.com
> To unsubscribe: mail redhat-list-request redhat com with
> "unsubscribe" as the Subject.
>
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]