Specify 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, i5/OS™ assumes 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:

Related concepts

DDS keyword finder

How TrueType and OpenType fonts differ from AFP fonts

TrueType fonts on OS/400 V5R2