Font File Inspector
Drop a TTF, OTF or TTC and read the family, version, glyph count, weight class, embedding permissions and per-table sizes straight from the OpenType tables.
The interactive tool loads here when JavaScript runs.
About this toolWhat is the Font File Inspector?
Drop a .ttf, .otf or .ttc and read what the font's own tables record: family, style and version strings from the name table, glyph count from maxp, units per em and dates from head, weight and width class plus the embedding permission bits from OS/2, how many characters the cmap actually maps, and every table with its byte size. Parsing happens in your tab; the font is never uploaded.
The embedding bits are the part with consequences. OS/2's fsType field is the licensing switch the OpenType spec defines: 0 means installable embedding, no restrictions; bit 1 means Restricted License embedding, a font that must not be embedded or exchanged without the owner's permission. PDF generators, Office and ebook toolchains read these bits and refuse or subset accordingly, so "why won't this PDF embed my font" is usually answered right here.
The structural facts matter for different reasons: glyph count and mapped-character count say what a font can actually render (6,196 glyphs covering 5,367 characters for the sample font), units per em is the grid every metric divides by, and the per-table sizes show where a 700 KB file spends its bytes. WOFF and WOFF2 are compressed wrappers around these same tables, so they are named as wrappers and pointed at a decompression step rather than half-parsed.
- Family, subfamily, full name, version, copyright, license and designer strings from the name table
- Glyph count (maxp), units per em and dates (head), weight and width class (OS/2)
- Embedding permissions decoded from fsType with the spec's meaning in plain words
- Mapped-character count from the best Unicode cmap subtable (format 4 or 12)
- Every table with its byte size, sorted, straight from the table directory
- TrueType collections (.ttc) listed face by face; WOFF and WOFF2 named as wrappers
- Runs entirely in your browser; fonts are never uploaded
Updated
How to use the Font File Inspector
- Drop a .ttf, .otf or .ttc on the page, or click to choose one. Collections list every face they contain.
- Or press Load the sample font to inspect DejaVu Sans Bold, the font this site's own PDF reports embed.
- Read the identity row: family and style, outline flavor (TrueType or CFF), glyph count and units per em.
- Check the embedding line before you ship the font anywhere: installable and editable are safe for PDF embedding, preview-and-print limits what readers may do, and restricted means ask the foundry first.
- Use the mapped-characters figure to judge coverage: a display font mapping 220 characters will render Latin headlines and nothing else, whatever its marketing page says.
- Scan the table sizes when file weight matters: glyf or CFF dominating is normal; a huge post or name table is debug-grade metadata a subsetter would drop.
Worked examples
DejaVu Sans Bold, read from its tables
Input
The sample font (the repo's own PDF-report font, 689 KiB)
Output
DejaVu Sans Bold · TrueType glyphs · 6,196 glyphs · 2048 units/em · weight 700 (Bold) · maps 5,367 characters · installable embedding
Every figure is a table field: numGlyphs from maxp, unitsPerEm 2048 from head, usWeightClass 700 from OS/2, fsType 0 meaning installable, and the 5,367 mapped characters summed from the cmap's format-4 segments. The same numbers are pinned against this file in the site's test suite.
Where 689 KiB goes
Input
The same font's table directory
Output
glyf 508 KiB, post 59.8 KiB, GPOS 34.1 KiB, loca 24.2 KiB, hmtx 24.2 KiB, name 15.3 KiB ...
Outlines dominate, as they should. The 60 KiB post table carries glyph names that only tooling reads, and 15 KiB of name table holds long license texts: both are what font subsetters strip when a web build needs the file smaller.
An embedding refusal, explained by one field
Input
A foundry font whose PDF export keeps failing
Output
embedding: restricted: no embedding without permission
fsType bit 1 set. The spec's wording is that such a font "must not be modified, embedded or exchanged" without the legal owner's permission, and well-behaved PDF and Office exporters enforce it. The fix is a license upgrade or a different font, not a different exporter.
A WOFF2, named rather than mangled
Input
A .woff2 downloaded from a website build
Output
A WOFF2 file: Brotli-compressed; decompress to TTF/OTF first.
WOFF2 packages the same sfnt tables behind Brotli compression with transformed glyf and loca tables, per the W3C spec. Reading it raw would misreport everything, so the inspector names the wrapper and the one step needed, instead of printing wrong numbers confidently.
Background and insight
An OpenType font is a table directory plus tables, per the Microsoft OpenType specification. The first four bytes pick the flavor: 0x00010000 for TrueType outlines, "OTTO" for CFF (PostScript) outlines, "ttcf" for a collection holding several faces that share tables. Apple's older "true" tag appears in the wild and reads the same way, though the spec says new fonts should not use it. Each directory entry is a 4-byte tag, checksum, offset and length, which is where the per-table size breakdown comes from.
The tables this inspector reads each answer one question. name holds the strings (IDs 1 and 2 are family and subfamily, 5 the version, 0 the copyright, 13 the license text), with Windows-platform strings in UTF-16BE. head carries unitsPerEm, valid from 16 to 16384 with powers of two recommended for TrueType, and created/modified dates counted in seconds since 1904. maxp states numGlyphs. OS/2 has usWeightClass (100 Thin to 900 Black, 400 Regular, 700 Bold), usWidthClass, and fsType.
fsType's bits, per the spec: a value of 0 grants installable embedding; bit 1 (0x0002) is Restricted License embedding; bit 2 (0x0004) allows preview and print only; bit 3 (0x0008) allows editable embedding; bit 8 (0x0100) forbids subsetting; bit 9 (0x0200) restricts embedding to bitmaps only. Since version 3 of the OS/2 table the permission bits 0 to 3 are mutually exclusive. The cmap count comes from the best Unicode subtable, format 4 for the Basic Multilingual Plane or format 12 for full Unicode coverage: it is the number of characters mapped, which is always at most the glyph count, since ligatures, alternates and components have no character of their own.
Common use cases
Checking embedding rights before shipping a PDF or app
The fsType line says installable, editable, preview-and-print or restricted in plain words, which is the difference between shipping and a licensing problem.
Verifying what a font vendor delivered
Family, style, version string and glyph count confirm the files match the invoice, and the created/modified dates flag a stale build before it reaches production.
Judging language coverage honestly
Mapped-character count from the cmap is a hard number: a "multilingual" font mapping 400 characters does not cover your Cyrillic audience, and no specimen page beats the table.
Debugging why bold or italic looks synthetic
If the OS/2 weight class says 400 on a file named Bold, or macStyle disagrees with the subfamily name, the renderer is faking the style, and this page shows the mismatch.
Trimming web font weight
The per-table sizes show what a subsetter can win: glyph names in post, license prose in name and unused glyph ranges are the usual savings before WOFF2 compression even starts.
Tips and limitations
- Glyph count and character coverage are different numbers: ligatures, small caps and components are glyphs with no character of their own, so 6,196 glyphs mapping 5,367 characters is a healthy ratio, not an error.
- The mapped count reads the best Unicode cmap subtable (format 12 over format 4 when both exist). Format 4 covers only the BMP, so a font whose emoji live in plane 1 needs format 12 to report them.
- fsType is a statement of license, not a technical lock: tools choose to honor it. Treat the restricted bit as binding anyway, because the license it encodes is.
- Version strings in name ID 5 are free text; foundries put build metadata there. Compare it with the head table dates when you suspect two files claiming the same version differ.
- A .ttc collection shares outline tables between faces, so four faces can cost little more than one; inspecting it lists every face with its own names and metrics.
- unitsPerEm is the denominator for every metric in the font: 2048 is the TrueType convention and 1000 the CFF convention, and the spec allows 16 through 16384. A nonstandard value is legal but worth noticing, since some converters round badly against it.
Sources and further reading
- OpenType spec: OS/2 table, Microsoft Typography. usWeightClass, usWidthClass and the fsType embedding bits with their exact meanings
- OpenType spec: name table, Microsoft Typography. Name IDs 0 to 13 and the UTF-16BE encoding of Windows-platform strings
- OpenType spec: head table, Microsoft Typography. unitsPerEm range, the 1904 epoch for created/modified, and macStyle bits
- OpenType spec: cmap table, Microsoft Typography. Format 4 (BMP) and format 12 (full Unicode) subtables the character count reads
- WOFF2 (W3C Recommendation), W3C. The wOF2 signature and the Brotli requirement behind the wrapper refusal
Frequently asked questions
How do I check a font's embedding permissions?
Read fsType in its OS/2 table, which is what this inspector prints in words. Value 0 is installable embedding, no restrictions; bit 1 is Restricted License embedding, no embedding without the owner's permission; bits 2 and 3 are preview-and-print and editable embedding; bits 8 and 9 add no-subsetting and bitmap-only limits.
What does installable embedding mean in practice?
The most permissive grant the OpenType spec defines: the font may be embedded in documents and even permanently installed on the receiving system. For a PDF workflow it means full embedding and subsetting are fine. Restricted is the opposite end: reader software should refuse to embed it at all.
How many glyphs does a normal font have?
Whatever its coverage demands: a Latin-only text face often has 200 to 800, a workhorse like DejaVu Sans Bold has 6,196, and large CJK fonts run past 20,000. The structural limit is 65,535 because numGlyphs is a 16-bit field. Judge a font against its claimed language support, not against an absolute number.
What is the difference between a TTF and an OTF file?
Both are OpenType containers with the same table system; the first four bytes and the outline format differ. 0x00010000 marks TrueType outlines in glyf, "OTTO" marks CFF (PostScript) outlines. Features, naming and embedding bits work identically, so the practical differences are outline math and toolchain preferences.
What is units per em and why is it 1000 or 2048?
The design grid: every coordinate and metric in the font is expressed in these units per em square. The spec allows 16 to 16384 and recommends powers of two for TrueType, hence the 2048 convention there and 1000 in CFF practice. Point sizes scale metrics by size divided by unitsPerEm, so the value itself does not make a font bigger or smaller on screen.
Why does the character count differ from the glyph count?
Because the cmap maps characters to glyphs, and many glyphs have no character: ligatures like ffi, stylistic alternates, accented-letter components and the .notdef box. The mapped count is what you can type; the glyph count is what the font can draw once shaping picks variants.
Can this inspect WOFF or WOFF2 web fonts?
It names them and stops: wOFF is a zlib-compressed wrapper and wOF2 a Brotli-compressed one around the same tables, with WOFF2 additionally transforming glyf and loca. Reading those raw would produce wrong numbers, so convert to TTF/OTF first and drop the result here.
Is there an in-depth guide to the Font File Inspector?
Yes. “How to Read Binary Files Without Running Them” covers the background, how it works, common pitfalls and worked examples. Read the full guide.
Related Tools You May Like
Free, in-browser tools that pair well with this one.