

The first of the tables is the font directory, a special table that facilitates access to the other tables in the font. Each table must be long aligned and padded with zeroes if necessary. TrueType Font files: an overviewĪ TrueType font file consists of a sequence of concatenated tables.

This means it can represent numbers between 1.999 (0x7fff) and -2.0 (0x8000). NOTE: A shortFrac is an int16_t with a bias of 14. It is represented as a signed 64-bit integer. The long internal format of a date in seconds since 12:00 midnight, January 1, 1904. Table 1 : The 'sfnt' data types Data typeġ6-bit signed integer that describes a quantity in FUnits, the smallest measurable distance in em space.ġ6-bit unsigned integer that describes a quantity in FUnits, the smallest measurable distance in em space.ġ6-bit signed fixed number with the low 14 bits representing fraction. In addition to standard integer data types, the TrueType font format uses the following: For convenience in accessing the information presented in this chapter, tables are described in alphabetical order. With the exception of the font directory which must appear first in the font file, the tables that make up a font can appear in any order.

Table 1 describes the data types used in TrueType font files on all platforms. This chapter documents the tables that make up a TrueType font file, including AAT extensions to the core TrueType specification.ĝocumentation is not included for OpenType-specific tables, even those supported on OS X and iOS.ğor further information on those tables, see the OpenType specification.
