LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-30-2002, 01:47 PM   #1
Bogdan
Member
 
Registered: May 2001
Location: Belarus
Distribution: Debian
Posts: 120

Rep: Reputation: 15
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....
 
Old 03-30-2002, 08:44 PM   #2
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 58
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.
 
Old 03-31-2002, 02:17 AM   #3
Bogdan
Member
 
Registered: May 2001
Location: Belarus
Distribution: Debian
Posts: 120

Original Poster
Rep: Reputation: 15
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?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
TTF Fonts huno Linux - Software 5 12-22-2006 10:38 PM
Installing ttf fonts usercsr Slackware 4 03-31-2004 07:32 PM
TTF Fonts XPediTioN Slackware 8 08-16-2003 07:38 PM
printing ttf fonts. carboncopy Slackware 1 08-12-2003 04:32 AM
Any way to convert ttf fonts to linux console fonts? Glockage Linux - Software 7 12-30-2002 06:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:52 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration