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
// table 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
x bytes - table records
// TODO
// 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 chunk based. Some of the chunk signatures are "DSIG", "GDEF", "GPOS", "0CFF", "FFTM", "cmap", "head", "OS/2", "GSUB", "glyf".
- 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.
Games
List of games using this file format:
- Doki Doki Literature Club! (*.TTF) (PC)
- Mindustry (*.WOFF \ *.TTF) (PC)
- Project Kat (*.TTF) (PC)
- State of Decay 2 (*.TTF) (PC)
- SuperTuxKart (*.TTF \ *.OTF) (PC)
- many more...
Compatible Programs
- 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
Gallery
-
Windows Font Viewer
-
High-Logic FontCreator