Skip to content
← Typography Tools

Font Metrics Inspector

Upload a TTF, OTF, WOFF or WOFF2 font and read its vertical metrics (hhea, OS/2 typo and Windows), x-height, cap-height, units-per-em, glyph count, variable axes and named instances, plus ready-made @font-face override descriptors.

Related Tools

Related Tool
Unicode Subset Preview
Related Tool
Font Loading Strategy
Related Tool
Optical Size Adjuster
Related Tool
Variable Font Playground

What font metrics tell you

Every font file contains a set of internal measurements that tell the rendering engine how to lay it out: ascent (height above the baseline), descent (depth below), x-height (height of lowercase x), cap-height (height of uppercase letters), units-per-em (the design grid resolution). These numbers are stored in the OS/2 and hhea tables of the font binary and accessed by browsers when rendering and by you when configuring fallbacks.

Two fonts at the same CSS font-size can look very different sizes because their internal metrics differ. The Inspector here parses the font binary in the browser and surfaces these numbers in a readable form. Knowing your font ex-height ratio (sxHeight divided by unitsPerEm) is what powers the font-size-adjust property and what makes layout-shift-free font swaps possible.

Variable font axes

If the font is a variable font, the Inspector also reads the fvar table to list every axis the font exposes: name, tag, min value, max value, default value. The five registered axes (wght for weight, wdth for width, opsz for optical size, slnt for slant, ital for italic) appear with their friendly names. Custom axes (GRAD on Roboto Flex, MONO and CASL on Recursive, SOFT and WONK on Fraunces) appear with their tag names.

This is useful when you receive a variable font from a designer and need to know what controls are available without opening it in a font editor. The Inspector also reports named instances if the font defines them: pre-baked locations on the variation space like Light, Regular, Bold.

Common Use Cases

Developers integrating a brand font use the Inspector to extract the metrics that feed @font-face descriptors: size-adjust, ascent-override, descent-override, and line-gap-override. Plug those into the @font-face block and the font behaves the same on every browser, with predictable line-heights and zero metric drift.

Performance engineers use the Inspector to compare file sizes across formats: the TTF, the WOFF, and the WOFF2 of the same font report different bytes-on-disk. Picking the smallest format that still ships everywhere your audience uses (WOFF2 plus a WOFF fallback for ancient browsers) saves real bandwidth.

Worked example: three fonts, same 16 px, different line boxes

On October 12, 2026 we read three TrueType files with the tool's own parser in Chromium and with fontTools 4.62.1: every value below matched. We also measured the height of a line of text at font-size 16px with line-height: normal.

FontUnits per emhhea ascender / descender / gapx-height / cap heightUSE_TYPO_METRICSLine box at 16 px
DejaVu Sans20481901 / −483 / 0not stored (OS/2 v1)off19 px
Liberation Sans (Arial-compatible)20481854 / −434 / 671082 / 1409off18 px
Poppins10001050 / −350 / 100548 / 698on25 px

Frequently Asked Questions

What is units-per-em?
units-per-em (often abbreviated UPM) is the design grid resolution of the font. Every glyph and metric inside the font is expressed in this unit. The CSS engine scales the entire grid to match the font-size you specify. A font with UPM 1000 designed for a 100-pixel glyph that should appear at 50-pixel font-size is automatically scaled. The Inspector reports UPM because it is the denominator in every other ratio you might want.
What is the difference between ascent and cap-height?
Ascent is the height the font designer reserved for any glyph in the font, including diacritics and accents above capitals. Cap-height is the height of the unaccented uppercase letters themselves. The difference is the space above the caps for hats and umlauts. For layout math, cap-height is usually more useful because it represents what users actually see when reading.
What does sxHeight in the OS/2 table mean?
sxHeight is the OS/2 field that records the height of the lowercase x in font units. Divide it by unitsPerEm to get the x-height ratio, which is what font-size-adjust works with. Fonts with an OS/2 table older than version 2, or whose designer left it at zero, have no usable value; the Inspector then shows "not in font" rather than guessing.
Can I see the glyph table?
No. The Inspector reports the glyph count along with the vertical metrics, units per em, variable axes and table list, but it does not draw the glyphs. To browse glyphs, open the font in a font editor or a glyph viewer.
Does this work with WOFF2?
Yes. WOFF2 fonts are Brotli-compressed, so the Inspector loads a Brotli decoder hosted on this site (only when you open a WOFF2 file), decompresses the font in your browser and then reads its tables. Nothing is uploaded.
How accurate are the measured metrics?
Exact, to the precision of the font binary. Most metrics are declared as integers in the font tables and the Inspector reads them as-is. For metrics that are computed (like ex-height from the actual x glyph bounding box when sxHeight is zero), the Inspector reports them to four decimal places. Any rounding is documented in tooltips.
What about kerning data?
The Inspector reports whether the font has a kern table or GPOS positioning rules, and the count of kern pairs. The actual per-pair adjustments are not shown by default because the volume is overwhelming for most fonts (5000+ pairs is common). A detail panel lets you query specific pairs like AV or To by typing them in.
Can I export a font metrics file for build automation?
Not as a file. The Inspector shows the metrics on the page and gives you one thing to copy: an @font-face block with ascent-override, descent-override and line-gap-override values for matching a fallback font. For automated checks in CI, read the font with a library such as fontTools.