Variable fonts with optical sizing (opsz axis)

Variable families that adapt their drawing to the point size: more robust and open for small text, crisper and tighter for large headings.

9 open-license familiesUpdated

Small print, big type

Set in Inter. Select “Show it here” on any font below to set this line in it.

Before digital type, each size of a typeface was cut by hand, and the punchcutter changed the design for each one. Small sizes got wider letters, heavier thin strokes and looser spacing so they would hold up in print. Large sizes got finer hairlines and closer fitting. Once a single outline was scaled to every size, that adjustment disappeared. The optical size axis, tagged opsz, restores it.

The axis value usually matches the point size. Set it low and you get a taller x-height, beefier hairlines and wider gaps between letters. Set it high and the contrast grows and the details turn delicate. In practice, a single family can then work for both body copy and headlines, and small captions stay legible without turning dark and clumsy.

You rarely have to do anything to get this. Browsers default font-optical-sizing to auto, so a font carrying the axis follows the font size on its own. You can still pick a value yourself, for example to use the display drawing at a small size or the text drawing large, as a deliberate effect. The span varies a great deal from family to family, from a small text-only range to one reaching above a thousand, and each note quotes the recorded figures.

  1. Inter

    A screen sans with nine weights and italics, whose optical size runs from 14 to 32 to suit both small labels and bigger headings.

    Sans Serif 18 styles, variable OFL Try Inter

  2. DM Sans

    A geometric sans with little contrast and an optical size axis from 9 to 40.

    Sans Serif 18 styles, variable OFL Try DM Sans

  3. Merriweather

    Weight and width axes join an optical size range of 18 to 144 in this serif for text.

    Serif 14 styles, variable OFL Try Merriweather

  4. Bricolage Grotesque

    Ink traps grow more pronounced at the small end of an optical range from 12 to 96, with weight and width axes too.

    Sans Serif 7 styles, variable OFL Try Bricolage Grotesque

  5. Source Serif 4

    A transitional serif in eight weights with italics; optical size spans 8 to 60.

    Serif 16 styles, variable OFL Try Source Serif 4

  6. Newsreader

    Weights span 200 to 800, and optical size goes from 6 to 72.

    Serif 14 styles, variable OFL Try Newsreader

  7. Fraunces

    Weight, Softness and Wonky axes accompany an optical size range of 9 to 144.

    Serif 18 styles, variable OFL Try Fraunces

  8. Bodoni Moda

    Strong thick-thin contrast, with an optical size axis spanning 6 to 96.

    Serif 12 styles, variable OFL Try Bodoni Moda

  9. Hedvig Letters Serif

    Made as a brand serif in one weight, with optical size as its sole axis, ranging from 12 to 24.

    Serif 1 style, variable OFL Try Hedvig Letters Serif

Samples load a basic Latin subset of each family. Every family here carries an open license; its page states the terms and offers the original files.

Questions about variable fonts with optical sizing (opsz axis)

Which parts of the design does optical size adjust?

It changes stroke contrast, letter spacing, x-height and the finer details. At small optical sizes the letters are tougher and roomier; at large ones they become crisper and sit closer together.

Is any CSS needed to switch on optical sizing?

Normally no, since browsers link the axis to the font size by themselves. If you want a different value, write font-variation-settings: "opsz" and a number inside the range the font supports.

Should I choose an opsz axis or a separate text font and display font?

Both reach the same goal. The axis is simpler to manage, fills in every size between the extremes and lives in a single file.