Editing the TrueType font definition file

Edit the TrueType font definition file to map TrueType and OpenType fonts to Type 0 or Type 1 fonts.

In the ttdef.fnt file, the lines use this syntax:

full font name=familyname,style,weight,italic
full font name
The full font name of the TrueType or OpenType font.
familyname
The name of a Type 0 or Type 1 typeface or type family, such as TimesNewRoman or Courier.
    Note:
  • To determine the family name of a font, open the .pfa or .pfb file for that font with a text editor and search for /FamilyName.
  • Use one of these family names for efficient processing of DBCS TrueType fonts:
    Family name PostScript name
    JpnSys KozGoPro-Medium
    JpnSys2 KozMinPro-Regular
  • Family names must not contain spaces.
style
A generic description of some aspects of a font. Valid values are:
SWISS
A proportionally spaced sans serif font.
ROMAN
A proportionally spaced serif font.
SCRIPT
A fixed-pitch font that is designed to look like handwriting.
MODERN
A fixed-pitch font that can be serif or sans serif.
DISPLAY
A decorative font.
weight
The degree of boldness of a typeface, caused by changing the thickness of the strokes used to create the character. Valid values are: LIGHT, MED, and BOLD. This value is optional.
italic
A font whose characters slant to the right. If the character set refers to an italic font, set this value to 1; if not, set it to 0. This value is optional.

For example, the TrueType font definition file might contain these entries:

[TRUETYPE]
;full font name=familyname,style,weight,italic
Times New Roman=TimesNewRoman,ROMAN,MED,1
MS Gothic=JpnSys,SWISS,MED,0
MS Mincho=JpnSys2,ROMAN,MED,0
DEFAULT=TimesNewRoman,ROMAN,MED,1

To edit the TrueType font definition file:

  1. On Linux, log in to the primary computer using a user ID that is a member of the RICOH ProcessDirector group (aiwgrp1 is the default).
  2. Navigate to /opt/infoprint/ippd/afpviewer/font (Linux) or C:\Program Files\Ricoh\ProcessDirector\afpviewer\font (Windows) and find the file ttdef.fnt.
  3. Copy the file ttdef.fnt and save it as a backup.
    For example, you can save the copy as ttdef.fnt.bak.
  4. Open ttdef.fnt in a file editor.
  5. Insert new lines for the fonts that you want to map, using the syntax above.
      Note:
    • The DEFAULT line must be the last one in the list. Add your lines above it.
    • If you map a TrueType or OpenType font to a Type 1 or Type 0 font that is not one of the standard fonts that the AFP viewer uses, the non-standard font must be mapped in the Type 1 and Type 0 font map.
    • A semicolon (;) in the first column causes that line to be treated as a comment.
    • Section headers within files are enclosed in square brackets ([]) and must not be removed or changed.
    • All values are case-sensitive.
    • If a parameter value is not valid and a default value exists, the default value is used.
    • All parameters are positional.
    • Blanks are allowed between parameters.
  6. Save and close the file.