X11 Fonts

Fonts are one of the tools used by the gimp users to create WEB pages. Even if Linux can now use TTF fonts, I better use the Type1 fonts avoiding to install the TTF server that seems to crash when the fonts used are quite big.
I have found a great program to convert TTF font to Type1. You can get the TTFtoPS1 converter here.

Here is a perl script to remove duplicated lines from the fonts.scale file.

Some good TTF archives where you can easily download TTF fonts are: Since I convert a lot of TTF into Type1PS, here is a stupid bash program I use to convert all the fonts while I'm doing something else.

#!/bin/bash
##########################################################################
#      script to generate type1 ps font from TTF                         #
#                                                                        #
#    by marco@tecnogi.com                                                #
##########################################################################


for UN in `ls | grep ttf ` ; do
TFN=`echo $UN | cut -f1 -d. `
        echo I'm converting $TFN
        ttf2pt1 $UN - | t1asm > $TFN.pfa


done
You have to make this file executable and run it in the fonts dir. Once you have created the type1 fonts, you must copy them in one of the paths specified in your xf86config file (or create a new path and update the configuration file).
Next you have to run type1inst in the new path to create the fontscale. Kill and restart X to use the new transformed fonts or type xset fp rehash to reash the font server.
Please use the fonts.pl file to remove any fonts duplicate in your fonts.scale file after use. Enjoy GIMP!


Marco Giardini
marco@tecnogi.com