I decided to create this mini HOWTO after seeing numerous requests for help
with setting up Corel Linux to use true type fonts. Being a long time victim of
the ugly X desktop, and having just recently figured it all out, I decided it'd
be best if I wrote it down. Corel Linux is
a commercial distribution based on Debian,
and as such, the setup is biased towards the Debian way of doing things. A lot
of information is available on how to set up true type fonts with Redhat and other distributions, but the
information doesn't correctly apply to Corel Linux. So...here it is.
This file (in the standard HOWTO format) will be available at http://vmlinuz.freeshell.org/corel/true-type.html.
The flat-format version will be available at http://vmlinuz.freeshell.org/corel/flat-true-type.html
0.1 - Posted messages on corelsupport.linux.corellinux
0.3
- Wrote it all down myself. Researched some of the available Mini HOWTOs to see
if I was being redundant
0.5 - Assembled in standard and flat HOWTO format
and submitted to newsgroup
To make True Type Fonts available to Corel Linux, you need the following software:
XFS is installed by default on your Corel Linux system...you already have it :) . XFS can also provide true-type font services, through the use of another library called freetype. Adding how to use these two to provide true type fonts is my single "TODO" item.
XFSTT is available from the Debian servers. It is not provided with Corel Linux 1.0 (Download Version). To get XFSTT...
Now we go through the steps of making XFSTT work for you. For these steps, you need to be logged in as ROOT.
True Type Fonts used by XFSTT are located in the directory /usr/share/fonts/truetype/. First, check to make sure the directory truetype exists. It should have drwxr-xr-x permissions. If it doesn't have those permissions, you need to change the permissions to match. There are several ways to do this. The fastest is to open a console window and type:
Once we know the directory is there and it's permissions are correct, we can copy our true type fonts to that directory. True Type fonts have a file extension of .ttf . If you are getting fonts from a Windows disk, simple copy and past the .ttf files (normally located in C:\windows\fonts\) to the /usr/share/fonts/truetype/ directory. If you downloaded fonts from the web, more than likely they have to be unzipped. Here's how to do it with Corel's File Manager and Archive Administrator:
-ttf-arial black-medium-i-normal-italic-0-0-0-0-p-0-iso8859-1 -ttf-arial black-medium-r-normal-regular-0-0-0-0-p-0-iso8859-1 -ttf-arial narrow-bold-i-normal-bold italic-0-0-0-0-p-0-iso8859-1 -ttf-arial narrow-bold-r-normal-bold-0-0-0-0-p-0-iso8859-1
If running xset fp+ unix/:7101 gets you an error something like:
xset : bad font path element (#38), possible causes are: Directory does not exist or has wrong permissions Directory missing fonts.dir Incorrect font server address or syntaxrestart the font server by typing /etc/init.d/xfstt force-reload. Remember, you must be ROOT. The reply should be
Reloading X True Type Font Server configuration... Stopping X True Type Font Server: xfstt not running. xfstt: sync in directory "/usr/share/fonts/truetype/." Found ## fonts Starting XTruetype Font Server: xfsttWhen you see this, run xset fp+ unix/:7101 and xfstt should find all your fonts.
Section "Files" RgbPath "/usr/X11R6/lib/X11/rgb" FontPath "/usr/X11R6/lib/X11/fonts/misc:unscaled" FontPath "/usr/X11R6/lib/X11/fonts/75dpi:unscaled" FontPath "/usr/X11R6/lib/X11/fonts/100dpi:unscaled" FontPath "/usr/X11R6/lib/X11/fonts/Type1" FontPath "/usr/X11R6/lib/X11/fonts/Speedo" FontPath "/usr/X11R6/lib/X11/fonts/misc" FontPath "/usr/X11R6/lib/X11/fonts/75dpi" FontPath "/usr/X11R6/lib/X11/fonts/100dpi" EndSectionEdit this section, placing FontPath "unix/:7101" right after the RgbPath line. The result should look like this:
Section "Files" RgbPath "/usr/X11R6/lib/X11/rgb" FontPath "unix/:7101" FontPath "/usr/X11R6/lib/X11/fonts/misc:unscaled" FontPath "/usr/X11R6/lib/X11/fonts/75dpi:unscaled" FontPath "/usr/X11R6/lib/X11/fonts/100dpi:unscaled" FontPath "/usr/X11R6/lib/X11/fonts/Type1" FontPath "/usr/X11R6/lib/X11/fonts/Speedo" FontPath "/usr/X11R6/lib/X11/fonts/misc" FontPath "/usr/X11R6/lib/X11/fonts/75dpi" FontPath "/usr/X11R6/lib/X11/fonts/100dpi" EndSectionSave the file and exit kwrite. Now your system is ready to use true type fonts. All you have to do is restart X. To do that, press CTL + ALT + BACKSPACE (or just log out and log back in).
Once you've restarted X, checking to see if true type fonts are working is as simple as running the KDE Font Manager ( Applications - System - Font Manager ). If all is well, your true type fonts will be listed under "Current KDE Fonts". Congratulations! Your true type fonts are now available to all your X applications.
If your true type fonts are NOT listed, go back and check your work. If you are getting no errors from xset fp+ unix/:7101, then check the XF86Config file and make sure it is modified as stated above.
Now, whenever you find a cool font on the web that you want to download...go
for it! After you get the font in the /usr/share/font/truetype/ directory, just
run (as root) xfstt --sync and you will be able to use it.