TTF Fonts for StarOffice 5.1

StarOffice 5.1 does not have TTF support, even through the X server. In fact, StarOffice has its own font managment. There are two ways to use TTF in StarOffice. Both rely on the conversion of TTF in Type1 fonts :

  • Convert TTF in Type1 and install Type1 fonts in the X server.
  • Convert TTF in Type1 and install in StarOffice.

I use the second solution, that I will describe later.

Prerequisite

To do that, you will need :

To make these steps easier, I wrote two small scripts :

Configuration

You have to edit these two scripts to specify the paths of yours applications and font files :

  • SO_PATH or SOPATH : StarOffice path.
  • TEMP : Temporary directory. This directory must be empty.

You need also to check that the link to use perl exists : ln -s /usr/bin/perl /usr/local/bin/perl.

Running

Check that you have the accurate rights on the directories you specified.

Launch the script StarOfficeTTFALL.sh <TTF path>

The script may take some time. Check there is no errors. Is everything is ok, you shoould have the fonts you installed the next time you launch StarOffice.

Technical Information

Here are just a few information that could be helpful :

  • The .afm format for StarOffice differs slightly with the Type1 format. That’s why you need to use the afm.pl script.
  • The fonts.dir file created by ttmkfdir is a little different, that’s why you need to keep only a line per file, and to change the end of the line.

These programs are written by several authors and are distributed under GPL license.

 

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Close Menu