By Akos Polster, akos@pipacs.com
Last modified: $Date: 2002/05/09 11:08:48 $
![]() |
![]() |
| Before... | After! |
Welcome. On this page, I present a quick hack to make two key Gnome applications, AbiWord and Dia, looking better on screen. In the original Ximian Gnome setup, these applications use to the very free, but not very nice URW fonts. If you happen to have something better, namely the not-so-free, but beautifully rendered Microsoft core fonts (Arial, Courier New and Times New Roman), here are the steps for making them accessible.
This hack was only tested on Red Hat Linux 7.1 with Ximian Gnome 1.4.
In this document, I assume that you have
The more you have the better. The next step is to create the font catalog. Use the following commands:
cd /usr/share/fonts/truetype ttmkfdir > fonts.dir cp fonts.dir fonts.scale
Dia expects the font names to follow the URW naming conventions, which means we have to cheat by creating aliases to the same font files we created previously. (Ok, technically these are not X font aliases, but completely new fonts, rendered from the same font files. I just couldn't make Dia work with true aliases.)
We accomplish this by creating a new font directory with no font files, but with a catalog referencing to font files in other directories:
mkdir /usr/share/fonts/dia cp dia-fonts.dir /usr/share/fonts/dia/fonts.dir cp dia-fonts.dir /usr/share/fonts/dia/fonts.scale
Note: This procedure was tested with AbiWord 0.99.3.
AbiWord expects to find its fonts in /usr/share/AbiSuite/fonts. This directory exists already, but we are going to replace it with the one containing our TrueType fonts:
mv /usr/share/AbiSuite/fonts /usr/share/AbiSuite/fonts.org cd /usr/share/AbiSuite/bin ./ttfadmin.sh /usr/share/fonts/truetype ln -s /usr/share/fonts/truetype /usr/share/AbiSuite/fonts
The X font server configuration file is called config, located in /etc/X11/fs. Only the "catalogue" entry has to be changed. The goal is to remove all references to URW fonts, and to add ours.
This is the change I recommend:
catalogue = /usr/X11R6/lib/X11/fonts/misc:unscaled, /usr/X11R6/lib/X11/fonts/75dpi:unscaled, /usr/share/fonts/truetype, /usr/share/fonts/dia
Finally, restart the font server and the X Window server:
init 3 service xfs restart init 5