font-synthesis
Widely availableSince 202297% of users
Controls synthetic font styling (bold, italic, small-caps). Prevents browser from creating fake styles when the font lacks variants.
What's modern
From web-features, MDN's browser data and our snippets, checked dailyModernIn every major browser since January 2022. Widely available since July 2024.
See how modern your own CSS is.Check your CSS →
Quick facts
- Initial value
weight style small-caps position- Inherited
- Yes
Quick example
body { font-synthesis: none; /* prevent synthetic bold/italic */ }
.bold { font-weight: bold; }Syntax
none | [ weight || style || small-caps || position]Examples
Prevent synthetic bold from unrequested font weights
.no-synthetic {
font-family: "OpenSans", sans-serif;
font-weight: 700;
font-synthesis: none;
/* If 700 weight isn't available, don't fake it */
}Disable synthetic font creation to ensure only real font weights display.
Allow only italic synthesis
em {
font-family: "MyFont", serif;
font-synthesis: style;
/* Allow synthetic italic but not synthetic bold */
}Control which font properties can be synthetically created.
Require small-caps
.small-caps {
font-family: "SourceSerif", serif;
font-variant: small-caps;
font-synthesis: weight style small-caps;
}font-synthesis: small-caps lets the browser synthesize small-caps if unavailable.
Common pitfalls
- Synthetic fonts look worse than real onesIf you set font-synthesis: none and a weight isn't available, the browser falls back to a thinner weight. This can break layouts.
- Default behavior creates syntheticsBy default, browsers synthesize missing bold/italic. Only set font-synthesis if you want to prevent this.
font-synthesis browser support
BaselineWidely availableThis feature is well established and works across many devices and browser versions. It has been available across browsers since 2022.Safe to use without fallbacks.
Usage97%of people can use this3% use a browser without it.
Browsers
97+
34+
9+
97+Mobile
97+Android
34+Android
9+iOS