Tugger the SLUGger!SLUG Mailing List Archives

Re: [SLUG] Star Office & fonts


USING NEW FONTS IN STAR OFFICE

1. Download your truetype font into ... say tmp. Obtain ttf2pt1.
1a. Run  ttf2pt1 -b yourfont.ttf.

2. Make a font directory in  /usr/X11R6/lib/X11/fonts/  , say myType1.
2b. mv fontname.afm  fontname.fpb  to /usr/X11R6/lib/X11/fonts/myType1.

3. cd /usr/X11R6/lib/X11/fonts/myType1
3. Run type1inst  (which you might have to obtain). You will now have there
   fonts.dir and fonts.scale which should be identical, and Fontmap.

4. Fontmap will have an entry in the same format as  /etc/gs/Fontmap.
   Make a backup of /etc/gs/Fontmap; then copy the entry in your new Fontmap 
   to the end of /etc/gs.Fontmap

5. sudo xset fp+ /usr/X11R6/lib/X11/fonts/myType1; sudo xset fp rehash

6. Run Office51/bin/spadmin
   a) Click on Add fonts
   b) Initialise font paths
   c) Select your new directory (myType1).

7. Restart StarWriter.

This is from the Font-HOWTO. 

Nick