LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to add ttf fonts (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-add-ttf-fonts-17363/)

Bogdan 03-30-2002 01:47 PM

How to add ttf fonts
 
I have RH7.2 with KDE2.2.2 How could I add fonts from windows? When I have Mandrake only I have to do it to use mandrake control center....

Aussie 03-30-2002 08:44 PM

Eight steps to TT fonts. (su to root for steps 2 - 6)
1) Download and untar ttmkfdir.
2) Copy the ttmkfdir.linuxbin.glibc2 binary to /usr/local/bin/ttmkfdir, "cp ttmkfdir.linuxbin.glibc2 /usr/local/bin/ttmkfdir".
3) Do "mkdir /usr/X11R6/lib/X11/fonts/truetype" and copy your tt fonts to this dir.
4) "cd /usr/X11R6/lib/X11/fonts/truetype" and do "ttmkfdir -o fonts.scale && mkfontdir -e /var/X11R6/lib/fonts/encodings"
5) Edit your XFree86 configuration and add FontPath "/usr/X11R6/lib/X11/fonts/truetype/" to the existing list of font paths.
6) Make sure that you're loading the 'freetype' module,
Section "Module"
...
Load "freetype"
...
EndSection
7) Restart your X server.
8) Enjoy.

Bogdan 03-31-2002 02:17 AM

I did
ttmkfdir -o fonts.scale && mkfontdir -e /var/X11R6/lib/fonts/encodings
mkfontdir

Now I have fonts.scale, fonts.dir and, but where encodings.dir? Did I need need this file.

My XF86Config have

Section "Files"
FontPath "unix/:7100"
EndSection


How should I modify it?

Also

Section "Module"
Load "dbe" # Double-buffering
Load "GLcore" # OpenGL support
Load "dri" # Direct rendering infrastructure
Load "glx" # OpenGL X protocol interface
Load "extmod" # Misc. required extensions
Load "v4l" # Video4Linux
# Load "pex5" # PHIGS for X 3D environment (obsolete)
# Load "record" # X event recorder
# Load "xie" # X Image Extension (obsolete)
# You only need the following two modules if you do not use xfs.
#Load "freetype" # TrueType font handler
# Load "type1" # Adobe Type 1 font handler
EndSection


So, also one question: I does not use any 3D application, I have S3 virge DX PCI, maybe I don't need some modules like GLcore? However I have not so fast P200/128Mb will it safe to delete here something?


All times are GMT -5. The time now is 09:12 PM.