Skip to main content

Font

The printer supports any TrueType or OpenType font. The font files must be installed in the printer before they are used.

Fonts are specified using an object with the following mandatory properties:

AttributeTypeDescription
familystringFont family name.
stylestringFont style name.
heightnumberFont height. Note that this is the nominal height of the font. The height of a single character will be less.

The following optional properties are also available:

AttributeTypeDescription
widthnumberHorizontal stretch factor. Default is 1.0, which is the default aspect ratio for the font.