Adding Windows fonts to linux  
Home Help Search Login Register
 

Username  
Password

Pages: [1]
  Print  
Author Topic: Adding Windows fonts to linux  (Read 572 times)
RoboGeek
Global Moderator
Newbie
*****

Karma: +1/-0
Offline Offline

Posts: 27



View Profile WWW
« on: June 23, 2008, 08:51:33 AM »

Well.. I am doing my new TV ad and a shirt logo and the font I wanted was on my old windows box.
So here's how to add True Type fonts to your linux box

First.. copy the TTF files you want to add - I used a flash drive, but you can use any method you want.

Go to /usr/share/fonts/truetype

Create a folder there for your fonts - you can name it anything you want. Copy all your .ttf files in there.

Open a terminal window and navigate to your new folder.

You need to change the permissions. I did it from the file manager, then selecting all my new fonts, rt clicking and changing permissions that way. Or if your a command line person do this:

chown root.root *.ttf

chmod 644 *.ttf


Now from the terminal run mkfontdir

Now move back to the parent directory and find a file named fonts.cache-1. Open it with your favorite editor and at the bottom of the list add your new directory to the list

"your_folder_name" 0 ".dir"

Now you want linux to index your new fonts. So run this command from your font directory:   fc-cache

Thats it!!  Firefox, OpenOffice and other programs can now use any font you added
« Last Edit: June 23, 2008, 08:56:12 AM by RoboGeek » Logged

What is the problem with people who ask sarcastic rhetorical questions?
Pages: [1]
  Print  
 
Jump to:  




MySQL |  PHP |  Valid XHTML |  Valid CSS