Skip to content

tables

Show font table information.

Quick Reference

bash
fontisan tables <font> [options]

Options

OptionDescription
--format FORMATOutput format (text, yaml, json)
--detailShow detailed table info
--checksumsInclude checksums

Output

Lists all tables in the font with:

  • Table tag (4-character identifier)
  • Checksum
  • Offset
  • Length

Examples

bash
# List all tables
fontisan tables font.ttf

# With checksums
fontisan tables font.ttf --checksums

# Detailed information
fontisan tables font.ttf --detail

# JSON output
fontisan tables font.ttf --format json

Sample Output

Tag    Checksum    Offset    Length
-----  ----------  --------  --------
head   0x12345678  0         54
hhea   0x23456789  54        36
maxp   0x3456789A  90        32
OS/2   0x456789AB  122       96
name   0x56789ABC  218       1024
cmap   0x6789ABCD  1242      2048
...

Common Tables

TagNamePurpose
headFont HeaderGlobal font info
hheaHorizontal HeaderHorizontal metrics
maxpMaximum ProfileFont requirements
OS/2OS/2Windows metrics
nameNamingFont names/strings
cmapCharacter MapUnicode to glyph mapping
glyfGlyph DataTrueType outlines
locaLocationGlyph offsets
CFF CFFCompact Font Format
postPostScriptPostScript names
GPOSGlyph PositioningOpenType positioning
GSUBGlyph SubstitutionOpenType substitution
fvarFont VariationsVariable font axes
gvarGlyph VariationsGlyph deltas
COLRColor LayersColor font layers
CPALColor PalettesColor font palettes

Detailed Documentation

For table access via the Ruby API, see the SfntFont API.

Fontisan is a [Ribose](https://open.ribose.com/) project