RISC OS 3.7 User Guide


13 T1ToFont


T1ToFont is a program that converts fonts from Adobe Type1 format to the RISC OS outline font format. Once you've converted fonts, you can use them in your documents just like any other Acorn outline font.

Note: This application is for advanced users only. Most people will never need to use it. Some complex fonts (and fonts not conforming exactly to Adobe Type 1 format) may not convert successfully.

This application should only be used to convert public domain fonts. While it is possible to convert proprietary fonts, it would, most probably, be a breach of copyright to do so without the consent of the copyright holder.

Converting a font

Before you can use the converter you need to have your source font (the Type 1 file and the AFM file, described on page 171) on a RISC OS format disc. The Type 1 file (often called the PFB file) should be given the filetype PoScript and the AFM file given the filetype Text.

1 Load T1ToFont (it's in the Utilities directory on your hard disc or network).

2 Click on the icon bar icon to display the Font converter window.

3 Drag the Type 1 PFB file icon from its directory display onto the Type 1 file field in the converter window.

4 Drag the AFM file from its directory display onto the AFM file field in the converter window.

5 After a few seconds the name of the RISC OS font to be generated is displayed in the Font name field. You can change this name if required.

6 Use the Save in field to select a font directory to save the resulting font in. However you should not normally change this from the default path - typically ADFS::HardDisc4.$.!BOOT.Resources.!Fonts. Click on the menu icon to display the alternatives.

7 Select the Encoding you need for the font, Acorn Extended Latin is nearly always used. Click on the menu icon to display the alternatives.

8 Click on the Keep PostScript option button if you want to keep the Type1 font and the AFM files with the Outline font. This is useful if you are printing to a PostScript printer as the printer will then use the PostScript font directly.

9 Start the conversion by clicking on OK.

When the conversion is finished (the hourglass reverts back to a pointer) the font is now stored in the computer as a RISC OS font.

You should now try to display the font using !Chars (see page 351) if the font displays correctly the conversion was successful. If the font does not display properly then it cannot be used with RISC OS and should be deleted from the font directory it was saved in.

Other information

The Save in menu selects a font directory to save the resulting font in. The menu is constructed from the contents of the Font$Path system variable, so !Font directories can be added to the menu by installing them on Font$Path (you can do this by double-clicking them). The default path is ADFS::HardDisc4.$.!BOOT.Resources.!Fonts.

Encoding

The Encoding type for most fonts will almost always be Acorn Extended Latin.

Some fonts have their own special encoding information. If you have one of these fonts you should choose the Encoding type, As specified in type 1 file.

If you don't have an AFM file you can convert the font by leaving the AFM field blank. The resulting font will lack kerning (font spacing) information, so always use the AFM file if you have one.

Selwyn, Sussex and Sidney are encodings for special symbol fonts. The encoding file is automatically stored within the font's directory.

Font types

Fonts must conform strictly to the Type 1 font definitions. Many Public Domain fonts do not obey the structure rules laid down by Adobe and consequently they may not convert properly. Type 3 fonts cannot be converted.

Printing to a PostScript printer

If you print to a Postscript printer, the printer uses the original PostScript font (for downloading) if it is available. If it is not available, it converts and downloads the RISC OS outline font. To keep the original PostScript font available, select the Keep PostScript option before you start converting your font.

Using Macintosh and MS-DOS type 1 fonts

Macintosh fonts

Macintosh fonts are generally supplied as a Font/DA Mover document, containing the Macintosh version of the font, and one or more Type 1 files containing the PostScript code for use on the printer. There will be one Type 1 file for each weight and variation of the font.

AFM file

In addition to this you need an AFM (Adobe Font Metrics) file for each weight and variation of the font. The Macintosh does not seem to use this itself, but some fonts are supplied with it anyway. If you do not have the AFM file, contact the font supplier and try to obtain one.

You can convert a font without using an AFM file, however the resultant RISC OS font will lack kerning information.

Transfer the files

You need to copy files from the Macintosh to your computer. Macintosh Type 1 files usually occupy the Macintosh resource fork of the file, so you'll need a way to extract this. The Macintosh version of the file transfer protocol Kermit, is one way of doing this. It may be simpler to use a Macintosh multiformat floppy drive to copy the files to an MS-DOS format floppy disc. This disc can then be read directly by your RISC OS computer.

Transfer the resource fork of the font file to a file on your computer, and set its filetype to PoScript (&FF4). Transfer the AFM file (usually in the data fork) to your computer and give it the filetype Text.

MS-DOS Fonts

Fonts for MS-DOS computers are supplied on MS-DOS floppy discs and can therefore be read directly by the RISC OS Filer. Among the files on the disc will be one or more Type 1 files containing the PostScript code for the printer. There will be one Type 1 file for each weight and variation of the font. The Type 1 files usually have the extension .PFB.

AFM file

In addition to this you need an AFM (Adobe Font Metrics) file for each weight and variation of the font. If you do not have the AFM file, contact the font supplier and try to obtain one.

You can convert a font without using an AFM file, although the resultant RISC OS font will lack kerning information.

Other files on the disc, including the PFM file, are not needed for the conversion.

Setting the filetypes

Transfer the AFM and PFB files to another floppy disc or to the hard disc. Change the filetype of the PFB file to PoScript (&FF4) and the filetype of the AFM file to Text.


RISC OS 3.7 User Guide - 21 JAN 1997