PDA

View Full Version : [all variants] Installing a font



josephmo
December 1st, 2008, 08:28 PM
I have a TrueType font that I created on a Windows Vista system. I would like to add it to my ubuntu installation in order for OpenOffice apps to use it. How do I do it?

pennacook
December 1st, 2008, 08:48 PM
If there are other TrueType fonts that you want installed, it is as easy as copying the font files to the ~/.fonts/ directory.

After installing new fonts, you will have to log out and log in again to be able to see and use the new fonts. If you want to avoid this, you can regenerate the fonts cache by issuing the following command:

$sudo fc-cache -fv

josephmo
December 1st, 2008, 09:17 PM
Thanks. Where is the ./fonts directory?

SuperSonic4
December 1st, 2008, 09:18 PM
It will be in your home directory.

It is not there by default though, you need to create it
This can/should be as user

1.
mkdir ~/.fonts

2a. (copy and paste them to the ~/.fonts folder you just created)

2b.
cp -r /media/320GB\media/Windows/Fonts ~/.fonts

Only do one step 2a or 2b of course, the bit in red will be the name of your drive as it appears in Places. I'm not 100% about the space being represented by \ but 2a will work. -r means recursive, try it if the fonts one won't copy without it.

you will then need to close and reopen your office

3.
fc-cache

josephmo
December 1st, 2008, 10:22 PM
It will be in your home directory.

It is not there by default though, you need to create it
This can/should be as user

1.
mkdir ~/.fonts

2a. (copy and paste them to the ~/.fonts folder you just created)

2b.
cp -r /media/320GB\media/Windows/Fonts ~/.fonts

Only do one step 2a or 2b of course, the bit in red will be the name of your drive as it appears in Places. I'm not 100% about the space being represented by \ but 2a will work. -r means recursive, try it if the fonts one won't copy without it.

you will then need to close and reopen your office

3.
fc-cache

I want to make sure I got this: let's say my home directory is /home/myusername, I would create a /home/muysername/.fonts directory (it does not exist now). This means though that these fonts are only available to me, and not to other users of the system.

forkandles
December 1st, 2008, 11:11 PM
Your font may be a one-off, but if your required font is a Microsoft TrueType font then the simplest way is to download and install msttcorefonts via Synaptic Package Manager.
Open Synaptic, click on "Quick Search", type in the box msttcorefonts

Mark for installation, Mark, Apply, Apply and wait for the fonts to be installed.

To make that particular font the default selection in Open Office.org Writer then:

Applications > Office > OOO Word Processor (OOO Writer) > Tools > Options >
Click on (+) next to OOO Writer > Basic Fonts (Western) > Choose font and size for new default.
Job done.

You may find this link useful if you want to make Ubuntu 8.10 more powerful.

http://www.dailygyan.com/2008/11/10-things-you-should-do-immediately.html