LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-20-2003, 05:39 AM   #1
nautilus_1987
Member
 
Registered: Aug 2002
Distribution: Slackware 8.1
Posts: 750

Rep: Reputation: 30
installing TTF fonts


Hello everybody!

Recently I have switched to Slack8.1, and as always I wanted to install
True Type Fonts. All TTF fonts I have copied from WindowsXP.
Then in Linux, I opened Kcontrol -> Fonts. And tried to install fonts, but
KControl said the fonts are corrupted ( but I know they aren't).
How can I install normal fonts? Maybe I can register them in the system manually?
thnx
 
Old 06-20-2003, 09:51 AM   #2
mrpdaemon
Member
 
Registered: Jun 2003
Distribution: Slackware 9.1
Posts: 41

Rep: Reputation: 15
become root. (su)

copy your fonts into a suitable directory. /usr/fonts is a good choice, make a subdirectory perhaps, (mkdir /usr/fonts/myfonts)

cd into the directory and run

/usr/bin/X11/mkfontdir
/usr/bin/X11/mkfontscale

at this point two new files, fonts.dir and fonts.scale should be created, by those commands.

All you need to do is add this new directory to you X config file. open /etc/X11/XF86Config with your favorite text editor, and locate the lines which are like

FontPath "/usr/share/font"

etc.

Add your own newly created font directory in there :

FontPath "/usr/share/font/myfonts"

and restart X. Have fun with your truetype fonts

PS: These instructions are for slack 9 (that i run) , and I do not have any idea if they would work in 8.1 , so sorry if they don't
 
Old 06-21-2003, 12:43 AM   #3
Rodrin
Member
 
Registered: May 2003
Location: Upstate NY, U.S.
Distribution: Slackware
Posts: 248

Rep: Reputation: 31
Actually they are right on the money for Slack 8.1 (except for accidentally leaving out the "share" in the directory path in the first part of the reply of course - the directory intended is /usr/share/fonts). It is not the whole picture with Slackware 9, but if you use the /usr/share/fonts directory or create a subdirectory of it (no matter what you name it), it will work for everything in Slack 9 as well because the rest will be done automatically, but for it to be done automatically you must restart your computer rather than just X.
 
Old 06-21-2003, 03:13 AM   #4
nautilus_1987
Member
 
Registered: Aug 2002
Distribution: Slackware 8.1
Posts: 750

Original Poster
Rep: Reputation: 30
interesting ... can't find mkfontscale ???
 
Old 06-21-2003, 07:38 AM   #5
ronin77
LQ Newbie
 
Registered: Jun 2003
Posts: 11

Rep: Reputation: 0
When installing fonts with kcontrol the filenames off the ttf fonts MUST be all lowercase.
Or it wont work.

Last edited by ronin77; 06-21-2003 at 07:39 AM.
 
Old 06-21-2003, 07:55 AM   #6
nautilus_1987
Member
 
Registered: Aug 2002
Distribution: Slackware 8.1
Posts: 750

Original Poster
Rep: Reputation: 30
can someone e-mail me mkfontscale file.
mailto: nautilus@ktv.lt
 
  


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
DISCUSSION: Installing TTF Fonts in GNOME UsualTuxpect LinuxAnswers Discussion 7 10-08-2005 10:46 PM
Installing ttf fonts usercsr Slackware 4 03-31-2004 07:32 PM
Installing Ttf Fonts In Suse (how-to) Edward78 Linux - General 3 07-24-2003 09:23 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 - Distributions > Slackware

All times are GMT -5. The time now is 04:39 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration