About this tool
The Typography Anatomy & Variable Font Lab parses a real font file (TTF, OTF, WOFF, WOFF2) with opentype.js entirely in your browser and lets you inspect it the way a type designer would — glyph outlines as Bézier curves, the baseline/x-height/cap-height/ascender/descender grid a letterform sits on, and the raw kerning table for common problem pairs like AV, To and Ta.
For variable fonts, every registered axis (wght, wdth, slnt, ital, opsz, or a foundry's custom axis) gets a live slider. Dragging one doesn't reimplement font interpolation — opentype.js can't do that — it drives the browser's own FontFace API with real CSS font-variation-settings on live DOM text, so what you see is exactly what a browser would render.
A rasterization preview shows the same sample text against a light, mid-gray and dark background side by side, making it easy to spot how antialiasing and perceived weight shift with contrast — a font that looks fine on white can look thin or fuzzy in a dark UI.
The tool also surfaces which OpenType features the font actually ships — standard/discretionary ligatures, contextual alternates, tabular figures and friends — read directly from the GSUB and GPOS feature lists rather than guessed from the font's name.
Export panel gives you copy-ready CSS: an @font-face block, a font-variation-settings rule for your current axis values, and ascent-override/descent-override/line-gap-override percentages computed from the font's own metrics for a tighter fallback-font size match.
How to use this tool
Load a font
Drop or choose a .ttf, .otf, .woff or .woff2 file — parsing happens locally, the file never leaves your browser.
Inspect a glyph
Type a character to see its outline, control points and the baseline/x-height/cap-height guide lines scaled to your chosen preview size.
Check kerning
Scroll the kerning table for the built-in list of classic tight pairs (AV, To, Ta, Wa...) evaluated against the loaded font.
Move variable axes
If the font has an fvar table, drag its axis sliders (wght, wdth, slnt, ital, opsz or custom tags) to preview live, real browser-rendered text.
Compare backgrounds
Read the rasterization preview strip to see the sample text rendered on light, mid and dark backgrounds.
Export CSS
Copy the generated @font-face, font-variation-settings or fallback-metric-override blocks from the Export panel.
Use cases
Type-system audits
Confirm a webfont's actual metrics and kerning before committing to it, instead of trusting a specimen page.
Variable font QA
Sweep an axis end to end to catch glyphs that break or clip at extreme weight/width values before shipping.
Fallback-font tuning
Generate ascent/descent/line-gap overrides so a system-font fallback occupies the same vertical space as the webfont, reducing CLS.
Teaching type anatomy
Show students baseline, x-height and cap-height on a real glyph outline instead of a diagram.
Common mistakes
Mistake:Expecting the tool to animate real glyph-shape interpolation between axis values
Fix:opentype.js doesn't implement the gvar table, so shape interpolation isn't computed manually — instead the live preview delegates to the browser's own variable-font rendering via FontFace + font-variation-settings, which is accurate but only visible in the rendered preview text, not the static glyph-outline view.
Mistake:Confusing this tool with a text-styling generator
Fix:This tool analyzes a font file's real glyph anatomy, kerning and variable axes — it does not turn plain text into styled Unicode lookalikes; for that, use Unicode Font Styler.
Mistake:Assuming every font has kerning or variable axes
Fix:The kerning table reads 0 for any pair the font doesn't define, and the axis panel stays empty for static (non-variable) fonts — both are expected, not errors.
Frequently asked questions
What font formats can I load?
TTF, OTF, WOFF and WOFF2. Parsing runs entirely in your browser with opentype.js — the file is never uploaded anywhere.
How is this different from Unicode Font Styler?
Unicode Font Styler turns plain text into styled Unicode lookalikes (bold, script, fraktur...) for pasting into bios and nicknames — it doesn't touch real font files. This tool loads an actual font file and analyzes its glyph anatomy, kerning table, OpenType features and variable-font axes. Same catalog, unrelated purposes.
Does the variable-axis preview actually interpolate the glyph shapes?
The live text preview does, because it renders through the browser's own FontFace API with real CSS font-variation-settings — the same code path a production page would use. The static glyph-outline view does not interpolate shapes itself, since opentype.js doesn't implement variable-font outline interpolation (the gvar table); it shows the font's default master outline.
Why is the kerning table empty or all zeros?
Either the font doesn't define kerning at all (common for some display or icon fonts), or none of the built-in pairs (AV, To, Ta, Wa, LT...) happen to be kerned in that particular font. A zero value is a real result, not an error.
What are ascent-override, descent-override and line-gap-override for?
They're CSS font-metric-override descriptors for a fallback @font-face. Setting them to match the real font's metrics (as percentages of its unitsPerEm) makes a fallback system font occupy the same vertical space while the real font loads, reducing layout shift.
My font has no axis sliders — is that a bug?
No. Axis sliders only appear when the font has an fvar table (i.e. it's a variable font). A static font correctly shows no axes.
Does anything leave my browser?
No. Font parsing, glyph rendering, kerning lookup and CSS generation all run client-side; the loaded font file is never sent to a server.
Related guides
References & standards
Related tools
Aspect Ratio Calculator
Calculate dimensions and ratios for images and videos.
Border Radius Generator
Visually craft CSS border-radius values — including the advanced 8-value slash syntax for organic blob shapes — with a live preview and one-click copy.
Box Shadow Generator
Visual CSS box-shadow generator. Create beautiful shadows with live preview and copy the CSS code.
CSS Grid Generator
Visually build CSS Grid layouts — set columns, rows and gaps, see a live preview, and copy production-ready grid-template CSS.
CSS Spring Physics Generator
Generate natural CSS spring animations from stiffness, damping, mass, and velocity. Analytical damped-harmonic solution with settle-time estimation and cubic-bezier approximation.
Cubic Bezier / Easing Generator
Build a CSS cubic-bezier() timing function visually — drag control points, preview common presets, see the easing curve live, and copy the transition-timing-function CSS.