The FreeBSD Diary

The FreeBSD Diary (TM)

Providing practical examples since 1998

If you buy from Amazon USA, please support us by using this link.
Article Feedback - True Type fonts and XFree86
 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Previous Message  |  Next Message 
 XFree 4
Author: Benedikt Schmidt 
Date:   28-10-01 18:37

(written by Benedikt Schmidt but posted by Dan Langille)

XFree86 4 has native support for True Type fonts and therefore you don't need another font server like XfStt which is needed for older versions of X.

There are many places to get TrueType fonts and some of them are described in an older FreeBSD Diary article called "True Type fonts and XFree86".

Once you have all the fonts you want to install do the following as root:

mkdir /usr/X11R6/lib/X11/fonts/TrueType
cp *.ttf /usr/X11R6/lib/X11/fonts/TrueType

After having copied all fonts to the right directory you have to create a fonts.dir file containing information about the fonts.

cd /usr/port/x11-fonts/ttmkfdir && make install
cd /usr/X11R6/lib/X11/fonts/TrueType && ttmkfdir > fonts.scale
cd /usr/X11R6/lib/X11/fonts/TrueType && mkfontdir

After that you just have to tell X to use the new fonts by adding two lines to /etc/X11/XF86Config.

In Section "Module" you add:
Load "freetype"
And in Section "Files" you add:
FontPath "/usr/X11R6/lib/X11/fonts/TrueType/"

Restart X and start up netscape or xfontsel to see if the new fonts are available.

 Reply To This Message  |  Forum List  |  Flat View   Newer Topic  |  Older Topic 

 Topics Author  Date
 XFree 4   new
Benedikt Schmidt 28-10-01 18:37 
 Re: XFree 4   new
Kernelpanic 16-11-01 16:45 
 Re: XFree 4   new
Dan Langille 25-12-01 04:07 
 Re: XFree 4   new
Steve Biskofski 13-07-02 17:05 

 Forum List  |  Need a Login? Register Here 
 User Login
 User Name:
 Remember my login:
 Forgot Your Password?
Enter your email address or user name below and a new password will be sent to the email address associated with your profile.
How to get the most out of the forum