harmonink

How it works

Every number below was set against a measured distribution, and each one is shown with the distribution it came from. If a constant looks arbitrary, the chart under it is the argument.

Why font-size lies

Set a word in any font and you can draw two lines through it. One runs along the top of the lowercase letters that have no ascender. The x in "x-height" is literally the letter x. The other runs along the baseline. The distance between them is very nearly the whole of what your eye reads. Ascenders and descenders help you tell letters apart, but the part you scan lives in that band.

font-size does not set that band. It sets the em box, an invisible square the designer draws inside. Where the letters sit in that square is their choice, and they do not agree with each other. Across these 103 faces the x-height runs from 0.306 to 0.720 of the em.

sans-serifAmatic SC — 0.66Atkinson Hyperlegible — 0.50Bungee — 0.72Comic Neue — 0.49DM Sans — 0.50Figtree — 0.50Inter — 0.55Itim — 0.44Klee One — 0.48Lato — 0.51Mali — 0.51Manrope — 0.54Monoton — 0.70Montserrat — 0.53Mulish — 0.50Noto Sans — 0.54Nunito — 0.49Nunito Sans — 0.49Open Sans — 0.54Oswald — 0.58Patrick Hand — 0.47Plus Jakarta Sans — 0.54Poppins — 0.55Raleway — 0.52Roboto — 0.53Roboto Condensed — 0.53Rubik — 0.52Ubuntu — 0.52Work Sans — 0.50serifAlegreya SC — 0.50Bitter — 0.53Cardo — 0.44Cinzel — 0.60Cinzel Decorative — 0.70Coming Soon — 0.54Cormorant Garamond — 0.39Cormorant SC — 0.47Courgette — 0.51Crimson Text — 0.42Domine — 0.54EB Garamond — 0.41Frank Ruhl Libre — 0.47Handlee — 0.49IM Fell English SC — 0.43Kalam — 0.51Libre Baskerville — 0.53Literata — 0.51Lora — 0.50Marcellus SC — 0.52Marck Script — 0.37Merriweather — 0.56Newsreader — 0.44Noto Serif — 0.54Playfair Display — 0.52PT Serif — 0.50Roboto Slab — 0.53Source Serif 4 — 0.49Spectral — 0.45Vollkorn — 0.46monospaceAnonymous Pro — 0.46Azeret Mono — 0.55Courier Prime — 0.45Cousine — 0.53Cutive Mono — 0.38DM Mono — 0.50Fira Mono — 0.53Geist Mono — 0.53IBM Plex Mono — 0.52Inconsolata — 0.46JetBrains Mono — 0.55Martian Mono — 0.60Monofett — 0.67Overpass Mono — 0.51Red Hat Mono — 0.49Roboto Mono — 0.53Rubik Mono One — 0.70Share Tech Mono — 0.50Source Code Pro — 0.49Space Mono — 0.50Ubuntu Mono — 0.46Victor Mono — 0.62handwritingAlex Brush — 0.42Architects Daughter — 0.47Bad Script — 0.52Caveat — 0.36Caveat Brush — 0.41Cookie — 0.37Covered By Your Grace — 0.49Dancing Script — 0.33Gloria Hallelujah — 0.53Gochi Hand — 0.49Great Vibes — 0.36Homemade Apple — 0.59Indie Flower — 0.39Kaushan Script — 0.47Nanum Pen Script — 0.48Pacifico — 0.47Permanent Marker — 0.59Sacramento — 0.31Satisfy — 0.41Schoolbell — 0.47Shadows Into Light — 0.60Yellowtail — 0.440.300.510.72
x-height as a fraction of the em box. Same font-size, very different reading sizes.median 0.50 · 103 faces

In practice that means at font-size: 16px these fonts render their reading band anywhere from 4.9px to 11.5px, a spread of 135%. Correcting it closes the gap to 16%.

sans-serifAmatic SC — 10.6pxAtkinson Hyperlegible — 7.9pxBungee — 11.5pxComic Neue — 7.9pxDM Sans — 8.1pxFigtree — 8.0pxInter — 8.7pxItim — 7.1pxKlee One — 7.7pxLato — 8.1pxMali — 8.2pxManrope — 8.6pxMonoton — 11.3pxMontserrat — 8.4pxMulish — 8.0pxNoto Sans — 8.6pxNunito — 7.9pxNunito Sans — 7.8pxOpen Sans — 8.6pxOswald — 9.2pxPatrick Hand — 7.5pxPlus Jakarta Sans — 8.6pxPoppins — 8.8pxRaleway — 8.3pxRoboto — 8.5pxRoboto Condensed — 8.5pxRubik — 8.3pxUbuntu — 8.3pxWork Sans — 8.0pxserifAlegreya SC — 8.1pxBitter — 8.5pxCardo — 7.0pxCinzel — 9.6pxCinzel Decorative — 11.2pxComing Soon — 8.7pxCormorant Garamond — 6.2pxCormorant SC — 7.5pxCourgette — 8.1pxCrimson Text — 6.8pxDomine — 8.6pxEB Garamond — 6.5pxFrank Ruhl Libre — 7.5pxHandlee — 7.9pxIM Fell English SC — 6.9pxKalam — 8.2pxLibre Baskerville — 8.5pxLiterata — 8.1pxLora — 8.0pxMarcellus SC — 8.4pxMarck Script — 6.0pxMerriweather — 8.9pxNewsreader — 7.0pxNoto Serif — 8.6pxPlayfair Display — 8.2pxPT Serif — 8.0pxRoboto Slab — 8.5pxSource Serif 4 — 7.9pxSpectral — 7.2pxVollkorn — 7.4pxmonospaceAnonymous Pro — 7.3pxAzeret Mono — 8.8pxCourier Prime — 7.2pxCousine — 8.5pxCutive Mono — 6.0pxDM Mono — 7.9pxFira Mono — 8.4pxGeist Mono — 8.5pxIBM Plex Mono — 8.3pxInconsolata — 7.3pxJetBrains Mono — 8.8pxMartian Mono — 9.6pxMonofett — 10.7pxOverpass Mono — 8.2pxRed Hat Mono — 7.8pxRoboto Mono — 8.5pxRubik Mono One — 11.2pxShare Tech Mono — 8.0pxSource Code Pro — 7.8pxSpace Mono — 7.9pxUbuntu Mono — 7.4pxVictor Mono — 9.9pxhandwritingAlex Brush — 6.7pxArchitects Daughter — 7.5pxBad Script — 8.2pxCaveat — 5.7pxCaveat Brush — 6.6pxCookie — 5.9pxCovered By Your Grace — 7.8pxDancing Script — 5.3pxGloria Hallelujah — 8.4pxGochi Hand — 7.8pxGreat Vibes — 5.7pxHomemade Apple — 9.4pxIndie Flower — 6.2pxKaushan Script — 7.6pxNanum Pen Script — 7.7pxPacifico — 7.5pxPermanent Marker — 9.4pxSacramento — 4.9pxSatisfy — 6.5pxSchoolbell — 7.6pxShadows Into Light — 9.7pxYellowtail — 7.1px4.5px8.3px12.0px
What 16px actually draws, before correction.median 8.0px · 103 faces
sans-serifAmatic SC — 10.5pxAtkinson Hyperlegible — 8.0pxBungee — 12.0pxComic Neue — 8.0pxDM Sans — 8.1pxFigtree — 8.0pxInter — 8.7pxItim — 8.0pxKlee One — 8.0pxLato — 8.1pxMali — 8.2pxManrope — 8.6pxMonoton — 10.4pxMontserrat — 8.4pxMulish — 8.0pxNoto Sans — 8.6pxNunito — 8.0pxNunito Sans — 8.0pxOpen Sans — 8.6pxOswald — 9.2pxPatrick Hand — 8.0pxPlus Jakarta Sans — 8.6pxPoppins — 8.8pxRaleway — 8.3pxRoboto — 8.5pxRoboto Condensed — 8.5pxRubik — 8.3pxUbuntu — 8.3pxWork Sans — 8.0pxserifAlegreya SC — 9.4pxBitter — 8.5pxCardo — 8.0pxCinzel — 10.3pxCinzel Decorative — 10.1pxComing Soon — 8.7pxCormorant Garamond — 8.0pxCormorant SC — 9.0pxCourgette — 8.1pxCrimson Text — 8.0pxDomine — 8.6pxEB Garamond — 8.0pxFrank Ruhl Libre — 8.0pxHandlee — 8.0pxIM Fell English SC — 8.0pxKalam — 8.2pxLibre Baskerville — 8.5pxLiterata — 8.1pxLora — 8.0pxMarcellus SC — 9.0pxMarck Script — 8.0pxMerriweather — 8.9pxNewsreader — 8.0pxNoto Serif — 8.6pxPlayfair Display — 8.2pxPT Serif — 8.0pxRoboto Slab — 8.5pxSource Serif 4 — 8.0pxSpectral — 8.0pxVollkorn — 8.0pxmonospaceAnonymous Pro — 8.0pxAzeret Mono — 8.8pxCourier Prime — 9.3pxCousine — 8.5pxCutive Mono — 8.0pxDM Mono — 8.0pxFira Mono — 8.4pxGeist Mono — 8.5pxIBM Plex Mono — 8.3pxInconsolata — 8.8pxJetBrains Mono — 8.8pxMartian Mono — 9.3pxMonofett — 12.0pxOverpass Mono — 8.2pxRed Hat Mono — 8.0pxRoboto Mono — 8.5pxRubik Mono One — 12.0pxShare Tech Mono — 8.0pxSource Code Pro — 8.0pxSpace Mono — 8.0pxUbuntu Mono — 9.0pxVictor Mono — 9.3pxhandwritingAlex Brush — 8.0pxArchitects Daughter — 8.0pxBad Script — 8.2pxCaveat — 8.0pxCaveat Brush — 8.0pxCookie — 8.0pxCovered By Your Grace — 8.0pxDancing Script — 8.0pxGloria Hallelujah — 8.4pxGochi Hand — 10.5pxGreat Vibes — 8.0pxHomemade Apple — 9.3pxIndie Flower — 8.0pxKaushan Script — 8.0pxNanum Pen Script — 10.4pxPacifico — 8.0pxPermanent Marker — 9.6pxSacramento — 8.0pxSatisfy — 8.0pxSchoolbell — 8.0pxShadows Into Light — 9.3pxYellowtail — 8.0px4.5px8.3px12.0pxtarget
After correction. The stragglers are cap-anchored faces, explained further down.median 8.2px · 103 faces

The measurements

Six numbers do most of the work. They are all ratios, so they hold at any size, and all of them come from the outlines rather than from what the font claims about itself in its metadata.

xHeightRatio
Height of the reading band over the em box. The single most important number here. Runs about 0.31 to 0.72 in the wild.
capHeightRatio
Height of a capital H over the em box. Used to catch faces whose capitals are unusually small for their kind.
inkRatio
Tallest ascender down to lowest descender, over the em box. This is the space a line of text physically needs, and it sets the floor on line height.
advanceX
Average letter width, measured in x-heights rather than ems so it is comparable across faces of different reading size.
gapBox
How much of a letter's own width is empty. Positive means air around the ink. Negative means the glyph overhangs its width, which connected scripts do on purpose.
gapStem
Space beside a letter measured at the height where its stems are, rather than at its widest point. Catches faces that are cramped where the strokes actually sit.

Two more are derived. Bounce is how much the flat tops and flat feet of the lowercase scatter, which separates hand-drawn faces from text faces without anyone declaring it. ascLetterRatio is how far the tallest ofb d h k l reaches above the x-height, which catches faces whose lowercase are really capital shapes.

The target, 0.54

Corrections need something to aim at. 0.54 is the x-height ratio faces get pulled towards. It is the middle of where well-regarded text faces already sit, rather than a number derived from theory. At a 16px base it puts the reading band at 8.64px.

Aim higher and most good faces grow for no reason. Aim lower and the small ones stay small. The median of this corpus is 0.502, close enough that most faces barely move.

The deadband, plus or minus 0.04

A face already between 0.50 and 0.58 is left exactly as drawn. This matters more than it sounds. Without a deadband every font gets nudged, so every font ends up slightly wrong in a way its designer did not intend, in exchange for a difference nobody can see. With it, 45 of 103 faces pass through untouched on size, and 18 come out needing nothing at all.

The band was half this wide to begin with. The narrow version kept correcting faces that did not need correcting.

sans-serifAmatic SC — 0.66Atkinson Hyperlegible — 0.50Bungee — 0.72Comic Neue — 0.49DM Sans — 0.50Figtree — 0.50Inter — 0.55Itim — 0.44Klee One — 0.48Lato — 0.51Mali — 0.51Manrope — 0.54Monoton — 0.70Montserrat — 0.53Mulish — 0.50Noto Sans — 0.54Nunito — 0.49Nunito Sans — 0.49Open Sans — 0.54Oswald — 0.58Patrick Hand — 0.47Plus Jakarta Sans — 0.54Poppins — 0.55Raleway — 0.52Roboto — 0.53Roboto Condensed — 0.53Rubik — 0.52Ubuntu — 0.52Work Sans — 0.50serifAlegreya SC — 0.50Bitter — 0.53Cardo — 0.44Cinzel — 0.60Cinzel Decorative — 0.70Coming Soon — 0.54Cormorant Garamond — 0.39Cormorant SC — 0.47Courgette — 0.51Crimson Text — 0.42Domine — 0.54EB Garamond — 0.41Frank Ruhl Libre — 0.47Handlee — 0.49IM Fell English SC — 0.43Kalam — 0.51Libre Baskerville — 0.53Literata — 0.51Lora — 0.50Marcellus SC — 0.52Marck Script — 0.37Merriweather — 0.56Newsreader — 0.44Noto Serif — 0.54Playfair Display — 0.52PT Serif — 0.50Roboto Slab — 0.53Source Serif 4 — 0.49Spectral — 0.45Vollkorn — 0.46monospaceAnonymous Pro — 0.46Azeret Mono — 0.55Courier Prime — 0.45Cousine — 0.53Cutive Mono — 0.38DM Mono — 0.50Fira Mono — 0.53Geist Mono — 0.53IBM Plex Mono — 0.52Inconsolata — 0.46JetBrains Mono — 0.55Martian Mono — 0.60Monofett — 0.67Overpass Mono — 0.51Red Hat Mono — 0.49Roboto Mono — 0.53Rubik Mono One — 0.70Share Tech Mono — 0.50Source Code Pro — 0.49Space Mono — 0.50Ubuntu Mono — 0.46Victor Mono — 0.62handwritingAlex Brush — 0.42Architects Daughter — 0.47Bad Script — 0.52Caveat — 0.36Caveat Brush — 0.41Cookie — 0.37Covered By Your Grace — 0.49Dancing Script — 0.33Gloria Hallelujah — 0.53Gochi Hand — 0.49Great Vibes — 0.36Homemade Apple — 0.59Indie Flower — 0.39Kaushan Script — 0.47Nanum Pen Script — 0.48Pacifico — 0.47Permanent Marker — 0.59Sacramento — 0.31Satisfy — 0.41Schoolbell — 0.47Shadows Into Light — 0.60Yellowtail — 0.440.300.510.720.54
left aloneInside the shaded band, nothing happens.median 0.50 · 103 faces

The size floor, 90%

Correction runs both ways. A face with a very large x-height gets shrunk, not just small ones grown. But shrinking has a limit. Below about 90% the text starts to look undersized next to everything around it that is not being corrected, like buttons and labels and form fields, and the fix reads as a bug.

sans-serifAmatic SC — 99%Atkinson Hyperlegible — 101%Bungee — 104%Comic Neue — 101%DM Sans — 100%Figtree — 100%Inter — 100%Itim — 113%Klee One — 104%Lato — 100%Mali — 100%Manrope — 100%Monoton — 93%Montserrat — 100%Mulish — 100%Noto Sans — 100%Nunito — 101%Nunito Sans — 103%Open Sans — 100%Oswald — 100%Patrick Hand — 107%Plus Jakarta Sans — 100%Poppins — 100%Raleway — 100%Roboto — 100%Roboto Condensed — 100%Rubik — 100%Ubuntu — 100%Work Sans — 100%serifAlegreya SC — 116%Bitter — 100%Cardo — 114%Cinzel — 107%Cinzel Decorative — 90%Coming Soon — 100%Cormorant Garamond — 130%Cormorant SC — 120%Courgette — 100%Crimson Text — 118%Domine — 100%EB Garamond — 123%Frank Ruhl Libre — 107%Handlee — 101%IM Fell English SC — 116%Kalam — 100%Libre Baskerville — 100%Literata — 100%Lora — 100%Marcellus SC — 107%Marck Script — 134%Merriweather — 100%Newsreader — 114%Noto Serif — 100%Playfair Display — 100%PT Serif — 100%Roboto Slab — 100%Source Serif 4 — 102%Spectral — 111%Vollkorn — 109%monospaceAnonymous Pro — 110%Azeret Mono — 100%Courier Prime — 130%Cousine — 100%Cutive Mono — 132%DM Mono — 101%Fira Mono — 100%Geist Mono — 100%IBM Plex Mono — 100%Inconsolata — 120%JetBrains Mono — 100%Martian Mono — 97%Monofett — 112%Overpass Mono — 100%Red Hat Mono — 102%Roboto Mono — 100%Rubik Mono One — 107%Share Tech Mono — 100%Source Code Pro — 103%Space Mono — 101%Ubuntu Mono — 121%Victor Mono — 94%handwritingAlex Brush — 120%Architects Daughter — 107%Bad Script — 100%Caveat — 141%Caveat Brush — 121%Cookie — 135%Covered By Your Grace — 102%Dancing Script — 151%Gloria Hallelujah — 100%Gochi Hand — 134%Great Vibes — 140%Homemade Apple — 99%Indie Flower — 129%Kaushan Script — 105%Nanum Pen Script — 135%Pacifico — 106%Permanent Marker — 101%Sacramento — 163%Satisfy — 123%Schoolbell — 106%Shadows Into Light — 96%Yellowtail — 113%85%130%175%floor
How much each face is scaled. Above 100% means grown.median 101% · 103 faces

Line height

Scale a face up and its ink gets taller, so a fixed line height starts clipping. The line box comes from the corrected size and the face's own x-height, then gets floored at its actual ink extent plus 5px so descenders never touch the line below.

1.5 × 16 × (2·scale + xHeightRatio) ÷ (2 + 0.54)   ⌊ floored at ink + 5px ⌋

That 5px floor is not a taste call. It is the point below which a descender in one line and an ascender in the next start to collide.

By default the leading follows the face, so a font that grows gets a taller line. Pass lineMode: 'hold' and every face is pinned to a fixed box instead, with the ink floor as the only thing allowed to break it. 82 of 103 faces fit a 24px grid. These are the ones that do not:

facecategoryneeds
Sacramentohandwriting38px
Homemade Applehandwriting34px
Great Vibeshandwriting30px
Indie Flowerhandwriting30px
Marck Scriptserif30px
Dancing Scripthandwriting29px
Pacificohandwriting29px
Satisfyhandwriting29px

Tracking

Letter spacing is the one place the ruleset is deliberately lopsided, because loosening and tightening are not the same problem.

Loosening keys off gapStem, the room beside a letter at the height where its stems are. Letters cramped where they are thickest need air.

Tightening keys off gapBox, how much of a letter's advance is empty. That distinction was learned the hard way. A high-contrast serif is narrow at mid-height and wide at the serifs, so it reads as airy on gapStem when it is merely thin:

facegapStemgapBoxwhat it really is
Montserrat0.45580.2246genuinely airy
Cormorant Garamond0.60890.1211not airy, just thin

Tightening also only fires where gapBox is positive. Connected scripts have negative values because their letters overhang their own advances on purpose, and tightening those makes them collide.

sans-serifAmatic SC — 0.15Atkinson Hyperlegible — 0.17Bungee — 0.15Comic Neue — 0.18DM Sans — 0.20Figtree — 0.18Inter — 0.20Itim — 0.15Klee One — 0.25Lato — 0.18Mali — 0.23Manrope — 0.18Monoton — 0.10Montserrat — 0.22Mulish — 0.20Noto Sans — 0.21Nunito — 0.19Nunito Sans — 0.19Open Sans — 0.21Oswald — 0.14Patrick Hand — 0.12Plus Jakarta Sans — 0.21Poppins — 0.19Raleway — 0.17Roboto — 0.18Roboto Condensed — 0.19Rubik — 0.20Ubuntu — 0.21Work Sans — 0.23serifAlegreya SC — 0.15Bitter — 0.11Cardo — 0.10Cinzel — 0.11Cinzel Decorative — 0.11Coming Soon — 0.12Cormorant Garamond — 0.12Cormorant SC — 0.11Courgette — 0.04Crimson Text — 0.10Domine — 0.11EB Garamond — 0.10Frank Ruhl Libre — 0.14Handlee — 0.11IM Fell English SC — 0.12Kalam — 0.06Libre Baskerville — 0.11Literata — 0.12Lora — 0.12Marcellus SC — 0.14Marck Script — 0.02Merriweather — 0.09Newsreader — 0.10Noto Serif — 0.12Playfair Display — 0.10PT Serif — 0.11Roboto Slab — 0.12Source Serif 4 — 0.13Spectral — 0.17Vollkorn — 0.15monospaceAnonymous Pro — 0.27Azeret Mono — 0.25Courier Prime — 0.25Cousine — 0.27Cutive Mono — 0.46DM Mono — 0.31Fira Mono — 0.31Geist Mono — 0.25IBM Plex Mono — 0.27Inconsolata — 0.26JetBrains Mono — 0.28Martian Mono — 0.30Monofett — -0.01Overpass Mono — 0.38Red Hat Mono — 0.31Roboto Mono — 0.28Rubik Mono One — 0.18Share Tech Mono — 0.35Source Code Pro — 0.31Space Mono — 0.29Ubuntu Mono — 0.24Victor Mono — 0.22handwritingAlex Brush — -0.20Architects Daughter — 0.10Bad Script — 0.07Caveat — 0.07Caveat Brush — 0.16Cookie — -0.15Covered By Your Grace — 0.07Dancing Script — -0.15Gloria Hallelujah — 0.08Gochi Hand — 0.01Great Vibes — -0.21Homemade Apple — -0.25Indie Flower — 0.08Kaushan Script — -0.04Nanum Pen Script — 0.11Pacifico — -0.21Permanent Marker — -0.03Sacramento — -0.24Satisfy — -0.22Schoolbell — 0.11Shadows Into Light — 0.06Yellowtail — -0.24-0.300.080.450
Air inside the character box. Everything left of zero is a script that overhangs itself.median 0.14 · 103 faces

The clamp, and the floor

No face moves more than 0.025em in either direction. Past that you have stopped correcting a font and started redrawing it. A 3% deadband skips trivial adjustments relative to the category ideal. On this corpus 35 faces loosened,27 tightened, and 25 hit the clamp.

Underneath sits an absolute floor of 0.003em, below which the value is dropped to zero and no declaration is written. Tracking is never read gap by gap — even at the clamp a single gap shifts 0.4px, and at 0.0008em it shifts 0.0128px. What you actually see is the accumulated width of the line, and 0.003em moves a 78-character line of Lora by 3.7px in 519, under 1%:

emline width movesas a %per gap
0.00081.00px0.19%0.0128px
0.0033.75px0.72%0.0480px
0.0112.48px2.41%0.1600px
0.02531.20px6.01%0.4000px

The deadband works on the input and is relative; the floor works on what actually ships and is absolute. Both are needed — the deadband still let eight faces through with output nobody could see. Type designers work in 1/1000 em and InDesign's default tracking step is 20/1000, so anything under 3/1000 is below the granularity the craft operates at.

The reason to drop it rather than ship it: a letter-spacing declaration overrides whatever the consumer inherited. A value this small takes their control over their own tracking and returns a change they cannot see.

sans-serifAmatic SC — 0.025Atkinson Hyperlegible — 0.003Bungee — 0.025Comic Neue — 0.000DM Sans — 0.000Figtree — 0.000Inter — 0.000Itim — 0.000Klee One — -0.025Lato — 0.000Mali — -0.013Manrope — 0.000Monoton — 0.025Montserrat — -0.013Mulish — 0.000Noto Sans — -0.004Nunito — 0.000Nunito Sans — 0.000Open Sans — -0.003Oswald — 0.025Patrick Hand — 0.023Plus Jakarta Sans — -0.007Poppins — 0.010Raleway — 0.000Roboto — 0.011Roboto Condensed — 0.025Rubik — 0.000Ubuntu — -0.005Work Sans — -0.014serifAlegreya SC — -0.018Bitter — 0.013Cardo — 0.000Cinzel — 0.000Cinzel Decorative — 0.000Coming Soon — 0.025Cormorant Garamond — 0.000Cormorant SC — 0.000Courgette — 0.025Crimson Text — 0.000Domine — 0.022EB Garamond — 0.000Frank Ruhl Libre — -0.009Handlee — 0.025IM Fell English SC — -0.003Kalam — 0.025Libre Baskerville — 0.000Literata — -0.005Lora — 0.000Marcellus SC — 0.000Marck Script — 0.000Merriweather — 0.025Newsreader — 0.000Noto Serif — 0.009Playfair Display — 0.000PT Serif — 0.019Roboto Slab — 0.018Source Serif 4 — -0.009Spectral — -0.025Vollkorn — -0.015monospaceAnonymous Pro — 0.000Azeret Mono — 0.000Courier Prime — 0.000Cousine — 0.000Cutive Mono — -0.025DM Mono — -0.010Fira Mono — -0.009Geist Mono — 0.000IBM Plex Mono — 0.000Inconsolata — 0.008JetBrains Mono — 0.005Martian Mono — -0.007Monofett — 0.025Overpass Mono — -0.025Red Hat Mono — -0.008Roboto Mono — 0.000Rubik Mono One — 0.025Share Tech Mono — -0.025Source Code Pro — -0.010Space Mono — 0.000Ubuntu Mono — 0.025Victor Mono — 0.025handwritingAlex Brush — 0.022Architects Daughter — -0.008Bad Script — 0.000Caveat — 0.000Caveat Brush — -0.025Cookie — 0.025Covered By Your Grace — 0.017Dancing Script — 0.000Gloria Hallelujah — 0.000Gochi Hand — 0.018Great Vibes — 0.025Homemade Apple — 0.000Indie Flower — 0.000Kaushan Script — 0.000Nanum Pen Script — -0.015Pacifico — 0.025Permanent Marker — 0.000Sacramento — 0.025Satisfy — 0.025Schoolbell — -0.013Shadows Into Light — 0.025Yellowtail — 0.003-0.0260.0000.0260
effectively untouchedApplied tracking, in em. The piles at each end are the clamp doing its job.median 0.000 · 103 faces

Categories, and the bounce cutoff

A monospace face is supposed to have more air than a serif, so they cannot be judged against the same ideals. Asking the designer to declare the category is a rule nobody follows, so it gets measured instead.

Take the letters with flat tops (v w x z) and flat feet (i m n r u v w x z) and look at how much their tops and feet scatter. A face drawn for reading scores near zero because its letters line up. A face drawn by hand does not. Above 0.15 it gets treated as handwriting, which moves 11 faces out of serif and sans-serif: Architects Daughter, Bad Script, Caveat, Caveat Brush, Covered By Your Grace, Gloria Hallelujah, Gochi Hand, Indie Flower, Nanum Pen Script, Schoolbell, Shadows Into Light.

sans-serifAmatic SC — 0.11Atkinson Hyperlegible — 0.02Bungee — 0.02Comic Neue — 0.01DM Sans — 0.02Figtree — 0.02Inter — 0.01Itim — 0.05Klee One — 0.03Lato — 0.02Mali — 0.05Manrope — 0.03Monoton — 0.05Montserrat — 0.01Mulish — 0.02Noto Sans — 0.02Nunito — 0.03Nunito Sans — 0.02Open Sans — 0.02Oswald — 0.01Patrick Hand — 0.05Plus Jakarta Sans — 0.02Poppins — 0.01Raleway — 0.02Roboto — 0.02Roboto Condensed — 0.02Rubik — 0.02Ubuntu — 0.02Work Sans — 0.02serifAlegreya SC — 0.06Bitter — 0.02Cardo — 0.08Cinzel — 0.05Cinzel Decorative — 0.05Coming Soon — 0.06Cormorant Garamond — 0.11Cormorant SC — 0.10Courgette — 0.00Crimson Text — 0.03Domine — 0.04EB Garamond — 0.08Frank Ruhl Libre — 0.03Handlee — 0.06IM Fell English SC — 0.08Kalam — 0.02Libre Baskerville — 0.02Literata — 0.03Lora — 0.03Marcellus SC — 0.03Marck Script — 0.10Merriweather — 0.02Newsreader — 0.05Noto Serif — 0.02Playfair Display — 0.04PT Serif — 0.02Roboto Slab — 0.02Source Serif 4 — 0.02Spectral — 0.04Vollkorn — 0.02monospaceAnonymous Pro — 0.02Azeret Mono — 0.03Courier Prime — 0.02Cousine — 0.02Cutive Mono — 0.02DM Mono — 0.02Fira Mono — 0.02Geist Mono — 0.02IBM Plex Mono — 0.02Inconsolata — 0.02JetBrains Mono — 0.02Martian Mono — 0.03Monofett — 0.00Overpass Mono — 0.02Red Hat Mono — 0.02Roboto Mono — 0.02Rubik Mono One — 0.01Share Tech Mono — 0.00Source Code Pro — 0.02Space Mono — 0.03Ubuntu Mono — 0.02Victor Mono — 0.02handwritingAlex Brush — 0.46Architects Daughter — 0.17Bad Script — 0.37Caveat — 0.20Caveat Brush — 0.16Cookie — 0.06Covered By Your Grace — 0.31Dancing Script — 0.85Gloria Hallelujah — 0.20Gochi Hand — 0.62Great Vibes — 0.16Homemade Apple — 1.24Indie Flower — 0.51Kaushan Script — 0.09Nanum Pen Script — 0.22Pacifico — 0.03Permanent Marker — 0.09Sacramento — 1.57Satisfy — 1.07Schoolbell — 0.32Shadows Into Light — 0.30Yellowtail — 0.150.000.901.800.15
Letterform scatter. The three text categories cluster hard at zero.median 0.03 · 103 faces

Where this falls down. Bounce measures geometry, not intent. Comic Neue, Itim, Mali, Klee One and Patrick Hand are hand-drawn faces with perfectly regular letterforms, and Comic Neue scores below Noto Sans. No threshold separates them from sans-serif without dragging real sans-serifs across too, so none is attempted. Pass category yourself when it matters.

The cap anchor

A few faces cannot be fixed on x-height at all, because their x-height is the one dimension already correct. Nanum Pen is the clearest case. Its x-height sits near the corpus median, but its capitals, its letter widths and its ink extent are the smallest in the whole set. Normalize it on x-height and it still looks small, because everything else about it is.

Those faces get aimed at cap height instead, at 1.39 times the x-height target. Two tests catch them:

  • 1.15, when the tallest of b d h k l reaches less than 1.15 times the x-height, meaning the lowercase are essentially capital shapes.
  • 0.90, when cap height falls below 90% of the category median, meaning the capitals are small for the kind of face it is.

An earlier version gated this on bounce, which was wrong. Bounce does not predict which direction anchoring moves a face. Sacramento bounces seven times harder than Nanum Pen and has textbook-normal capitals, and anchoring it on caps would drop its x-height to 4.94px.

sans-serifAmatic SC — 1.02Atkinson Hyperlegible — 1.35Bungee — 1.00Comic Neue — 1.39DM Sans — 1.43Figtree — 1.40Inter — 1.33Itim — 1.53Klee One — 1.47Lato — 1.45Mali — 1.71Manrope — 1.36Monoton — 1.00Montserrat — 1.41Mulish — 1.47Noto Sans — 1.42Nunito — 1.44Nunito Sans — 1.45Open Sans — 1.42Oswald — 1.40Patrick Hand — 1.53Plus Jakarta Sans — 1.41Poppins — 1.35Raleway — 1.40Roboto — 1.42Roboto Condensed — 1.42Rubik — 1.36Ubuntu — 1.49Work Sans — 1.46serifAlegreya SC — 1.00Bitter — 1.45Cardo — 1.83Cinzel — 1.00Cinzel Decorative — 1.00Coming Soon — 1.42Cormorant Garamond — 1.88Cormorant SC — 1.01Courgette — 1.63Crimson Text — 1.60Domine — 1.44EB Garamond — 1.74Frank Ruhl Libre — 1.48Handlee — 1.64IM Fell English SC — 1.01Kalam — 1.55Libre Baskerville — 1.57Literata — 1.51Lora — 1.51Marcellus SC — 1.01Marck Script — 2.08Merriweather — 1.47Newsreader — 1.62Noto Serif — 1.42Playfair Display — 1.52PT Serif — 1.50Roboto Slab — 1.44Source Serif 4 — 1.49Spectral — 1.67Vollkorn — 1.56monospaceAnonymous Pro — 1.40Azeret Mono — 1.34Courier Prime — 1.42Cousine — 1.37Cutive Mono — 1.53DM Mono — 1.45Fira Mono — 1.42Geist Mono — 1.34IBM Plex Mono — 1.43Inconsolata — 1.46JetBrains Mono — 1.33Martian Mono — 1.41Monofett — 1.00Overpass Mono — 1.41Red Hat Mono — 1.51Roboto Mono — 1.42Rubik Mono One — 1.00Share Tech Mono — 1.40Source Code Pro — 1.47Space Mono — 1.41Ubuntu Mono — 1.49Victor Mono — 1.29handwritingAlex Brush — 1.21Architects Daughter — 1.67Bad Script — 1.88Caveat — 1.88Caveat Brush — 1.67Cookie — 1.62Covered By Your Grace — 1.54Dancing Script — 2.17Gloria Hallelujah — 1.61Gochi Hand — 1.27Great Vibes — 1.76Homemade Apple — 1.67Indie Flower — 1.88Kaushan Script — 1.75Nanum Pen Script — 1.42Pacifico — 2.00Permanent Marker — 1.04Sacramento — 2.33Satisfy — 1.73Schoolbell — 1.69Shadows Into Light — 1.45Yellowtail — 1.661.001.502.001.15
Ascender letters over x-height. Left of the line, the lowercase are capital shapes.median 1.45 · 103 faces

It fires on 16 of 103 faces: Alegreya SC, Amatic SC, Bungee, Cinzel, Cinzel Decorative, Cormorant SC, Courier Prime, Gochi Hand, Inconsolata, Marcellus SC, Monofett, Monoton, Nanum Pen Script, Permanent Marker, Rubik Mono One, Ubuntu Mono.

What it costs

Anchored faces leave the x-height band. That is the trade. A face whose cap-to-x ratio is an outlier can match its neighbours on x-height or on apparent size, but not both. The gate exists to keep those exceptions few and named rather than to pretend they do not happen.

The other 87 faces hold a rendered x-height spread of 16%, from 8.0px to 9.3px, against 135% before correction.

Category tables

Four constants vary by category. GAP_IDEAL is what cramped faces get opened towards. BOX_IDEAL is the median air of the faces in that category that have any. GAP_FLOOR is where terminals start to crowd.CAP_MEDIAN is what a cap outlier gets judged against.

categoryGAP_IDEALBOX_IDEALGAP_FLOORCAP_MEDIAN
sans-serif0.3970.19470.1300.705
serif0.4830.11110.0780.700
monospace0.6030.28330.2230.700
handwriting0.2950.0797−0.1400.7344

Handwriting is really two groups. Connected scripts sit far below hand-lettered faces, and the classifier moves faces in and out of the category at runtime, so these are the least stable numbers on the page.

The corpus

103 faces, every family in the reference set with a static Latin 400 file, measured from the outlines by the same parser the package ships. The generator issite/scripts/corpus.mjs, and the figures in this text are computed from its output when the site builds rather than typed in by hand, so the prose cannot drift from the charts.

NextAPI reference