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:
| Attribute | Type | Description |
|---|---|---|
| family | string | Font family name. |
| style | string | Font style name. |
| height | number | Font 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:
| Attribute | Type | Description |
|---|---|---|
| width | number | Horizontal stretch factor. Default is 1.0, which is the default aspect ratio for the font. |