Specifying a TrueType or OpenType font

You can specify a TrueType font anywhere that you can specify an Advanced Function Presentation (AFP) font. You can also mix references to TrueType and AFP fonts. However, TrueType fonts are referenced differently than AFP fonts.

Note: In this topic, the term TrueType refers to both TrueType and OpenType fonts.
To specify a TrueType font in your document, use the Data description specifications (DDS) FONTNAME keyword to specify the TrueType font name. You can also use this keyword to specify other options, such as a code page.
Usage notes:
  1. If you do not specify a code page with the TrueType font, IBM® i assumes that the print data that uses this font is UTF-16.
  2. The font name must match exactly, including the case, trailing blanks, embedded blanks, and so on.
  3. You must ensure that your printer supports the specified font. If the printer does not support a requested font, processing stops. No substitution is done.
Note: Any TrueType font that is to be used with AFP must be Unicode-enabled. This means that the font must have these characteristics:
  • It must contain a Microsoft Unicode subtable identified by platform ID = 3 (Microsoft) and platform-specific encoding ID = 1 (Unicode, UTF-16).
  • It must specify a full font name (Name ID 4) using the same encoding in the naming table.