How do I install my own custom .ttf font?

Asked by steven riddle

along the lines of:

Open Question #61070, asked 5 hours ago by THAYAGARAEN
tamil font download
where can I download tamil font and how to install it?
==============================
i created a hand-written font using www.YourFonts.com, they sent my .ttf file but when i try to copy it to /usr/share/fonts, i'm told "access denied" ... so how do i install this or any other font? also is there a way to add fonts to the evolution mail reader? one more question and i'll stop: how do i make my outgoing mail default to HTML? thanks.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu gucharmap Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#1
Revision history for this message
steven riddle (mercysmiles-gmail) said :
#2

wow! that was fast! thanks, marcobra. as t'is, right after i posed the
question, i was led to the next page which essentially said:

Is this a FAQ?

If so, you can point steven riddle to the relevant knowledge base
article for Ubuntu.
Which is the relevant FAQ?:

 No existing FAQs are relevant
 98: How to install fonts in Ubuntu 8.04

Select the FAQ that is the most relevant for this question. You can
modify the list of suggested FAQs by editing the search field and
clicking "Search".
Answer Message:
steven riddle suggests this article as an answer to your question:

Enter a message that will be added as the question answer. The title of
the FAQ will be automatically appended to this message.

    * Edit question
    * History
    * Unsubscribe
    * Link existing bug
    * Create bug report
    * This is a FAQ

so then i clicked on 98: How to install fonts in Ubuntu 8.04 and was
directed to this page:

https://answers.launchpad.net/ubuntu/+faq/98

before i could follow those instructions, i got your totally swift email
for which i am wholly grateful. if one answer doesn't work, i'll try the
other. but thanks again, you guys (and gals) are the greatest!

steve riddle.

ps: but while i got ya, do you know how i can change the defaults in
evolution, the mail reader, so i can use that new ttf font? and can i
change my outgoing messages to HTML vs. plain text? i know. i'm greedy,
but it would make my day to know. thx, sR.

On Sun, 2009-02-15 at 17:18 +0000, marcobra wrote:

> Your question #61098 on gucharmap in ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/gucharmap/+question/61098
>
> Status: Open => Answered
>
> marcobra proposed the following answer:
> Please try this:
>
> http://www.arsgeek.com/2007/07/19/how-to-install-truetype-fonts-on-your-
> ubuntu-computer/
>
> http://ubuntuforums.org/showthread.php?t=241196
>
> Hope this helps
>

Revision history for this message
steven riddle (mercysmiles-gmail) said :
#3

okay so i followed faq 98 with this on my terminal:

steeblinski@steeblinski-laptop:~$ sudo mkdir /usr/share/fonts/myfonts
[sudo] password for steeblinski:
steeblinski@steeblinski-laptop:~$ sudo cp /home/steeblinski/Desktop/DOX/steeblinski.ttf /usr/share/fonts/myfonts/
steeblinski@steeblinski-laptop:~$ sudo fc-cache -f

i go to the file directory /usr/share/fonts/myfonts and sure enuf there it is, steeblinski.ttf but when i go to my applications, text editor or open office wp it doesn't show anywhere. i then followed the other link,
http://www.arsgeek.com/2007/07/19/how-to-install-truetype-fonts-on-your-ubuntu-computer/ and try adding to the terminal fc-cache -f -v ~/.font and get this:

/home/steeblinski/.font: skipping, no such directory
/var/cache/fontconfig: not cleaning unwritable cache directory
/home/steeblinski/.fontconfig: cleaning cache directory
fc-cache: succeeded

so i don't know what "succeeded" as the font still doesn't show. problem unsolved, sorry.

Revision history for this message
juancarlospaco (juancarlospaco) said :
#4

Reboot your PC.

You will find the font later.

Revision history for this message
steven riddle (mercysmiles-gmail) said :
#5

i rebooted my pc, still no font.

On Sun, 2009-02-15 at 18:57 +0000, juancarlospaco wrote:
> Your question #61098 on gucharmap in ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/gucharmap/+question/61098
>
> Status: Open => Answered
>
> juancarlospaco proposed the following answer:
> Reboot your PC.
>
> You will find the font later.
>

Revision history for this message
Bill Sullivan (enkrates) said :
#6

I want to first say that I'm not an expert on this topic...

...but based on what you wrote above, it looks like you may have skipped "sudo" for the last command you entered into Terminal. Did you put in

"fc-cache -f -v ~/.font"

or

"sudo fc-cache -f -v ~/.font"

?

If you put in the first one, and it didn't work, maybe the second one would, considering an earlier command you tried was

"sudo fc-cache -f"

Let us know how it turns out.

Revision history for this message
steven riddle (mercysmiles-gmail) said :
#7

hi bill, dunno if all this is a plus or minus over windows but it's
definitely more complicated. this morning i tried a cold boot to see if
would make the difference over the restart or warm boot i tried
yesterday. nada. then i tried your suggestion, sudo fc-cache -f -v
~/.font, likewise nada, unless now i should restart again, who knows?
what i got was what i got yesterday with the command w'out the sudo.
guess my question today is what is the significance of the variables ~
and .font? should i have typed sudo fc-cache -f -v
myfonts/steeblinski.ttf?

gotta say this tho, i do appreciate the efforts of all of ya on my
behalf. it's not a crucial issue, just one i'd like to have resolved if
it could be. progress, not perfection. i could wish unbuntu support had
chat.

On Sun, 2009-02-15 at 22:46 +0000, Bill Sullivan wrote:
> Your question #61098 on gucharmap in ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/gucharmap/+question/61098
>
> Status: Open => Answered
>
> Bill Sullivan proposed the following answer:
> I want to first say that I'm not an expert on this topic...
>
> ...but based on what you wrote above, it looks like you may have skipped
> "sudo" for the last command you entered into Terminal. Did you put in
>
> "fc-cache -f -v ~/.font"
>
> or
>
> "sudo fc-cache -f -v ~/.font"
>
> ?
>
> If you put in the first one, and it didn't work, maybe the second one
> would, considering an earlier command you tried was
>
> "sudo fc-cache -f"
>
> Let us know how it turns out.
>

Revision history for this message
Abi ^-^ (abiyasa-eka) said :
#8

open terminal

type cd /usr/share/fonts/
type ls

Please copy the result and paste here

Thanks ^-^

Revision history for this message
Abi ^-^ (abiyasa-eka) said :
#9

press alt+F2

type gksu nautilus /usr/share/fonts/truetype

make your new folder, copy ttf file into folder

open terminal

type

sudo fc-cache -f -v

try it

Revision history for this message
steven riddle (mercysmiles-gmail) said :
#10

hi abi .. did as you said, am pasting result below per your instruction:

On Tue, 2009-02-17 at 01:28 +0000, Abi ^-^ wrote:

> Your question #61098 on gucharmap in ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/gucharmap/+question/61098
>
> Status: Open => Needs information
>
> Abi ^-^ requested for more information:
> open terminal
>
> type cd /usr/share/fonts/
> type ls
>
> Please copy the result and paste here

steeblinski@steeblinski-laptop:~$ cd /usr/share/fonts/
steeblinski@steeblinski-laptop:/usr/share/fonts$ ls
myfonts truetype type1 X11
steeblinski@steeblinski-laptop:/usr/share/fonts$

do i need to change directory (cd?) again before i enter fc-cache -f -v?
well, i will try entering that command now, as is, and see what
happens .. okay i got this:

steeblinski@steeblinski-laptop:~$ cd /usr/share/fonts/
steeblinski@steeblinski-laptop:/usr/share/fonts$ ls
myfonts truetype type1 X11
steeblinski@steeblinski-laptop:/usr/share/fonts$ fc-cache -f -v
/usr/share/fonts: caching, new cache contents: 0 fonts, 4 dirs
/usr/share/fonts/X11: caching, new cache contents: 0 fonts, 6 dirs
/usr/share/fonts/X11/100dpi: caching, new cache contents: 0 fonts, 0
dirs
/usr/share/fonts/X11/75dpi: caching, new cache contents: 0 fonts, 0 dirs
/usr/share/fonts/X11/Type1: caching, new cache contents: 43 fonts, 0
dirs
/usr/share/fonts/X11/encodings: caching, new cache contents: 0 fonts, 1
dirs
/usr/share/fonts/X11/encodings/large: caching, new cache contents: 0
fonts, 0 dirs
/usr/share/fonts/X11/misc: caching, new cache contents: 0 fonts, 0 dirs
/usr/share/fonts/X11/util: caching, new cache contents: 0 fonts, 0 dirs
/usr/share/fonts/myfonts: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype: caching, new cache contents: 0 fonts, 14 dirs
/usr/share/fonts/truetype/arphic: caching, new cache contents: 4 fonts,
0 dirs
/usr/share/fonts/truetype/freefont: caching, new cache contents: 12
fonts, 0 dirs
/usr/share/fonts/truetype/kochi: caching, new cache contents: 4 fonts, 0
dirs
/usr/share/fonts/truetype/msttcorefonts: caching, new cache contents: 60
fonts, 0 dirs
/usr/share/fonts/truetype/openoffice: caching, new cache contents: 1
fonts, 0 dirs
/usr/share/fonts/truetype/sjfonts: caching, new cache contents: 2 fonts,
0 dirs
/usr/share/fonts/truetype/thai: caching, new cache contents: 51 fonts, 0
dirs
/usr/share/fonts/truetype/ttf-arabeyes: caching, new cache contents: 39
fonts, 0 dirs
/usr/share/fonts/truetype/ttf-bitstream-vera: caching, new cache
contents: 10 fonts, 0 dirs
/usr/share/fonts/truetype/ttf-dejavu: caching, new cache contents: 6
fonts, 0 dirs
/usr/share/fonts/truetype/ttf-indic-fonts-core: caching, new cache
contents: 11 fonts, 0 dirs
/usr/share/fonts/truetype/ttf-lao: caching, new cache contents: 1 fonts,
0 dirs
/usr/share/fonts/truetype/ttf-liberation: caching, new cache contents:
12 fonts, 0 dirs
/usr/share/fonts/truetype/unfonts: caching, new cache contents: 4 fonts,
0 dirs
/usr/share/fonts/type1: caching, new cache contents: 0 fonts, 1 dirs
/usr/share/fonts/type1/gsfonts: caching, new cache contents: 35 fonts, 0
dirs
/usr/share/X11/fonts: skipping, no such directory
/usr/local/share/fonts: caching, new cache contents: 0 fonts, 0 dirs
/home/steeblinski/.fonts: skipping, no such directory
/usr/share/fonts/truetype/ttf-malayalam-fonts: skipping, no such
directory
/var/cache/fontconfig: not cleaning unwritable cache directory
/home/steeblinski/.fontconfig: cleaning cache directory
fc-cache: succeeded
steeblinski@steeblinski-laptop:/usr/share/fonts$

so now i'm going to save this to draft, reboot and see if the
steeblinski.ttf font will show in my applications. the font itself was
already visible in the directory, we accomplished that (thanks to all)
but it has yet to show in the applications .. be back in a minute ..

okay, back from the cold boot, no font in the appication text editor.
any more ideas? appreciate the effort, love the open-hearted help i'm
receiving.

steven riddle.

> Thanks ^-^
>

Revision history for this message
steven riddle (mercysmiles-gmail) said :
#11

question: i don't understand the necessity of creating the "myfonts" directory and copying my steeblinski.ttf file there rather than copying it to one of the folders in /usr/share/fonts/truetype? the said font has been copied to the /usr/share/fonts/myfonts, it just won't show up in the applications. perhaps if it were placed in one of the truetype folders, it'd show? how would i go about that?

Revision history for this message
Abi ^-^ (abiyasa-eka) said :
#12

Try it, in my experience, when i want to add some others font, like Mas os fonts,
i always use nautilus as root to copy the font into folder truetype, open terminal, and do sudo fc-cache -f -v (with sudo)

and it always work and show in open office without reboot ....

If it's still not show, try download another fonts, like mac os fonts or anything, and do the command, is it show?

Thank you

Can you help with this problem?

Provide an answer of your own, or ask steven riddle for more information if necessary.

To post a message you must log in.