LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-24-2006, 07:19 PM   #1
jz32300
Member
 
Registered: Jun 2006
Location: France
Distribution: Ubuntu Dapper 6.06
Posts: 30

Rep: Reputation: 15
Ubuntu Dapper - install ttf fonts?


Hi

Can anybody tell me how to install a truetype font in Ubuntu Dapper 6.06 please?

I've downloaded the font file and I can view it by right-clicking on it in the file manager and selecting "open with GNOME font viewer" - but I don't see any option to install it.

Any ideas?

Thanks!
 
Old 06-24-2006, 08:11 PM   #2
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 64
Quote:
Originally Posted by jz32300
Hi

Can anybody tell me how to install a truetype font in Ubuntu Dapper 6.06 please?

I've downloaded the font file and I can view it by right-clicking on it in the file manager and selecting "open with GNOME font viewer" - but I don't see any option to install it.

Any ideas?

Thanks!
Open a terminal then type:

Code:
sudo apt-get install msttcorefonts
sudo fc-cache -f -v
 
Old 06-24-2006, 11:04 PM   #3
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 74
To install fonts manually
  1. create a subdirectory in /usr/share/fonts e.g. myttf
  2. copy your fonts to that directory
  3. start a terminal emulator and cd to the font directory you made
  4. switch to root by using "su" and do the following
    Code:
    #mkfontdir
    #mkfontscale
    #fc-cache
If using Ubuntu without a proper root account, cd to the font directory you made and do "sudo mkfontdir && mkfontscale && fc-cache" instead of the last step above. When you logout and back in again, your new fonts will be ready for use.

Last edited by reddazz; 06-25-2006 at 07:08 AM.
 
Old 06-25-2006, 05:07 AM   #4
jz32300
Member
 
Registered: Jun 2006
Location: France
Distribution: Ubuntu Dapper 6.06
Posts: 30

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by reddazz
To install fonts manually
  1. create a subdirectory in /usr/share/fonts e.g. myttf
  2. copy your fonts to that directory
  3. start a terminal emulator and cd to the font directory you made
  4. switch to root by using "su" and run do the following
    Code:
    #mkfontdir
    #mkfontscale
    #fc-cache
If using Ubuntu without a proper root account, cd to the font directory you made and do "sudo mkfontdir && mkfontscale && fc-cache" instead of the last step above. When you logout and back in again, your new fonts will be ready for use.
Thanks for that - it works perfectly!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: 6 Steps to a Ubuntu Dapper Drake install LXer Syndicated Linux News 1 06-07-2006 11:56 AM
Ubuntu Dapper BETA to Official Dapper? morrolan Ubuntu 4 05-26-2006 04:47 PM
Ubuntu dapper wont install dependencies doralsoral Linux - Software 1 04-17-2006 04:28 PM
How to install Ubuntu Dapper from Fedora? JBull Linux - Newbie 3 04-12-2006 10:52 PM
Adding TTF fonts from an existing Windows install... Eerath MEPIS 2 09-03-2005 06:00 AM


All times are GMT -5. The time now is 06:29 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration