Font Size, Weight, Style, Stretch and Synthesis
The core font properties: font-size keywords, relative sizes and inheritance, numeric weights with bolder and lighter, italic and oblique styles, font-stretch for condensed and expanded faces, and how font-synthesis controls fake bold and italic.
kvi5hnuCode Sprout team member8 min readOn this page
Once a family is chosen (articles 82 and 83), four properties pick the variant of it and its size: font-size, font-weight, font-style and font-stretch. All four are inherited.
font-size
| Kind | Examples | Relative to |
|---|---|---|
| absolute keywords | xx-small … xxx-large | the user's default size (medium) |
| relative keywords | smaller, larger | the parent's font size |
| lengths | 16px, 1.25rem, 1.2em | rem: root size; em: parent's size |
| percentages | 120% | the parent's font size |
math | for MathML | the math depth |
Tested in Chrome, with the default 16px: xx-small 9px, x-small 10px, small 13px, medium 16px, large 18px, x-large 24px, xx-large 32px, xxx-large 48px. In a 20px parent, smaller gave 16.67px and larger 24px, a ratio of 1.2; 150% gave 30px.
Use rem for most sizes
Users can change their browser's default font size, and good typography respects that. rem and em follow it; px doesn't:
remfor most text: it scales with the user's setting and doesn't compound.emfor things that should scale with the local text, like padding on a button or an icon next to a word.- Avoid
pxfont sizes, and never sethtml { font-size: 10px }or similar, which overrides the user's setting. If you want1rem = 10pxarithmetic,62.5%at least keeps it relative, but it's simpler to keep the default 16px and useremvalues like0.875rem.
em and percentages compound when nested: a list with font-size: 0.8em inside another gets smaller at each level. That's why rem is the safer default (article 24).
Heading sizes
The browser's styles give h1 2em, h2 1.5em, h3 1.17em, h4 1em, h5 0.83em and h6 0.67em. Browsers used to shrink an h1 nested inside <section>, <article>, <aside> or <nav>; that rule has been removed. Tested in Chrome: an h1 inside a section, and inside a section in an article, was 32px, the same as a top-level h1. Set heading sizes yourself rather than relying on the defaults.
Minimum font size
Some browsers enforce a minimum font size from user settings, so very small values like 8px may be drawn larger. Design so that nothing important needs text below about 12px.
font-weight
Weights are numbers from 1 to 1000; normal is 400 and bold is 700. Tested in Chrome: 950 is valid, and 1001 is rejected. Static fonts usually come in steps of 100:
| Value | Common name |
|---|---|
| 100 | Thin |
| 200 | Extra Light |
| 300 | Light |
| 400 | Regular (normal) |
| 500 | Medium |
| 600 | Semi Bold |
| 700 | Bold (bold) |
| 800 | Extra Bold |
| 900 | Black |
If the family has no face at the requested weight, the browser uses the nearest one by the matching rule in article 83, or synthesizes a bold (below). Any value between 1 and 1000 is useful with variable fonts (article 87).

The system font is variable, so every value in the figure gets its own weight, not just the hundreds.
bolder and lighter

bolder and lighter are relative to the parent's weight, using a fixed table rather than the font's available faces. That's why <b> inside already-bold text, which the browser styles with bolder, becomes 900 rather than staying 700. If the family has no 900 face, the 700 face is used, and the text looks the same.
font-style
| Value | Meaning |
|---|---|
normal | upright |
italic | the italic face: often redesigned letters, not just slanted |
oblique | a slanted face, optionally with an angle: oblique 10deg |
If there's no italic face, italic uses an oblique one, and the other way round; if there's neither, the browser synthesizes a slant. Angles apply to variable fonts with a slant axis (article 87). Tested in Chrome: oblique 10deg computes to oblique 10deg.
font-stretch (font-width)
font-stretch picks a narrower or wider face of the family, if one exists. It doesn't distort the glyphs:
| Prefix | -condensed | -expanded |
|---|---|---|
semi | 87.5% | 112.5% |
| (none) | 75% | 125% |
extra | 62.5% | 150% |
ultra | 50% | 200% |
normal is 100%. So condensed is 75%, semi-expanded is 112.5%, and so on.
Tested in Chrome: font-stretch: condensed computes to 75%. The property has been renamed font-width in the specification; Safari 18.4 and Firefox 155 support the new name, but Chrome doesn't yet, so keep using font-stretch. With a font that has no width variants, it has no effect.
font-synthesis: fake bold and italic
When a family has no bold or italic face, the browser synthesizes one: it thickens the strokes of the regular face for bold, and slants it for italic. The results look poor, with smeared shapes and slanted letterforms that a real italic would draw differently.
font-synthesis controls this. It's a shorthand for font-synthesis-weight, -style, -small-caps and -position:
html { font-synthesis: none; } /* never fake anything */
.brand { font-synthesis: style; } /* allow fake italic only */
Turn synthesis off when you load your own fonts and want to be sure missing faces are noticed. Keep it on, or at least style, for languages and fonts where missing faces are common: with none, emphasized text in a font without bold or italic shows no visible emphasis at all.

The overlay shows the shapes, and the widths show a less obvious cost: both synthesized faces are exactly as wide as the regular one, 147px, while the real italic and bold are 162px and 172px. If the real faces load later, or if you add them later, every line with emphasis gets wider and can rewrap. font-synthesis-small-caps works the same way for small-caps: with auto, capitals are scaled down to fake them; with none, the lowercase letters stay as they are.
@font-face { font-family: "OnlyRegular"; src: local("Georgia"), local("Times New Roman"); font-weight: 400; font-style: normal; }
body { font: 0.8rem system-ui, sans-serif; margin: 1rem; }
.note { margin: 0.6rem 0 0.15rem; color: #555; }
.demo { margin: 0; font-family: "OnlyRegular", serif; font-size: 1.15rem; }
.none { font-synthesis: none; }
.real { font-family: Georgia, "Times New Roman", serif; }
The first line fakes both, the second shows nothing for <b> and <i>, and the third uses the installed bold and italic designs.
What's current
xxx-large: all browsers. Numeric weights from 1 to 1000, andobliqueangles: all browsers.- The
h1size rule for sectioning elements has been removed from browsers. font-width: Safari and Firefox; Chrome still usesfont-stretch, which works everywhere.font-synthesis-position(fake superscripts and subscripts): Firefox only.
Common questions
Should I use px or rem for font sizes?
rem, so text follows the user's default size. Use em for sizes tied to the local text.
Why is my bold text blurry or smeared? The browser is synthesizing bold because the family has no bold face. Load the bold file under the same family name (article 83).
Why did my h1 inside a <section> get bigger?
Browsers removed the rule that shrank nested h1s. Set heading sizes explicitly.
What does font-stretch do with my font?
Nothing, unless the family includes condensed or expanded faces, or a variable width axis.
Summary
font-sizetakes keywords,rem,em, percentages and lengths; preferrem, which respects the user's setting.emand percentages compound when nested.font-weightis 1–1000;bolderandlighteruse a fixed table relative to the parent's weight.font-stylepicks italic or oblique faces;font-stretch(renamedfont-width) picks narrower or wider faces.- Missing bold and italic faces are synthesized;
font-synthesiscontrols that.
Practice questions
In a 20px parent, what size is font-size: larger, and what is font-size: 1.5em?
Answer
larger is 24px (a ratio of 1.2), and 1.5em is 30px.
What weight is <b> inside a paragraph with font-weight: 600?
<p style="font-weight: 600">Total: <b>£42</b></p>
Answer
- The browser styles
<b>withbolder, andbolderfrom 550 or more gives 900. If the family has no 900 face, the heaviest available face is used.
Why is this a bad idea, and what's better?
html { font-size: 10px; }
p { font-size: 1.6rem; }
Answer
It overrides the user's default font size, so people who set a larger default don't get larger text. Keep the root at its default and write p { font-size: 1rem; }, or other rem values.
A site loads only the regular face of a font and sets font-synthesis: none. What does <strong> look like?
Answer
It looks the same as the regular text: no bold face exists and synthesis is off, so nothing marks the emphasis. Load a bold face, or allow weight synthesis.
Previous: Font Loading and Performance: font-display, Preloading and Fallback Metrics
Next: OpenType Features: font-variant, Numerals, Ligatures and font-feature-settings

More in CSS Course
Quiz: CSS Delicate Details
Twenty-five questions on the edge cases that surprise experienced developers: invalid custom properties, shorthands that reset values, layer order with !important, containing blocks, margin collapsing, specificity of :is() and :where(), intrinsic minimum sizes, and more, each checked in Chrome.
Quiz: CSS Interview Questions
Thirty front-end interview questions: cascade, specificity and layers, box model and margin collapsing, stacking contexts, positioning, flexbox and grid, responsive design, custom properties, performance, accessibility, modern selectors and architecture.
Quiz: CSS Course Final Exam
Thirty questions across the whole CSS course: syntax and error handling, selectors, the cascade and layers, values and units, color, the box model, backgrounds, positioning, flexbox, grid, responsive design, typography, generated content, effects, transforms, motion and architecture.
Quiz: CSS Architecture, Tooling and Debugging (CSS Part 17)
Twenty questions on modular CSS and BEM, layering a stylesheet, design tokens and theming, pattern libraries and safe refactoring, preprocessors and build tools, the at-rules reference, and debugging common CSS problems.
Discussion
Sign in to ask a question or share what you learned.