LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 11-23-2003, 08:58 AM   #1
Vincent
Member
 
Registered: Feb 2003
Location: Germany
Distribution: Slackware 9.1
Posts: 77

Rep: Reputation: 15
how to add some fonts?


Hi,
I have no clue, how the fonts system in linux works.
All I know is that applications like abiword or xchat have very little choice, and I would like to change this lack.

What have I to do to accomplish this?
 
Old 11-23-2003, 04:55 PM   #2
Obscure
Member
 
Registered: Apr 2003
Location: Milan
Distribution: Slackware 10 / FreeBSD 5.3
Posts: 175

Rep: Reputation: 32
You can add your fonts coping it to /usr/X11R6/lib/X11/fonts/ directories...and running (inside the dir) fc-cache -f command
You need to create a new font index using mkfontdir
Your fonts directory must be listed into /etc/X11/XF86config file (take a look) and must have read permission (444)

Last edited by Obscure; 11-24-2003 at 03:38 AM.
 
Old 12-02-2003, 07:17 AM   #3
Vincent
Member
 
Registered: Feb 2003
Location: Germany
Distribution: Slackware 9.1
Posts: 77

Original Poster
Rep: Reputation: 15
mkfontdir does not work... command not found
 
Old 12-02-2003, 10:50 AM   #4
dugan
Senior Member
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 4,615

Rep: Reputation: 1415Reputation: 1415Reputation: 1415Reputation: 1415Reputation: 1415Reputation: 1415Reputation: 1415Reputation: 1415Reputation: 1415Reputation: 1415
I'll expand on what Obscure said.

There are two font management systems you have to worry about. Fontconfig has one, and X has one. You deal with the two of them separately.

ADDING FONTS TO FONTCONFIG

Fontconfig supplies fonts to your gtk2 and qt programs. First, put your new Truetype fonts into a directory. Then look for a file called /etc/fonts/fonts.conf. Read it. Learn where it searches for fonts, and how to add a font search path to it, but don't edit it. Instead, make your changes to /etc/fonts/local.conf. Then run "fc-cache -f -v" as root. The new fonts should be accessible now.

ADDING FONTS TO X

To add fonts to X, you need ttmkfdir. Put all your new Truetype fonts into a directory. Then go to that directory and type:

ttmkfdir > fonts.scale
ttmkfdir > fonts.dir

If you look in /etc/XF86Config, it will show you which directories X looks in for fonts. It will also become obvious how to add a "fontpath" to it. Add your new font directory, which contains your fonts and your fonts.scale and your fonts.dir, to your XF86Config's fontpaths. Then restart X.

Last edited by dugan; 12-02-2003 at 10:51 AM.
 
Old 12-02-2003, 12:03 PM   #5
Nimoy
Member
 
Registered: Jun 2003
Location: Currently Denmark
Distribution: Ubuntu 11.10
Posts: 334

Rep: Reputation: 30
XFree86 Font De-uglification HOWTO

http://www.tldp.org/HOWTO/FDU/index.html
 
  


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
Need to add fonts to acroread koyi Linux - Software 0 08-01-2004 02:30 AM
How do I add fonts in X rwuest Linux - General 1 04-19-2004 11:39 AM
How to add fonts ? futurist Linux - Newbie 8 03-19-2004 08:20 AM
Add fonts JROCK1980 Linux - Software 2 02-21-2004 04:03 AM
How to add ttf fonts Bogdan Linux - Newbie 2 03-31-2002 02:17 AM


All times are GMT -5. The time now is 05:37 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration