Skip to content
Tutorials Center
My learning

Topics

CSS Reference ยท Typography

The font-synthesis property

Reference for the CSS font-synthesis property: stop browsers from faking bold, italic, small caps and super/subscripts, with its longhands and live examples.

When a font family lacks a bold or italic face that you ask for, browsers can synthesize one: they thicken the regular glyphs to fake bold, or slant them to fake italic. They can also fake small capitals and superscript or subscript forms.

The font-synthesis property lets you say which of these fakes are allowed. Synthesized styles are rarely as good as designed ones, so many sites switch them off to avoid distorted type, or to keep text widths predictable.

CSS
body {
  font-synthesis: none;
}

.allow-bold-only {
  font-synthesis: weight;
}

Try it

Allowing and blocking faux styles

The first line is both bold and slanted. Each following line allows only the named fakes, and the last one shows the plain regular face, because no faux style is allowed.

Syntax

CSS
font-synthesis: none | [ weight || style || small-caps || position ];
Initial value weight style small-caps position
Applies to All elements and text
Inherited Yes
Animatable No
Computed value As specified

The shorthand sets four longhands: font-synthesis-weight, font-synthesis-style, font-synthesis-small-caps and font-synthesis-position, each with the values auto or none.

Values

Value Description
none No synthesis of any kind.
weight Allows synthesized bold.
style Allows synthesized italic (a slanted copy of the upright glyphs).
small-caps Allows synthesized small capitals (scaled-down capitals).
position Allows synthesized superscript and subscript forms.

Only the keywords you list are allowed; the omitted ones are blocked.

Usage notes

  • Why block it. Faked bold smears strokes and widens text, faked italic only slants the upright shapes, and faked small caps look too light. Blocking them keeps the type honest and the line lengths stable.
  • Declare your faces. With web fonts, describe each file in @font-face with the right font-weight and font-style. If you leave them out, the browser may think the file is regular and fake the rest.
  • Fonts with no bold. Decorative display fonts often have a single weight. Synthesis then makes <strong> and headings look blurry; font-synthesis: none or font-weight: normal is cleaner.
  • Fallback fonts. The setting also applies to fallback fonts, which can change appearance when your web font has not loaded.
  • Related properties. For control over weights and slants, see font-weight and font-style; small-caps ties in with font-variant-caps.
  • Whether the fake appears depends on the browser and the font files installed on the device, so test your page without your web fonts.

Browser support

The shorthand and longhands are supported in current browsers; check a compatibility table for older versions, especially for the position and small-caps parts.