IceWalkers.com - Linux Software downloads and news
Name : Password :
Linux SoftwareLinux RPMLinux HowtosLink UsAboutAdvertise

TrueType Fonts with XFree86 4.0.x mini-HOWTO

Search Howtos :Match :
Previous Contents

2. Procedure

Since my last update a lot has happened but the procedure is still the same even for X.org. Just adjust the filename if necessary.

Get a set of TrueType fonts (for example from one of the many sites making fonts availiable for download) and do the following as root at the command line:

  • mkdir /usr/X11R6/lib/X11/fonts/Truetype
  • cp /home/joeuser/your-download-directory/*.ttf /usr/X11R6/lib/X11/fonts/Truetype
  • cd /usr/X11R6/lib/X11/fonts/Truetype
  • ttmkfdir > fonts.scale
  • mkfontdir

Now if you have a working installation of Windows on one of your partitions, you must use the fonts directly from there, copying them to a directory of your Linux partition is considered *illegal*. First read up on how to get your windows partition detected and working in Linux (most distributions do that at installation time, and by default), then as root do the following:

  • cd /etc/X11
  • your-favourite-editor XF86Config In some X distributions this file is used with a number added to it (for example: XF86Config.4)]. You will have to find out which file your X11R6 uses. You can do this by typing: cat /var/log/XFree* | grep "Using config file:" and then instead edit the file stated in the log.
  • Now, in the editor find the section Files and the lines with FontPath, just add FontPath "/yourwinpartition/windows/fonts/" at the bottom of this list. (yourwinpartition must be replaced with the mount point of your windows partition)
  • cd /winpartition/windows/fonts
  • ttmkfdir > fonts.scale
  • mkfontdir

This will make all the fonts on your Windows partition work correctly in X.

There you go. You will now have all of your TrueType fonts working. If you want to add fonts, just move/copy those [*.ttf files] into the aforementioned directory, and repeat the process.

Netscape has problems with these fonts, you have to check the "Allow Scaling" setting in the Fonts dialog, don't feel distracted by the fact that it only shows font sizes 0 and 12. Mozilla has no such problems. Opera neither.

The mkfontdir executable should be included with your XFree 4.x distribution.

If you are missing ttmkfdir, you can obtain it here: http://www.joerg-pommnitz.de/TrueType/ttmkfdir.tar.gz

The latest version of XFree86 (currently 4.4.0) can be found at: http://www.xfree86.org

The latest version of X.org can be found here: http://freedesktop.org/XOrg


Next Previous Contents
Search Howtos :Match :
Python 3.0
Interpreted, interactive, object-oriented programming language
VLC media player 0.9.8a
Cross-platform media player and streaming server
Transmission 1.41 beta 2
Lightweight, yet powerful BitTorrent client
X-Moto 0.5.0
2D motocross platform game
Gdm 2.25.1
Reimplementation of the well known xdm program.
Linux Kernel 2.6 2.6.28-rc7
Linux Kernel
Linux Kernel 2.4 2.4.37
Linux Kernel
SquirrelMail 1.4.17
PHP Based Webmail Product
GNOME 2.25.2
GNOME desktop environment
WebGUI 7.6.5
A fully featured content management system.
Free IT Magazines, White Papers, eBooks, and more !
Dr. Dobb's Journal

Dr. Dobb's Journal enables programmers to write the most efficient and sophisticated programs and help in daily programming quandaries.

The 7 Things that IT Security Professionals MUST KNOW!

Gain key insight into security problem and find the safest means to protect your technological assets.

Database Trends and Applications

Provides timely coverage of the technology, intelligence and insight needed to plan, implement and manage information-rich projects.

Linux Software Map
Find Linux RPM
Best Rated Linux Software
Most Rated Linux Software
Linux Distributions
Linux Howtos
Quick Survey

Please take our survey and help us improve our website to serve you better.

Thank you.
Linux Software
Linux / IT Resources
Site Resources
Google
Privacy Policy
Contact Us
Submit Software
Advertising info