Related Items  

Linux and Windows IT Support  

We make IT Support easy!

Windows, Apple and Linux IT support and services.

Login or Register  

If you wish to contribute an article, please login or register.

Installing TrueType Fonts

PrintE-mail

To install TrueType on a gnome system, follow these steps:

  1. Create a ~/.fonts directory.
  2. Copy the TrueType files to your ~/.fonts directory.
  3. Verify that the fonts are available to your system with the fc-list command.

Microsoft's TrueType core fonts for Linux are available at this link.

To enable fonts for all users, use the following method:

1. Become the root user.
su -
2. Create the TrueType font directory. The TrueType font directory must have 755 permissions.
mkdir -m 755 /usr/X11R6/lib/X11/fonts/TrueType
3. Copy all your TrueType fonts (ending in extension .ttf or .TTF) to /usr/X11R6/lib/X11/fonts/TrueType

4. Make sure that all font file names are lowercase and contain no spaces. To convert your uppercase files to lowercase, you may use one of these methods:

Method 1:

#cd /usr/X11R6/lib/X11/fonts/TrueType
for i in *
do
j=`echo $i | awk '{print tolower($0)}'`
mv $i $j
done

Method 2:

cd /usr/X11R6/lib/X11/fonts/TrueType

 

for uppercase in `ls`
do
for lowercase in `ls $uppercase|tr [A-Z] [a-z]`
do
mv $uppercase $lowercase 2>/dev/null
done
done


5. Make sure all font files have 644 permissions.

chmod 644 *.ttf


6. ttmkfdir > fonts.scale

7. mkfontdir

8. Add your TrueType font directory to the xfs configuration file /etc/X11/fs/config.
/usr/sbin/chkfontpath --add `pwd`

9. xset fp rehash

10. service xfs restart

11. Restart the X Window System in order for the new fonts to take effect.

Comments (2)
Installing TrueType Fonts
2 Wednesday, 20 October 2010 06:41
Fonts
This is strange - I'm not sure why it didn't work for you - I've done this in starting with 6.06 and I still have ~/.fonts directory in my 10.10 - works like a charm.
TTF Forts for Ubuntu
1 Monday, 09 November 2009 16:33
Alex
The above methods didn't work for me. I'm using Ubuntu - this is how I did it:

Installation for all users

Fonts installed by this method will be accessible to all users of the system.

1. Copy fonts to be installed in /usr/share/fonts (create a subdirectory in the directory to store the .ttf files)
2. Type: fc-cache-fv

Installation for a single user
Fonts installed will be accessible by a single user. (This manipulation can be done without admin rights. Each user can have its own fonts.)

1. Copy fonts to be installed in ~/.Fonts
2. Type: fc-cache-fv

Add your comment

Your name:
Subject:
Comment:
  The word for verification. Lowercase letters only with no spaces.
Word verification:
yvComment v.1.24.0
   
Copyright © 1999 - 2017 Virtual Helpme | Managed IT Solutions Specialized for Your Business | Original Template: Allrounder
-->