Mapping AFP Fonts to TrueType Fonts

You can map an AFP font file to a TrueType font by specifying within the alias.fnt file the TrueType font name. Figure 16 shows an example of the mapping AFP fonts to TrueType fonts.

The extension is specified to differentiate from a mapping to a Type1 font. For the mapping to work, Afp2pdf Plus searches the "TrueTypeFont-Name-1.ttf" TrueType file within the TrueType_Directory. You can specify the TrueType_Directory within the configuration file as stated in the Mapping AFP Fonts to TrueType Fonts. If the "TrueTypeFont-Name-1.ttf" file is missing from the TrueType_Directory path, Afp2pdf Plus uses the default "Times Roman" font.

Any code page defined in the Code Page Definition File (cpdef.fnt) can be used when mapping AFP Fonts to TrueType Fonts. To use custom character encoding, the mapping must be placed in the Code Page Definition File and the *.ucm file must contain the code page id in the name structure and must be located in the Locale Directory.

Note: Afp2pdf Plus does not support TrueType Collection files (*.ttc) and OpenType fonts (*.otf) files for the mapping.

Afp font to TrueType font mapping in the alias.fnt file

;**** Requested font=font name,Font metric/AFM file name (or
'NULL' for not used) *****
Font1=TrueTypeFont-Name-1.ttf,NULL
Font2=TrueTypeFont-Name-2.ttf,NULL
;******* End User-defined/Custom names *******
EndCharMetrics