font-variant-numeric: oldstyle-nums.Oldstyle numerals are the digits that behave like lowercase letters. Instead of standing in a neat row the height of capitals, they have their own ascenders and descenders, so a year or a page number inside a paragraph reads as part of the sentence rather than shouting out of it. The typography terms glossary mentions them in one line; this page shows how to recognise them, when to choose them and how to turn them on.
How to spot oldstyle numerals
- Uneven heights. Type 1234567890. If the row looks like a mix of short and tall shapes rather than a fence of equal posts, you are looking at oldstyle figures.
- Small 0, 1 and 2. These usually sit at about the x-height, like o, i and z. The 0 is often a near circle rather than an oval.
- Descending 3, 4, 5, 7 and 9. Their tails drop below the baseline like the tails of g and p. MDN’s description of the CSS value says the same: figures “where some numbers, such as 3, 4, 7, and 9, have descenders”.
- Ascending 6 and 8. These rise above the x-height like b and d.
- Compare with lining figures. Lining figures all sit on the baseline and stand near the cap height. The two sets often live in the same font.
Designs vary. Some fonts treat 1 like a small capital I, and some draw a taller 4. The overall rhythm of rising and falling shapes is the giveaway.
Oldstyle vs lining figures
Oldstyle figures are the older form: they were the norm in book type for centuries. Lining figures became common later, especially as numbers spread into business printing, signs and adverts where they had to match capitals. Today many good text fonts include both, and OpenType lets you switch between them. The OpenType feature registry describes onum as changing figures “from the default or lining style to oldstyle form” so they “fit better into the flow of normal upper- and lowercase text”, and lnum as the reverse, giving figures that “fit better with all-capital text”.
Figure height is separate from figure width. Proportional figures each take their natural width; tabular figures all share one width so columns line up. You can combine either height with either width, which gives four possible figure sets in a well-equipped font.
Where oldstyle numerals work best
Books, essays and long reads. Dates, page references and quantities inside paragraphs sit more quietly. A sentence like “in 1984 the company had 37 staff” keeps an even texture.
Editorial websites. Literary magazines, blogs and journals often set body text in a classic serif; matching oldstyle figures make the page feel more like print. Pair them with old-style serif fonts, whose letters share the same calligraphic roots.
Elegant print pieces. Wedding stationery, menus and invitations often look better with oldstyle dates and times, especially in mixed case.
Where to avoid them. Use lining figures in tables, prices, dashboards, forms and anything set in capitals. Use lining tabular figures for columns of numbers, and lining figures for phone numbers, codes and serial numbers where each digit must be read quickly.
How to turn on oldstyle numerals
In CSS:
body { font-variant-numeric: oldstyle-nums; }
table, .price { font-variant-numeric: lining-nums tabular-nums; }
The font-variant-numeric property maps to the OpenType features onum, lnum, pnum and tnum. It only works if the font contains those glyphs; otherwise the browser keeps the default figures. The lower-level font-feature-settings: "onum" 1; does the same job.
In design apps: InDesign, Illustrator and Affinity expose figure styles in their OpenType or typography panels. Word and other office apps vary, so check whether your version offers number forms in its advanced font settings.
Free Google Fonts with oldstyle numerals
We checked the font files in the Google Fonts GitHub repository on 25 November 2026 for the onum feature and looked at the default digit shapes. Results apply to those files; test in your own setup before relying on them.
| Font | Default figures | Oldstyle via onum |
|---|---|---|
| Alegreya | Oldstyle | Yes, and lining via lnum |
| Cormorant Garamond | Oldstyle | Yes, and lining via lnum |
| Playfair Display | Oldstyle | Yes, and lining via lnum |
| EB Garamond | Lining | Yes |
| Source Serif 4 | Lining | Yes |
| Spectral | Lining | Yes |
| Crimson Pro | Lining | Yes |
| Merriweather | Lining | Yes |
| Open Sans | Lining | Yes |
| Montserrat | Lining | Yes |
Fonts without an onum feature in the files we checked include Inter, Lora and Libre Baskerville. Notice that the first three default to oldstyle: if you use Playfair Display for prices or a data table, switch on lining-nums. See our EB Garamond font pairings for a classic text face with both figure styles.
Common mistakes
- Oldstyle figures in tables. Uneven heights and widths make columns hard to scan. Use lining tabular figures.
- Oldstyle figures with capitals. In an all-caps heading or acronym, small descending digits look like they have fallen out of line.
- Assuming the font has them. CSS cannot create glyphs that are not in the font. Check before you specify.
- Forgetting the default. Fonts such as Alegreya start with oldstyle figures, which can surprise you in a price list or form.
- Faking them. Shrinking or shifting lining digits does not make oldstyle figures; the strokes become too thin.
Related terms
- Lining figures: digits that all stand on the baseline at about cap height.
- Tabular figures: digits of equal width for columns.
- Proportional figures: digits with natural widths for text.
- X-height and descender: the heights oldstyle figures follow, explained in ascender and descender.
- Glyph: each figure style is a separate set of glyphs for the same characters.
Frequently Asked Questions
What are oldstyle numerals?
They are digits drawn like lowercase letters, with some rising above the x-height and some dropping below the baseline, so they blend into running text.
What is the difference between oldstyle and lining figures?
Oldstyle figures vary in height like lowercase letters. Lining figures all sit on the baseline at about cap height, which suits capitals, tables and interfaces.
How do I use oldstyle numerals in CSS?
Set font-variant-numeric to oldstyle-nums on the text. It works only if the font includes oldstyle figure glyphs through the onum feature.
Are text figures the same as oldstyle figures?
Yes. Text figures, oldstyle figures, hanging figures and lowercase numerals are names for the same style of digit.
Should I use oldstyle numerals on a website?
Use them in body text if the font has them and the tone is editorial. Keep lining figures for prices, data, navigation and anything in capitals.


