ISO/IEC 14496-22:2026
(Main)Information technology — Coding of audio-visual objects — Part 22: Open font format
- Abstract
This document specifies the Open Font Format (OFF) specification, including the TrueType and Compact Font Format (CFF) outline formats. Many references to both TrueType and PostScript exist throughout this document, as Open Font Format fonts combine the two technologies. The document defines data structures for various font tables and provides the necessary details for developers to build a font rendering and text layout/shaping engines in compliance with this document.
- Status
- Published
- Publication Date
- 15-Jul-2026
- Technical Committee
- ISO/IEC JTC 1/SC 29 - Coding of audio, picture, multimedia and hypermedia information
- Drafting Committee
- ISO/IEC JTC 1/SC 29/WG 3 - MPEG Systems
- Current Stage
- 6060 - International Standard published - 60 Publication
- Start Date
- 16-Jul-2026
- Due Date
- 11-Aug-2026
- Completion Date
- 11-Aug-2026
ISO/IEC 14496-22:2026 is an International Standard published by ISO that specifies the Open Font Format (OFF), including the TrueType and Compact Font Format (CFF) outline formats. It defines the font tables, data structures and layout data needed to build OFF-compliant font rendering and text layout/shaping engines for digital typography.
What does ISO/IEC 14496-22:2026 specify?
ISO/IEC 14496-22:2026 specifies the OFF file format for font data, including TrueType outlines, CFF and CFF2 outlines, color and bitmap glyph data, SVG glyph descriptions, advanced layout data and font variations. It is organized so implementers can parse the file structure, map characters to glyphs, read font metrics, and process layout data consistently.
The document is arranged in nine main clauses plus four informative annexes:
| Annex | What it covers |
|---|---|
| Annex A | IBM font family classifications |
| Annex B | Earlier versions of OS/2 - OS/2 and Windows metrics |
| Annex C | OFF Mirroring Pairs List |
| Annex D | Comparison of 'glyf', 'CFF ' and 'CFF2' tables |
Clause 4 describes the Open Font file format, clause 5 covers the font tables, clause 6 covers OFF advanced layout tables, clause 7 covers OFF font variations, and clauses 8 and 9 give recommendations for OFF fonts and general recommendations.
The standard focuses on font data and layout metadata. The introduction says that detailed shaping algorithms for individual scripts, and complete block-level layout, are outside its scope and are handled by other specifications or applications.
What are the key requirements of ISO/IEC 14496-22:2026?
ISO/IEC 14496-22:2026 gives the rules for how an OFF font is structured, how characters map to glyphs, how glyphs are described, and how layout and variation data are encoded. For implementers, the practical effect is that a renderer or font editor must interpret the same tables, tags and metrics in the same way as other compliant software.
File structure and basic encoding
Clause 4.3 defines the data types used in OFF files and states that all OFF fonts use big-endian byte order. That matters because every parser must read multi-byte values in network byte order or the file will be misread.
Clause 4.2 allows the extensions .OTF, .TTF, .OTC and .TTC, with .OTC and .TTC used for font collection files. In practice, this helps software recognize whether it should expect a single font or a collection of fonts in one file.
Clause 4.4 defines table version number types and the font-level sfntVersion in the table directory. That lets software check table formats and handle compatibility correctly.
Clause 4.5 defines the top-level OFF organization, including the table directory, table records and checksum calculation. This is the foundation for validating that the font tables are present and intact.
Clause 4.6 defines font collections. For users, this is what enables one file to carry multiple related fonts while sharing common data.
Character mapping, naming and metrics
Clause 5.1.2 defines the 'cmap' table, including platform IDs, encoding IDs and subtable formats. For Unicode fonts on Windows, the standard distinguishes BMP-only mapping from full-repertoire mapping, and it uses a format 14 subtable for Unicode variation sequences. That matters because the wrong 'cmap' choice can leave characters unmapped or variation sequences unsupported.
Clause 5.1.7 defines the 'name' table, including the family, subfamily, full name, PostScript name and typographic family strings. It also gives the guidance that name IDs 16 and 17 are used for extended typographic families and that name IDs 21 and 22 support WWS naming. In practice, this is what makes fonts sort correctly in menus and behave predictably across platforms.
Clause 5.1.8 defines the OS/2 - OS/2 and Windows metrics table. Important fields include width, weight, script coverage, line metrics and style bits such as ITALIC, BOLD, USE_TYPO_METRICS, WWS and OBLIQUE. These fields affect line spacing, style matching and how applications classify the font.
Glyph outlines and rendering data
Clause 5.1.6 defines maxp, which records the number of glyphs and the maxima needed for instruction processing. Clause 5.1.5 defines horizontal metrics, and clause 5.1.3 defines the font header. Together, these tables tell a renderer how many glyphs exist and how to place them.
Clause 5.2 covers TrueType outline tables such as 'cvt ', 'fpgm', 'glyf', 'loca', 'prep' and 'gasp'. These are the tables that carry TrueType outlines, hinting data and scan-conversion behavior, so they are the core data for TrueType font rendering.
Clause 5.3 covers CFF and CFF2 outline tables. The document states that a CFF2 font uses one CharString per glyph, that glyph 0 is the .notdef glyph, and that CFF2 metrics are handled through the OFF metrics tables. That matters for fonts that use PostScript-style outlines rather than TrueType outlines.
Clause 5.4 defines the SVG table for glyphs drawn as SVG documents. Clause 5.5 defines bitmap glyph tables such as EBDT, EBLC, EBSC, CBDT, CBLC and sbix. Together, these clauses let a font carry outlines, bitmaps, color glyphs or SVG artwork, depending on the intended rendering behavior.
Layout and variation behavior
Clause 6 defines OFF advanced layout tables, including BASE, GDEF, GPOS, GSUB, JSTF and MATH. These tables carry script, language, substitution, positioning, justification and math layout data, which are the parts applications need for correct text shaping.
Clause 7 defines OFF font variations, including the variation space, normalization, interpolation, tuple variation stores, item variation stores and the variation tables avar, cvar, fvar, gvar, HVAR, MVAR, STAT, VVAR and VARC. In practice, this is the machinery behind variable fonts, where one font file can produce multiple instances along design axes.
Clauses 8 and 9 give recommendations on table ordering, style bits, baseline distances, embedded bitmaps, CJK fonts, stroke reduction in variable fonts and optical size variants. These are guidance for better interoperability and presentation quality rather than the core file structure.
What terms does ISO/IEC 14496-22:2026 define?
- OFF - Open Font Format, the font file format specified by the standard.
- CFF - Compact Font Format, a PostScript-style outline format used in OFF fonts.
- CFF2 - Compact Font Format version 2, used for variable and modern CFF-based fonts in OFF.
- TTC - TrueType collection, a collection file that can hold multiple fonts and shared data.
- UVS - Unicode variation sequence, a character-plus-variation-selector sequence mapped through the 'cmap' table.
- WWS - Weight/Width/Slope, the naming model used for family grouping and related name IDs.
- PPM, PPEM - pixels per em, the screen or device size unit used in font rendering.
- UCS - universal character set, the character repertoire referenced by ISO/IEC 10646.
Who uses ISO/IEC 14496-22:2026?
ISO/IEC 14496-22:2026 is used by font foundries, type designers, font tool developers, rendering-engine developers and text layout or shaping-library developers. These users need it to build, test and exchange fonts that behave consistently across platforms.
It is also used by application developers who need to display text, choose fonts, handle variable fonts, support multilingual scripts or render color glyphs. Quality managers and technical buyers use it to check whether a supplied font package includes the expected tables, naming data, metrics and layout features.
Platform teams and compatibility testers use it when validating font collections, Unicode coverage, style linking and metadata for menu display or document interchange.
What changed in ISO/IEC 14496-22:2026 from the previous edition?
ISO/IEC 14496-22:2026 is the fifth edition and cancels and replaces ISO/IEC 14496-22:2019. It also incorporates ISO/IEC 14496-22:2019/Amd.1:2020 and ISO/IEC 14496-22:2019/Amd.2:2023.
The foreword states that the main changes are:
- new technology clauses were added
- many existing clauses, subclauses, tables, figures and annexes were editorially revised
Which standards are used with ISO/IEC 14496-22:2026?
- ISO/IEC 10646 - provides the Universal Coded Character Set used for character encoding in OFF.
- The Unicode Standard, Version 15.1.0 - provides the Unicode repertoire and text semantics that OFF is primarily designed to support.
- ISO/IEC 15948 - provides the PNG functional specification, used where bitmap image content is carried in the font environment.
- IEC 61966-2-1/Amd 1:2003 - provides the sRGB default RGB colour space used for colour management.
- TrueType Instruction Set - defines the TrueType hinting instructions used by TrueType outline data.
- Scalable Vector Graphics (SVG) 1.1 (Second edition) - defines the SVG language used by the SVG table.
What does the ISO/IEC 14496-22:2026 document contain?
ISO/IEC 14496-22:2026 contains detailed definitions for the OFF file structure, including the table directory, table records, checksums and font collections. It then gives table-by-table descriptions for character mapping, headers, metrics, naming, TrueType outlines, CFF/CFF2 outlines, SVG glyphs, bitmap glyphs and optional metadata and device-metric tables.
The document also includes advanced layout formats, layout tag registries, and the data structures used for variable fonts, including interpolation examples and the associated variation stores. Some clauses provide worked examples, such as CFF2 operand encoding, CFF2 variation data, SVG glyph record organization and naming examples for font families.
Figures and tables are used throughout to show horizontal and vertical metrics, glyph placement, bitmap metrics, and the relationships between glyph data tables. Annex D gives a comparison of the 'glyf', 'CFF ' and 'CFF2' table approaches, which helps readers choose or implement the right outline format.
Relations
- Effective Date
- 19-Aug-2023
- Effective Date
- 19-Aug-2023
- Effective Date
- 19-Aug-2023
Get Certified
Connect with accredited certification bodies for this standard

BSI Group
BSI (British Standards Institution) is the business standards company that helps organizations make excellence a habit.

NYCE
Mexican standards and certification body.
Sponsored listings
Frequently Asked Questions
ISO/IEC 14496-22:2026 is a standard published by the International Organization for Standardization (ISO). Its full title is "Information technology — Coding of audio-visual objects — Part 22: Open font format". This standard covers: This document specifies the Open Font Format (OFF) specification, including the TrueType and Compact Font Format (CFF) outline formats. Many references to both TrueType and PostScript exist throughout this document, as Open Font Format fonts combine the two technologies. The document defines data structures for various font tables and provides the necessary details for developers to build a font rendering and text layout/shaping engines in compliance with this document.
This document specifies the Open Font Format (OFF) specification, including the TrueType and Compact Font Format (CFF) outline formats. Many references to both TrueType and PostScript exist throughout this document, as Open Font Format fonts combine the two technologies. The document defines data structures for various font tables and provides the necessary details for developers to build a font rendering and text layout/shaping engines in compliance with this document.
ISO/IEC 14496-22:2026 is classified under the following ICS (International Classification for Standards) categories: 35.040.40 - Coding of audio, video, multimedia and hypermedia information. The ICS classification helps identify the subject area and facilitates finding related standards.
ISO/IEC 14496-22:2026 has the following relationships with other standards: It is inter standard links to ISO/IEC 14496-22:2019/Amd 1:2020, ISO/IEC 14496-22:2019/Amd 2:2023, ISO/IEC 14496-22:2019. Understanding these relationships helps ensure you are using the most current and applicable version of the standard.
ISO/IEC 14496-22:2026 is available in PDF format for immediate download after purchase. The document can be added to your cart and obtained through the secure checkout process. Digital delivery ensures instant access to the complete standard document.
Standards Content (Sample)
Contents
- Introduction
- 1 Scope
- 2 Normative references
- 3 Terms, definitions and abbreviated terms
- 3.1 Terms and definitions
- 3.2 Abbreviated terms
- 4 The Open Font file format
- 4.1 Description
- 4.2 Filenames
- 4.3 Data types
- 4.4 Table version numbers
- 4.5 Top-level OFF organization
- 4.6 Font collections
- 5 Open font tables
- 5.1 Required common tables
- 0 Unicode Various
- 1 Macintosh Script manager code
- 2 ISO [deprecated] ISO encoding [deprecated]
- 3 Windows Windows encoding
- 4 Custom Custom
- 0 Unicode 1.0 semantics—deprecated
- 1 Unicode 1.1 semantics—deprecated
- 2 ISO/IEC 10646 semantics—deprecated
- 3 Unicode 2.0 and onwards semantics, Unicode BMP only
- 4 Unicode 2.0 and onwards semantics, Unicode full repertoire
- 1 Font Family name. The Font Family name is used in combination with Font Subfamily
- 2 Font Subfamily name. The Font Subfamily is used in combination with Font Family name
- 3 Unique font identifier
- 4 Full font name that reflects all family and relevant subfamily descriptors. The full font
- 6 PostScript name for the font; Name ID 6 specifies a string which is used to invoke a
- 7 Trademark; this is used to save any trademark notice/information for this font. Such
- 10 Description; description of the typeface. Can contain revision information, usage
- 11 URL Vendor; URL of font vendor (with protocol, e.g. http://, ftp://). If a unique serial
- 13 License Description; description of the license or licenses under which the font is
- 16 Typographic Family name: The typographic family grouping does not impose any
- 17 Typographic Subfamily name: This allows font designers to specify a subfamily name
- 18 Compatible Full (Macintosh only); On the Macintosh, the menu name is constructed using
- 20 PostScript CID findfont name; Its presence in a font means that the nameID 6 holds a
- 22 WWS Subfamily Name. Used in conjunction with ID 21, this ID provides a WWS-
- 25 Variations PostScript Name Prefix. If present in a variable font, it may be used as the
- 1. The name the user sees. Times New Roman
- 2. The name of the style. Bold
- 6. The name the font will be known by on a PostScript printer. TimesNewRoman-Bold
- 8. Manufacturer. Monotype Corporation
- 9. Designer. Stanley Morison
- 11. URL of Vendor. http://www.monotype.com
- 12. URL of Designer. http://www.monotype.com
- 14. License Info URL. http://www.monotype.com/license/
- 22. WWS subfamily name: Since Times New Roman is a WWS font, this field does not need to be
- 0 Unicode Various None
- 1 Macintosh Script manager code Various
- 3 Windows Windows encoding Various
- 0 Unicode 1.0 semantics—deprecated
- 1 Unicode 1.1 semantics—deprecated
- 2 ISO/IEC 10646 semantics—deprecated
- 3 Unicode 2.0 and onwards semantics, Unicode BMP only
- 4 Unicode 2.0 and onwards semantics, Unicode full repertoire
- 0 Roman 17 Malayalam
- 1 Japanese 18 Sinhalese
- 2 Chinese (Traditional) 19 Burmese
- 3 Korean 20 Khmer
- 4 Arabic 21 Thai
- 5 Hebrew 22 Laotian
- 6 Greek 23 Georgian
- 7 Russian 24 Armenian
- 8 RSymbol 25 Chinese (Simplified)
- 9 Devanagari 26 Tibetan
- 10 Gurmukhi 27 Mongolian
- 11 Gujarati 28 Geez
- 12 Odia 29 Slavic
- 13 Bangla 30 Vietnamese
- 14 Tamil 31 Sindhi
- 15 Telugu 32 Uninterpreted
- 16 Kannada
- 0 Symbol
- 1 Unicode BMP
- 2 ShiftJIS
- 3 PRC
- 5 Wansung
- 6 Johab
Introduction
Multimedia applications require a broad range of media-related standards. In addition to the typical audio and video applications, multimedia presentations include scalable 2D graphics and text supporting all languages of the world. Faithful reproduction of scalable multimedia content requires additional components including scalable font technology. The Open Font Format is a widely supported format for font
data with a rich set of capabilities for digital typography. It is based on the OpenType® font format, which
was originally developed as an extension of the TrueType™ font format, using the same 'sfnt' container structure, and maintaining compatibility for fonts created following the original TrueType specification. But several additional capabilities are also supported, including the following:
Glyph outline data can use the CFF or CFF version 2 (“CFF2”) formats, as well as the TrueType glyph format.
Multicolour glyph presentation is supported using embedded colour bitmaps or SVG documents, or using 2D graphic compositions defined in the font using a binary format that combines outlineformat glyphs with various graphics operations. All Unicode® characters can be supported, including supplementary-plane characters, as well as Unicode variation sequences.
Advanced Open Font Layout tables provide the advanced typographic capabilities needed for highquality typography as well as for international text using the wide variety of scripts supported in The Unicode Standard®.
The mathematical typesetting table allows a font to include data required for layout of complex, math formulas.
Open Font collection files enable multiple fonts that share common data to be housed within a single file, allowing for de-duplication of data. This is especially useful, for example, for sets of CJK (Chinese, Japanese, Korean) fonts of the same design that share most glyphs in common but that vary with locale-specific glyphs for certain characters.
Font variations (“variable fonts”) enable glyph outlines or other font data to be variable based on one or more design-axis parameters. Whereas a collection file can contain multiple discrete, static font resources, a variable font can provide continuous variation in design along each of its axes. This can provide great flexibility for content authors and designers while also allowing the font data for an entire font family to be represented in an efficient format.
This specification is intended to be used in conjunction with other specifications described below:
While various legacy character encoding standards are supported, it is primarily designed for use with The Unicode Standard, which provides the universal encoding for written characters and symbols, as well as specifications for how text in different scripts is to be represented.
OpenType® is the registered trademark of a product supplied by Microsoft. This information is given for the convenience of users of this document and does not constitute an endorsement by ISO or IEC of this product.
TrueType™ is the trademark of a product supplied by Apple Inc. This information is given for the convenience of users of this document and does not constitute an endorsement by ISO or IEC of this product.
ISO/IEC 14496-22:2026(en) This specification defines Advanced Open Font Layout tables and low-level glyph substitution and positioning operations needed for high-quality typography and for correct display of Unicode text in various scripts. (See 6.1.1.) The OpenType Layout feature registry defines various features that represent specific typographic capabilities that can be supported in a font, and that are used to activate those capabilities in a given font. Many features expose optional capabilities that authors and typographers can choose to use at their discretion; for example, small cap forms, or kerning. But many other features are used to activate capabilities that are required for correct display of text; for example, required ligatures for Arabic script, or positioning of mark glyphs. Many scripts supported in Unicode have complex structural behaviors that require non-trivial operations, implemented in applications or in text layout and “shaping” libraries, to derive a correct sequence of positioned glyphs for presentation of an underlying Unicode string. The feature registry will include features that can be used in those operations. However, complete specification of shaping algorithms for different scripts is beyond the scope of this specification. Such algorithms can be proprietary, “closed-source” implementations in particular applications; or they can be defined in vendor-specific specifications or in other industry specifications.
Support for mathematical text involving complex formulas requires a content format to describe text semantics combined with layout and presentation capabilities. This specification defines the fontspecific data that would be needed for presentation. In this way, the Open Font Format can be used to implement presentation capabilities for other document format specifications, such as TEX or MathML. Certain features can be defined in the Advanced Open Font Layout feature tag registry to support math layout operations.
Text layout involves operations within individual lines of text but also control over arrangement of lines into larger blocks within a page or similar context. This specification defines certain data that is used in block-level layout, such as default line metrics (ascent, descent, leading). Also, certain features can be defined in the Advanced Open Font Layout feature tag registry to support layout of text blocks for either horizontal or vertical layout orientation. Complete specification of block level layout is beyond the scope of this specification, however. It can be used in conjunction with other specifications, such as Unicode Standard Annex #50: Unicode Vertical Text Layout. Some font capabilities can be subject to tailoring by applications or other higher-level protocols. For example, the TrueType instructions defined in this specification define operations used in rasterization of glyph outlines, but applications can supplement their own algorithms for final rasterization (for example, using over-sampling, or control of sub-pixel display elements) to optimize legibility of glyphs. Also, while the descriptions of features in the Advanced Open Font Layout feature tag registry can specify expected usage, applications may tailor their usage of features subject to other specifications or according to their own needs.
International Standard ISO/IEC 14496-22:2026(en) Information technology — Coding of audio-visual objects — Part 22:
Open font format
1 Scope
This document specifies the Open Font Format (OFF) specification, including the TrueType and Compact Font Format (CFF) outline formats. Many references to both TrueType and PostScript exist throughout this document, as Open Font Format fonts combine the two technologies. The document defines data structures for various font tables and provides the necessary details for developers to build a font rendering and text layout/shaping engines in compliance with this document.
2 Normative references
The following documents are referred to in the text in such a way that some or all of their content constitutes requirements of this document. For dated references, only the edition cited applies. For undated references, the latest edition of the referenced document (including any amendments) applies. ISO/IEC 10646, Information technology — Universal Coded Character Set (UCS) ISO/IEC 15948, Information technology — Computer graphics and image processing — Portable Network
Graphics: Functional specification IEC 61966-2-1/Amd 1:2003: Multimedia systems and equipment — Colour measurement and management - Part 2-1: Colour management — Default RGB colour space — sRGB. TrueType Instruction Set, http://www.microsoft.com/typography/otspec/ttinst.htm The Unicode Standard, Version 15.1.0, http://www.unicode.org/versions/Unicode15.1.0/ Scalable Vector Graphics (SVG) 1.1 (Second edition), W3C Recommendation, 16 August 2011 http://www.w3.org/TR/SVG11/
3 Terms, definitions and abbreviated terms
3.1 Terms and definitions
ISO and IEC maintain terminology databases for use in standardization at the following addresses:
- ISO Online browsing platform: available at https://www.iso.org/obp
- IEC Electropedia: available at https://www.electropedia.org/
Also available as a W3C Recommendation (Reference [15]).
ISO/IEC 14496-22:2026(en)
3.2 Abbreviated terms
ACF average character face ANSI American National Standards Institute ASCII American Standard Code for Information Interchange BMP [Unicode] basic multilingual plane BTBD baseline to baseline distance CFF compact font format CID character identifier CJK Chinese Japanese Korean [characters, ideographs, fonts, etc.] CJKV Chinese Japanese Korean and Vietnamese CV control value CVT control value table DLL dynamically linked library FDEF function definition GID glyph ID ICF ideographic character face IDEF instruction definition IETF Internet Engineering Task Force JIS Japanese Industrial Standard LTR left to right NLC National Language Council of Japan open font format OFF OMPL OFF mirroring pairs list OTF OpenType font PCL printer control language PPM, PPEM pixels per em RTL right to left TTC TrueType collection TTF TrueType font UCS universal character set UTF Unicode transformation format UVS Unicode variation sequence VM virtual memory W3C world wide web consortium
ISO/IEC 14496-22:2026(en)
4 The Open Font file format
4.1 Description
An Open Font file contains data, in table format, used for rendering of text. Portions of the data are used by applications to calculate the layout of text using the font; that is, the selection of glyphs and their placement within a line. Other data provide descriptions of glyphs as TrueType or Compact Font Format (CFF) outlines. Still other data can provide monochromatic or colour bitmaps, SVG documents or binary, 2D vector graphics compositions as alternate glyph descriptions. The font data also includes meta-information, such as name strings that can used to present the font as an available choice in a font-picker user interface. Each of these types of data is stored in one or more tables each designed for a particular purpose. References to the Universal Coded Character Set and the Unicode Standard are used throughout this document; the implementations of the OFF shall conform to character encoding systems specified in ISO/IEC 10646 and the Unicode Standard and cannot meet the requirements of this document without strict adherence to these standards.
4.2 Filenames
OFF font files may have the extension .OTF, .TTF, .OTC or .TTC (the extension may be upper or lower case). The extensions .OTC and .TTC should only be used for font collection files. For additional information on filename extension conventions, see subclause 8.3.
4.3 Data types
The following data types are used in the OFF font file. All OFF fonts use big-endian (network) byte order:
Data Type Description uint8 8-bit unsigned integer.
int8 8-bit signed integer.
uint16 16-bit unsigned integer.
int16 16-bit signed integer.
uint24 24-bit unsigned integer.
uint32 32-bit unsigned integer.
int32 32-bit signed integer.
uint32var Encodes a 32-bit integer (uint32) in a variable number of bytes. Fixed 32-bit signed fixed-point number (16.16) FWORD int16 that describes a quantity in font design units.
UFWORD uint16 that describes a quantity in font design units.
F2DOT14 16-bit signed fixed number with the low 14 bits of fraction (2.14).
ISO/IEC 14496-22:2026(en) Data Type Description F4DOT12 16-bit signed fixed number with the low 12 bits of fraction (4.12). F6DOT10 16-bit signed fixed number with the low 10 bits of fraction (6.10). LONGDATETIME Date and time represented in number of seconds since 12:00 midnight, January 1, 1904, UTC. The value is represented as a signed 64-bit integer.
Tag Array of four uint8s (length = 32 bits) used to identify a table, designvariation axis, script, language system, feature, or baseline. TupleValues A version of Packed Deltas supporting 32-bit values. Offset8 8-bit offset to a table, same as uint8, NULL offset = 0x00 Offset16 Short offset to a table, same as uint16, NULL offset = 0x0000 Offset24 24-bit offset to a table, same as uint24, NULL offset = 0x000000 Offset32 Long offset to a table, same as uint32, NULL offset = 0x00000000 Version16Dot16 Packed 32-bit value with major and minor version numbers. (See 4.4.) The F2DOT14 format consists of a signed, 2's complement integer and an unsigned fraction. To compute the actual value, take the integer and add the fraction. Examples of 2.14 values are:
Decimal Value Hex Value Integer Fraction 1.999939 0x7fff 1 16383/16384 1.75 0x7000 1 12288/16384 0.000061 0x0001 0 1/16384 0.0 0x0000 0 0/16384 -0.000061 0xffff -1 16383/16384 -2.0 0x8000 -2 0/16384 The F4DOT12 and F6DOT10 formats work the same way as F2DOT14 but have a larger integer and less precision in the unsigned fraction part.
A Tag value is a uint8 array. Each byte within the array shall have a value in the range 0x20 to 0x7E. This corresponds to the range of values of Unicode Basic Latin characters in UTF-8 encoding, which is the same as the printable ASCII characters. As a result, a Tag value can be re-interpreted as a four-character sequence, which is conventionally how they are referred to. Formally, however, the value is a byte array. When reinterpreted as characters, the Tag value is case sensitive. It shall have one to four non-space characters, padded with trailing spaces (byte value 0x20). A space character shall not be followed by a non-space character.
ISO/IEC 14496-22:2026(en) The uint32var format is an efficient and compact encoding of uint32 values, using from one to five bytes to store a single value.
Values are decoded as follows:
If the current byte’s most significant bit (0x80) is zero, return the value. Otherwise, the most significant bits are taken to indicate the number of bytes to follow, as indicated in the following table; the values are stored with the first byte being the most significant. Bits Meaning 0x80 0x40 0x20 0x10 (1000 (0100 (0010 (0001 0000) 0000) 0000) 0000) (any (any (any zero All 7 remaining bits are the value value) value) value) One byte follows; the low 6 bits of the first are shifted left 8 (any (any 1 0 bits (multiplied by 256) and the single following byte is value) value) added.
Two bytes follow; the low 5 bits of the first are shifted left (any by 16 bits and added, then the following byte is shifted left 1 1 0 value) by 8 bits and added (bitwise “or”), and then the second following byte is added.
Three bytes follow; the low 4 bits of the first byte become 1 1 1 0 the most significant bits of the new value, as above.
Four bytes follow; the low 4 bits of the first byte become the most significant bits of the new value, as above. The 1 1 1 1 least significant 4 bits of the initial byte shall be zero in this case to prevent overflow.
The following pseudo-code illustrates how to read and write uint32var-formatted variable-byte numbers that achieve greater compression in the font encoding context. def _readuint32var(data, i):
"""Read a variable-length number from data starting at index i. Return the number and the next index.
b0 = data[i] if b0 < 0x80:
return b0, i + 1 elif b0 < 0xC0:
ISO/IEC 14496-22:2026(en) return (b0 - 0x80) << 8 | data[i + 1], i + 2 elif b0 < 0xE0:
return (b0 - 0xC0) << 16 | data[i + 1] << 8 | data[i + 2], i + 3 elif b0 < 0xF0:
return (b0 - 0xE0) << 24 | data[i + 1] << 16 | data[i + 2] << 8 | data[ i + 3 ], i + 4 else:
return (b0 - 0xF0) << 32 | data[i + 1] << 24 | data[i + 2] << 16 | data[ i + 3 ] << 8 | data[i + 4], i + 5
def _writeuint32var(v):
"""Write a variable-length number.
Return the data.
if v < 0x80:
return struct.pack(">B", v) elif v < 0x4000:
return struct.pack(">H", (v | 0x8000)) elif v < 0x200000:
return struct.pack(">L", (v | 0xC00000))[1:] elif v < 0x10000000:
return struct.pack(">L", (v | 0xE0000000)) else:
return struct.pack(">B", 0xF0) + struct.pack(">L", v)
The TupleValues format is essentially the same as Packed Deltas (see 7.2.2.6) from the TupleVariationStore, but modified to allow storing 32-bit values. The flags DELTAS_ARE_ZERO and DELTAS_ARE_WORDS shall both be set in the control byte to indicate that the following values are interpreted as 32-bit values. TupleValues are used in two ways:
1. When the number of values to be decoded is known in advance, decoding stops when all the values are decoded.
2. When the number of values to be decoded is not known in advance, but the number of encoded bytes is known, then values are decoded until all the encoded bytes have been processed. Within this specification, many structures are defined in terms of the data types listed above. Structures are characterized as either records or tables. The distinction between records and tables is based on these general criteria:
- Tables are referenced by offsets. If a table contains an offset to a sub-structure, the offset is normally from the start of that table.
- Records occur sequentially within a parent structure, either within a sequence of table fields or within an array of records of a given type. If a record contains an offset to a sub-structure, that structure is logically a subtable of the record’s parent table and the offset is normally from the start of the parent table.
In some cases, fields for subtable offsets are documented as permitting NULL values when the given subtable is optional. For example, in the ‘BASE’ table header, the horizAxisOffset and vertAxisOffset fields may be NULL, meaning that either subtable (or both) is optional. A NULL subtable offset always indicates that the
ISO/IEC 14496-22:2026(en) given subtable is not present. Applications shall never interpret a NULL offset value as the offset to subtable data. For cases in which subtable offset fields are not documented as permitting NULL values, font compilers shall include a subtable of the indicated format, even if it is a header stub without further data (for example, a coverage table with no glyph IDs). Applications parsing font data should, however, anticipate nonconformant font data that has a NULL subtable offset where only a non-NULL value is expected.
4.4 Table version numbers
Most tables have version numbers, and the version number for the entire font is contained in the table directory. There are five different table version number types, each with its own numbering scheme. - A single uint16 field. This is used in a number of tables, usually with versions starting at zero (0). - Separate, uint16 major and minor version fields. This is used in a number of tables, usually with versions starting at 1.0.
- A uint32 field with enumerated values.
- A uint32 field with a numeric value. This is used only in the 'DSIG' and 'meta' tables.
- A Version16Dot16 field for major/minor version numbers. This is used only in the 'maxp', 'post' and 'vhea' tables.
...



