Page 1 of 1

Font

Posted: Sat Aug 18, 2012 9:56 pm
by raspb
Here is a heads up on a font installation issue that I have not found a solution for and would be grateful for some help:

http://www.raspberrypi.org/phpBB3/viewt ... 66&t=14781

Re: Font

Posted: Sun Aug 19, 2012 11:51 pm
by M.M
Hi raspb,

reading the other topic I think you just want to move a .ttf file from your desktop to the folder /usr/local/share/fonts and you can't because you do not have the permission. Is this right so far?

If yes, you should open a terminal and make use of the "sudo" and "cp" command to copy the font to the folder with root privileges. The following is a syntax example, since I do not know your system. But you might be able adjust it to your needs:

Code: Select all

sudo cp /home/pi/Desktop/<fontname>.tty /usr/local/share/fonts/<fontname>.tty
Regards

Re: Font

Posted: Thu Aug 23, 2012 7:05 am
by raspb
M.M wrote:Hi raspb,

reading the other topic I think you just want to move a .ttf file from your desktop to the folder /usr/local/share/fonts and you can't because you do not have the permission. Is this right so far?

If yes, you should open a terminal and make use of the "sudo" and "cp" command to copy the font to the folder with root privileges. The following is a syntax example, since I do not know your system. But you might be able adjust it to your needs:

Code: Select all

sudo cp /home/pi/Desktop/<fontname>.tty /usr/local/share/fonts/<fontname>.tty
Regards
Thanks very much for your help. .tty did not work so I put .ttf and that worked :D . I tried 2 fonts. Both were visible in the fonts folder. Only 1 was visible on programs / apps with font choice option, could be due to font development not being the same?

Code: Select all

sudo cp /home/pi/Desktop/<fontname>.ttf /usr/local/share/fonts/<fontname>.ttf

Re: Font

Posted: Thu Aug 23, 2012 7:25 am
by M.M
Hi raspb,

oops, my bad! Of course "ttf" (True Type Font) and not "tty" was meant. Must have been either sleep deprived or preoccupied with some terminal problem :D

Concerning your problem: Maybe you need to reload the font cache to let the Raspi "know" there's a new font around. Could you try the command

Code: Select all

fc-cache -fv
By the way: There are packages for several fonts in the repo, so if you need more, you could take a look here: http://archive.raspbian.org/raspbian/pool/main/f/ and here: http://archive.raspbian.org/raspbian/pool/non-free/f/ to see if a font you want is already available as package (the packages al start with "font-"). Then you can just install it with "apt-get install" and don't need to download the stuff and move it to the correct folder.

Regards