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.
[ HOME | TOPICS | INDEX | WEB RESOURCES | BOOKS | CONTRIBUTE | SEARCH | FEEDBACK | FAQ | FORUMS ]
Article Feedback - True Type fonts and XFree86
 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Newer Topic  |  Older Topic 
 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
 
 Re: XFree 4
Author: Kernelpanic 
Date:   16-11-01 16:45

//////URGRNT////

I wanna simsun.ttf in mozilla,so

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

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

!!! then ERROR: unkown font foudry code ZYEC !!!

cd /usr/X11R6/lib/X11/fonts/TrueType && mkfontdir

vi /etc/X11/XF86Config

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

---
and when I startx,
!!! ERROR:Fatal server error---
cound not open default font 'fixed'
!!!

but when I del line "FontPath "/usr/X11R6/lib/X11/fonts/TrueType/"
then OK!

whay shall I do!!
thanks:^(

Reply To This Message
 
 Re: XFree 4
Author: Dan Langille 
Date:   25-12-01 04:07

After I installed XFree86-4, I didn't have to do this step:

cd /usr/port/x11-fonts/ttmkfdir && make install

It was already there.

Reply To This Message
 
 Re: XFree 4
Author: Steve Biskofski 
Date:   13-07-02 17:05

im terribly new to freebsd, so this is probably not a difficult question. when i try to install ttmkfdir from the ports i get the following error:

newly created file is older than distributed files!
check your system clock

ive got this error before and really dont have a clue on how to solve it. if you have time please help me out.


thanks

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


 Forum List  |  Need a Login? Register Here 
 User Login
 User Name:
 Password:
 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

phorum.org