OpenType Font TTF OTF
Back to index | Edit this page
TTF, OTF, OTC, TTC, WOFF
- Format Type : Font
- Endian Order : Big Endian
- Signature : OTTO / 0x00010000 / wOFF
Format Specifications
// TTF/OTF file format
// big endian
// tables directory
4 bytes (uint32) - sfntVersion // "OTTO" - OpenType fonts containing CFF data (version 1 or 2)
// 0x00010000 (65536) - OpenType fonts that contain TrueType outlines
2 bytes (uint16) - number of tables
2 bytes (uint16) - search range
2 bytes (uint16) - entry selector
2 bytes (uint16) - range shift
// table records
number_of_tables *
{
4 bytes (char) - table signature // e.g. "FFTM" or "GDEF"
4 bytes (uint32) - table checksum
4 bytes (uint32) - table offset
4 bytes (uint32) - table size
}
// table data
number_of_tables *
{
x bytes - table data
x bytes - padding
}
// WOFF file format // header 4 bytes (char) - signature // "wOFF" - Web Open Font Format 4 bytes (uint32) - "sfnt version" of the input font. // "OTTO" or 0x00010000 4 bytes (uint32) - total size of the WOFF file 2 bytes (uint16) - number of entries in directory of font tables 2 bytes (uint16) - reserved 4 bytes (uint32) - total size needed for the uncompressed font data // TODO
MultiEx BMS Script
Not written yet.
Notes and Comments
- File format is table based. Some of the table signatures are "DSIG", "GDEF", "GPOS", "0CFF", "FFTM", "cmap", "head", "OS/2", "GSUB", "glyf".
- Full list of tables is listed here.
- Every Pure TrueType font is OpenType font, but not every OpenType font is Pure TrueType font.
- Pure TrueType fonts are legacy and should be avoided.
- WOFF is basically a container for OTF/TTF with metadata and compression supported by all major browsers.
Games
List of games using this file format:
- Changeling (*.TTF) (PC)
- Doki Doki Literature Club! (*.TTF) (PC)
- Mindustry (*.WOFF \ *.TTF) (PC)
- Nina Aquila: Legal Eagle, Season One (*.TTF) (PC)
- Project Kat (*.TTF) (PC)
- Rigs of Rods (*.TTF) (PC)
- State of Decay 2 (*.TTF) (PC)
- SuperTuxKart (*.TTF \ *.OTF) (PC)
- many more...
Compatible Programs
- Glyphr Studio Online / Glyphr Studio Desktop
- High-Logic FontCreator
- High-Logic MainType
- Windows Font Viewer (fontview.exe)
See Also
- OpenType (Wikipedia)
- OpenType file format (Microsoft docs)
- The difference between TrueType and OpenType fonts
- WOFF file format (W3C)
Gallery
-
Windows Font Viewer
-
High-Logic FontCreator