Lining, Oldstyle, and Tabular Figures: The Numbers Most Designers Forget to Set
Four figure styles, two axes, and CSS feature requests that can help numbers align when the font supports them.
Numerals often inherit the font's default figure style, even when another style would fit the interface better. Proportional digits can make a changing price shift horizontally, while unaligned digits can make a numeric column harder to scan. Figure choices are part of a design system, but CSS can request an alternate only when the font supplies it.
Two Independent Choices
Figure styles are commonly described along two axes. Lining figures align near the cap height; oldstyle figures, also called text figures, use varying heights and may include ascenders or descenders. Tabular figures share an advance width, while proportional figures use widths suited to each digit. A font can support some combinations and omit others, and the exact shapes depend on the family.
These axes can combine into lining tabular, lining proportional, oldstyle tabular, or oldstyle proportional figures when the font supports them. Tabular lining figures are a common choice for data columns; proportional figures may suit headings or prose; oldstyle forms may blend into a paragraph. These are design options rather than fixed assignments, so review the actual numerals in context.
Tabular Figures Solve the Jitter
In a live counter or price, proportional digits can change the width of a number when one digit replaces another. Tabular figures give the digits equal advance widths, which can reduce that horizontal movement when the number of characters stays the same. Other layout choices, such as alignment and reserved width, may also be needed to keep a component stable.
Equal digit widths can help numeric columns line up, especially when values share the same number of places. Tables still need suitable text alignment, decimal handling, and column spacing. If values have different lengths or include signs and currency symbols, inspect the complete column rather than assuming tabular figures solve every alignment issue.
Tabular figures are one option when stable widths or aligned columns matter; verify the result in the actual font and layout.
Oldstyle Figures Belong in Sentences
Lining figures are usually close to cap height, so a year in running text can stand out from lowercase letters. Oldstyle figures use varying heights that may blend more closely with lowercase in some typefaces. The choice depends on the font and the role of the number: a date in a paragraph and a date in a table may call for different treatment.
A figure style that blends into prose may be less prominent when readers are scanning for a particular number. Oldstyle figures can suit running text, while lining forms can make dates and amounts easier to compare in tables. Try both in the page and choose based on the task and the font's design.
The CSS You Need
The CSS font-variant-numeric property can request values such as tabular-nums, proportional-nums, oldstyle-nums, and lining-nums. For example, font-variant-numeric: oldstyle-nums proportional-nums requests oldstyle proportional figures. The lower-level font-feature-settings property can address OpenType tags such as tnum and onum, but the higher-level property communicates the intended feature more clearly when it fits the need.
Two adjacent features are worth knowing. The value diagonal-fractions turns 1/2 into a properly drawn fraction with a diagonal bar, replacing the awkward slash-and-two-digits fallback. And slashed-zero, exposed as the zero feature, distinguishes 0 from O — worth enabling for order numbers, licence keys, and any string a user has to read aloud or retype.
It Only Works If the Font Has Them
Each declaration is a request, not a guarantee. If the font does not contain an alternate figure set, the requested style may have no visible effect. Compare the same sample with a font known to support the feature before concluding that the CSS is ignored.
A web-font subset can differ from the full font, so check that the file you serve contains the alternate glyphs and layout features you need. A foundry specimen may show capabilities that are absent from a customized build. If the feature matters, inspect the delivered font and test it in the browser that renders the page.
A Short Audit
- Numeric columns: try tabular figures, then verify alignment and decimal placement.
- Live counters and timers: consider tabular figures or a reserved-width container to reduce movement.
- Dates and quantities in prose: compare oldstyle and lining forms in the chosen face.
- Headlines and display numbers: choose the figure style that suits the design and remains clear.
- Codes users must transcribe: consider a supported slashed-zero feature and check it is distinguishable.
Numerals are easy to overlook when choosing a typeface. The OpenType Feature Playground on this site can preview supported numeral options, while the Font Specimen Sheet Builder can help compare glyphs. A preview only reflects the active font and available features, so test the actual font file with representative prices, dates, and codes before shipping it.
Choose figure styles by context
Proportional figures begin at different horizontal positions in a data column.
Tabular figures use equal advances when the active font supplies the feature.
Treat the example as a starting point and test it with the typeface, content, and audience of the page.
A Practical Pattern
.data-value { font-variant-numeric: lining-nums tabular-nums; }
.article-copy { font-variant-numeric: oldstyle-nums proportional-nums; }Replace the illustrative values with the typeface, content, and browser targets used by your project.
Review Checklist
- Use tabular figures for values people compare.
- Choose prose figures for the paragraph's texture.
- Check decimals, signs, and currency symbols.
- Confirm the active font supports the requested features.