Conventions

Many data types, listed below, are used in the TrueType Open table formats. As with all other TrueType data types, the TrueType Open tables store multi-byte values in "Motorola order," with the most significant byte first.

Data types

Type

Description

uint8

Unsigned character (length = 8 bits)

uint16

Unsigned integer (length = 16 bits)

int16

Signed integer (length = 16 bits)

uint32

Unsigned long integer (length = 32 bits)

fixed32

Fixed point 16.16 number (length = 32 bits)

Tag

Array of four uint8s (length = 32 bits)

 

—used to identify a script, language system, feature, or baseline

GlyphID

Glyph index number, same as uint16 (length = 16 bits)

Offset

Offset to a table, same as uint16 (length = 16 bits)

 

—NULL offset = 0x0000