|
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
|
|
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
|
|
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
|
|
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
|
|