Topic: HOW-TO: install ttf fonts in #! for newbies!

I just figured out how to add ttf fonts to #! and i thought other newbies like me would be interested in learning how to add extra fonts to #!, so i decided to share!
well without much ado,
1. Go to your home directory, either through file manager or just open a terminal.
2. Create a folder called "fonts".
if you are on a terminal, type:

mkdir fonts

3. Download the fonts that you need and move them to your newly created "fonts" folder.
4. Go to your new folder "fonts", and open up a terminal there or if your first terminal is still open, type:

cd fonts

5. Now , you have to move your .ttf fonts in your "fonts" folder to the actual folder where the fonts are located. In your terminal, type:

mv *.ttf /usr/share/fonts/truetype

(note: 1. this method is for truetype fonts.
           2. * denotes the name of your font, for example, Arial.ttf
)
6. Now, you have to go to /usr/share/fonts/truetype. In your terminal, type:

cd /usr/share/fonts/truetype

7. Now you need to create fonts.scale and fonts.dir. Type the following commands in your terminal:

mkfontscale
mkfontdir
fc-cache

8. Now, you have to make sure your crunchbang system finds the file. So, in your terminal type:

xset fp rehash

9. Now to make sure you have your font installed, open Abiword Word Processor and check to see if your font is done.

Tips:
1. Use "sudo" if command is not working.
2. Make sure you are in the correct directories while typing out commands.
3. Use the same terminal, you opened up in the beginning and follow commands properly.
4. When you download fonts in a archived package, make sure you transfer all the files ending with .ttf before doing anything.
Sources:
From where i learnt how to install .ttf fonts-->
1. http://vietunicode.sourceforge.net/howto/fontlinux.html
2. http://www.bigwebmaster.com/General/How … fonts.html

If there are any mistakes or if there is a better way please post and tell me!!
Hope this is useful and saves you a lot of time!
Have fun #!ing! smile
Note: Oh! i keep shortening my words like you to "u". Sorry about that!

Last edited by GhostSinger (2010-08-30 16:27:09)

Re: HOW-TO: install ttf fonts in #! for newbies!

You can just place your fonts in the .fonts folder (its hidden, and in your home directory, you need to have the file manager set to show hidden files to see it).

just call me...
~FSM~

Re: HOW-TO: install ttf fonts in #! for newbies!

you can leave out the red line:
$cd ..
$cd /usr/share/fonts/truetype
because the blue one does the whole job

the dollar sign in the beginning of each line might be irritating, as it must not be typed.
you are putting 'notes' about sudo everywhere. why not say a word about it in the beginning and not scattered all over the place.

lastly this forum provides a special 'code' tag. you can click on the symbol above the typing field (second from right). it produces two tags between which you can put your text.

It appears like this

cheers
luc

Re: HOW-TO: install ttf fonts in #! for newbies!

FiniteStateMachine wrote:

You can just place your fonts in the .fonts folder (its hidden, and in your home directory, you need to have the file manager set to show hidden files to see it).

  That is indeed simple! Can you tell me how to enable filemanager to view hidden files?

@luc, Thank you for your feedback!! smile edited accordingly!

Re: HOW-TO: install ttf fonts in #! for newbies!

GhostSinger wrote:
FiniteStateMachine wrote:

You can just place your fonts in the .fonts folder (its hidden, and in your home directory, you need to have the file manager set to show hidden files to see it).

  That is indeed simple! Can you tell me how to enable filemanager to view hidden files?

@luc, Thank you for your feedback!! smile edited accordingly!

View> Show Hidden Files or Control+h  in your file manager. If you just want downloaded fonts for your own personal use just move them to ~/.fonts  then  logout/login or run fc-cache -fv.

Last edited by kukibird1 (2010-08-30 16:49:20)

Re: HOW-TO: install ttf fonts in #! for newbies!

yea, i forgot to mention you still need to

 fc-cache -fv 

after you put fonts in that folder.

just call me...
~FSM~

Re: HOW-TO: install ttf fonts in #! for newbies!

Also for personal use icons/cursors  can go in ~/.icons  and  themes can go in ~/themes. These folders can be created if they are not already.

Re: HOW-TO: install ttf fonts in #! for newbies!

Thanks FSM and kukibird1 !! smile

Re: HOW-TO: install ttf fonts in #! for newbies!

Thank you! I just used it today to get the Japanese font of Mnemosyne right!

Re: HOW-TO: install ttf fonts in #! for newbies!

I usually just copy them into a folder (with thunar, I'm lazy smile ) in /usr/share/fonts (I prefer them available system wide),  then run

sudo fc-cache -f -v

simple smile

A Creative Commoner | My images at Google+ | A Waldorf Review

Silence is sometimes the best answer - Dalai Lama.

11

Re: HOW-TO: install ttf fonts in #! for newbies!

what i do when installing new fonts is create a new dir in /usr/share/fonts and i put everything in /usr/share/fonts/ali so i know i don't mess up anything that way i know that those files are safe to remove without side effects