Truetype Fonts: Installation for X(Internal)


o TeX o Ascii

Support knowledgebase (jkoeke_truetype)
Applies to

SuSE Linux: Versions since 7.0
XFree86: Versions since 4.0


SuSE-INTERN:
This article is outdated !
Please use this article:

http://thor.suse.de/sdb/de/html/chofman_ttf_71.html

Request:

You want to make use of TrueType fonts within the graphical user interface (GUI).

Procedure:

Since version 4 XFree supports TrueType fonts 'out of the box', a separate fontserver isn't necessary anymore.

Please note: You do the installation of TrueType fonts at your own risk and responsibility. The free SuSE Installation Support does not cover problems that might occur with the installation and use of TrueType fonts.

Most TrueType fonts are copyrighted. Please take care of this circumstance and do not use fonts without license. On the web you will find a lot of royalty free fonts.

Font installation:

If you are in a GUI please log out and change to the text console. Login as user 'root' and execute the command:

init 2

Change the current path with:

cd /usr/X11R6/lib/X11/fonts

If you do not already have a folder truetype please this folder now with:

mkdir truetype

Then go into this folder:

cd truetype

Now you can copy your TrueType fonts from floppy, cdrom or another folder into the current folder (do not forget to mount the drive where the fonts reside before you copy them):

cp <path_to_fonts>/*.ttf .

After copying you should change the users´ permissions on the fonts:

chmod 644 *

Now we suggest to list the files in the current directory:

ls -la *

If you find fonts with capital letters, spaces or umlauts in the name you must rename the fonts. These kinds of letters are not allowed for font names:

mv <old_font_name> <new_font_name>

After that three configuration files have to be created:

 
        ttmkfdir  >  fonts.dir
        ttmkfdir  >  fonts.scale
        mkfontdir  -e  ../encodings

Add path to X-configuration:

Please start SaX2 now:

sax2

and select

Use the current configuration

Then press the button Next two times and you are at the Keyboard settings: Select the Tab Fonts and see if the path below is already listed. If so, go to the last step, otherwise enter the path

/usr/X11R6/lib/X11/fonts/truetype

in the provided field and click on the Add button. Again click on Next two times, then on Save configuration. At least you are prompted with the question Do you want to exit SaX now and you click on Yes.

Last Step:

Now you have done everything necessary to use TrueType fonts within a GUI. Restart your GUI with

init 5


Keywords: X11, KDE, GNOME, GUI, TRUETYPE, FONTS

Categories: XFree86

SDB-jkoeke_truetype, Copyright SuSE Linux AG, Nürnberg, Germany
Author: jkoeke@suse.de - Version: 09. Mai 2001
SuSE Linux AG - Last generated: 24. Aug 2001 by jkoeke (sdb_gen 1.40.0)