CSS font-synthesis-weight Property

The font-synthesis-weight property controls whether a browser may generate a synthetic bold font weight when the selected font does not provide a suitable heavier face.

When bold text is requested, the browser searches for an appropriate font weight. If the font lacks a suitable heavier face, the browser may artificially thicken the existing glyphs. This property allows authors to permit or prevent that behavior without changing the requested font-weight.

font-synthesis-weight Syntax

The font-synthesis-weight property accepts auto, none, or a CSS-wide keyword.

Basic Syntax

selector {
  font-synthesis-weight: auto;
}

Allow Synthetic Bold

selector {
  font-synthesis-weight: auto;
}

Disable Synthetic Bold

selector {
  font-synthesis-weight: none;
}

CSS-Wide Keywords

.example {
  font-synthesis-weight: inherit;
}
.example {
  font-synthesis-weight: initial;
}
.example {
  font-synthesis-weight: unset;
}
.example {
  font-synthesis-weight: revert;
}
.example {
  font-synthesis-weight: revert-layer;
}

The property controls whether synthetic bolding is permitted. It does not select a font weight by itself.

Property Values

The property has two main values that determine whether the browser may synthesize missing bold font weights.

Value Description
auto Allows the browser to synthesize a bold appearance when an appropriate heavier font face is unavailable.
none Prevents the browser from generating synthetic bold font weights.

Property Characteristics

Characteristic Value
Initial value auto
Inherited Yes
Applies to All elements and text
Computed value As specified
Animation type Discrete
Percentages Not applicable

The property is a longhand of font-synthesis. It controls synthetic font weight independently of synthetic style, small-capital, and position settings.

How It Works

When CSS requests a bold font weight, the browser attempts to find a suitable face within the selected font family.

Requesting Bold Text

.heading {
  font-weight: bold;
}

The browser searches for an appropriate heavier face, usually corresponding to weight 700.

Using a Genuine Bold Face

If the font provides a suitable bold face, the browser can use that face directly.

Generating Synthetic Bold

If a suitable heavier face is unavailable and synthesis is permitted, the browser may artificially thicken the glyphs of an available face.

Preventing Synthetic Bold

.heading {
  font-weight: 700;
  font-synthesis-weight: none;
}

This prevents artificial emboldening. The browser may still select a genuine font face that is the closest available match.

Important Consideration

Disabling synthesis does not guarantee that the requested weight exists. The browser follows font matching rules to select an available face.

The auto Value

The auto value allows the browser to synthesize bold styling when a suitable heavier font face is unavailable.

Basic Example

.heading {
  font-synthesis-weight: auto;
}

Bold Text

.heading {
  font-weight: bold;
  font-synthesis-weight: auto;
}

Numeric Font Weight

.heading {
  font-weight: 700;
  font-synthesis-weight: auto;
}

Default Behavior

Because auto is the initial value, browsers may synthesize bold styling when the selected font lacks an appropriate heavier face.

Important Consideration

The auto value permits synthesis but does not force it. When a suitable genuine font weight is available, the browser can use that face instead.

The none Value

The none value prevents the browser from artificially thickening glyphs to approximate a missing bold font weight.

Basic Example

.heading {
  font-synthesis-weight: none;
}

Disable Synthetic Bold

.heading {
  font-weight: bold;
  font-synthesis-weight: none;
}

Custom Font Example

.brand-heading {
  font-family: "Example Display", sans-serif;
  font-weight: 700;
  font-synthesis-weight: none;
}

Why Disable Synthesis?

Synthetic bolding may produce heavier strokes, reduced internal spacing, or less balanced letterforms than a genuine bold font face. Disabling synthesis can help preserve the font designer's intended appearance.

Important Consideration

If the font lacks a suitable heavier face, the browser may display a lighter available weight instead of the requested bold appearance.

Genuine vs. Synthetic Bold

Genuine bold faces are designed as part of the font family. Synthetic bold is generated by the browser when a suitable heavier face is unavailable.

Genuine Bold

A genuine bold face may contain specially adjusted letterforms, spacing, proportions, and stroke weights to maintain readability.

Synthetic Bold

Synthetic bolding approximates a heavier weight by thickening the strokes of an existing font face.

Comparison

Feature Genuine Bold Synthetic Bold
Source Provided by the font Generated by the browser
Letterforms Designed for the weight Based on an existing face
Stroke weight Carefully adjusted Artificially increased
Spacing May be optimized for the weight May not be fully adjusted
Availability Requires a suitable font face Requires permitted synthesis

Important Consideration

Genuine bold faces generally provide more refined typography. Synthetic bold can be useful as a fallback but may not match the intended design.

Using font-weight

The font-weight property requests a particular font weight, while font-synthesis-weight controls whether a missing heavier weight may be synthesized.

Bold Keyword

.heading {
  font-weight: bold;
  font-synthesis-weight: auto;
}

Numeric Weight

.heading {
  font-weight: 700;
  font-synthesis-weight: none;
}

Extra Bold Weight

.heading {
  font-weight: 800;
  font-synthesis-weight: none;
}

Normal Weight

.paragraph {
  font-weight: 400;
  font-synthesis-weight: auto;
}

Property Comparison

Property Purpose
font-weight Requests the desired font weight.
font-synthesis-weight Controls whether missing bold weights may be synthesized.

Important Consideration

Use font-weight to select the desired weight. Use font-synthesis-weight when control over artificial emboldening is needed.

Font Matching and Fallbacks

Browsers use font matching rules to select the most appropriate available face for a requested weight.

Available Font Weights

A font family may provide regular, medium, semibold, bold, and other weights. The browser selects an available face according to CSS font matching rules.

Missing Bold Face

.heading {
  font-family: "Example Sans", sans-serif;
  font-weight: 700;
  font-synthesis-weight: auto;
}

If the family lacks a suitable bold face, the browser may synthesize a heavier appearance.

Synthesis Disabled

.heading {
  font-family: "Example Sans", sans-serif;
  font-weight: 700;
  font-synthesis-weight: none;
}

The browser must use an available font face without artificial emboldening.

Fallback Fonts

Fallback fonts may provide different weight ranges. Text rendered using a fallback font can therefore appear heavier or lighter than text using the primary font.

Important Consideration

Font matching occurs before synthesis is considered. The property does not guarantee an exact weight or prevent the browser from selecting a different available face.

The font-synthesis Shorthand

The font-synthesis shorthand controls several types of synthetic font styling, including weight, style, small capitals, and positioned glyphs.

Allow Weight Synthesis

.text {
  font-synthesis: weight;
}

This permits synthetic weight while disabling the other synthesis types controlled by the shorthand.

Allow Weight and Style

.text {
  font-synthesis: weight style;
}

Disable All Synthesis

.text {
  font-synthesis: none;
}

Disable Only Weight Synthesis

.text {
  font-synthesis-weight: none;
}

The longhand disables synthetic bolding without changing the other synthesis controls.

Shorthand Reset Behavior

.text {
  font-synthesis-weight: none;
  font-synthesis: weight style;
}

The later shorthand permits synthetic weight again because it resets the constituent longhand properties.

Important Consideration

Use the longhand when only synthetic bolding needs to change. Use the shorthand when several synthesis types should be controlled together.

Using @font-face

The @font-face rule allows authors to provide separate font resources for different weights.

Regular Font Face

@font-face {
  font-family: "Example Sans";
  src: url("/fonts/example-sans-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
}

Bold Font Face

@font-face {
  font-family: "Example Sans";
  src: url("/fonts/example-sans-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
}

Using the Font

.heading {
  font-family: "Example Sans", sans-serif;
  font-weight: 700;
  font-synthesis-weight: none;
}

When the genuine bold face loads successfully, the browser can use it without synthetic emboldening.

Missing Bold Resource

If only the regular face is supplied and synthesis is disabled, the browser cannot artificially thicken that face to produce bold text.

Important Consideration

The file paths shown above are illustrative. Replace them with actual font resources and ensure that the declared weights accurately describe the supplied files.

Variable Fonts

Variable fonts can provide a continuous range of font weights through the registered wght axis.

Variable Font Face

@font-face {
  font-family: "Example Variable Sans";
  src: url("/fonts/example-variable.woff2") format("woff2");
  font-weight: 100 900;
}

Using Variable Weights

.heading {
  font-family: "Example Variable Sans", sans-serif;
  font-weight: 750;
  font-synthesis-weight: none;
}

Multiple Weights

.regular {
  font-weight: 400;
}
.semibold {
  font-weight: 600;
}
.bold {
  font-weight: 700;
}
.extrabold {
  font-weight: 800;
}

Weight Axis

When a variable font supports the requested weight, the browser can use its genuine variation instead of synthesizing a heavier appearance.

Important Consideration

Not every variable font supports the full weight range. Declare only the weights supported by the font file, and test the result before disabling synthesis.

Inheritance

The font-synthesis-weight property is inherited. Child elements use the parent's synthesis setting unless they specify another value.

Inherited Setting

.article {
  font-synthesis-weight: none;
}
<div class="article">
  <p>This text contains <strong>important information</strong>.</p>
</div>

Override a Child Element

.article {
  font-synthesis-weight: none;
}
.article .allow-synthesis {
  font-synthesis-weight: auto;
}

Explicit Inheritance

.child {
  font-synthesis-weight: inherit;
}

Reset to the Initial Value

.child {
  font-synthesis-weight: initial;
}

The initial value is auto.

Important Consideration

An inherited restriction may affect bold text throughout a section. Ensure that the fonts used by descendants provide suitable heavier faces.

Accessibility Considerations

Bold text can help distinguish headings, labels, and important information. Disabling synthesis may reduce that distinction when a font lacks suitable heavier weights.

Preserve Semantic Importance

<p>This is <strong>important information</strong>.</p>

The <strong> element conveys importance through HTML semantics, even when the text does not appear visually bold.

Provide Genuine Bold Faces

When using custom fonts, include the weight resources needed for headings, labels, and emphasized text.

Avoid Unnecessary Restrictions

body {
  font-synthesis-weight: none;
}

This declaration affects descendants through inheritance. If the selected fonts lack bold faces, some text may appear less visually distinct.

Maintain Readability

Check text contrast, spacing, and weight differences when using light or thin font families.

Important Consideration

Use semantic HTML for meaningful importance and ensure that bold text remains readable and distinguishable when synthesis is disabled.

font-synthesis-weight Example

This example compares bold text with synthetic weight permitted and disabled. It uses a demonstration font family that declares only a regular face.

The demonstration uses a locally installed system font. The appearance may vary between devices depending on font availability and browser support.

HTML Example

<div class="font-synthesis-weight-demo">
  <p class="demo-label">Normal weight</p>
  <p class="normal-text">Creative Typography</p>
  <p class="demo-label">Synthetic bold allowed</p>
  <p class="synthesis-allowed">Creative Typography</p>
  <p class="demo-label">Synthetic bold disabled</p>
  <p class="synthesis-disabled">Creative Typography</p>
</div>

CSS Example

@font-face {
  font-family: "Synthesis Weight Demo";
  src: local("Arial");
  font-style: normal;
  font-weight: 400;
}
.font-synthesis-weight-demo {
  font-family: "Synthesis Weight Demo", Arial, sans-serif;
}
.font-synthesis-weight-demo p {
  margin: 0 0 16px;
}
.font-synthesis-weight-demo .demo-label {
  font: 600 13px/1.4 Arial, sans-serif;
}
.font-synthesis-weight-demo .normal-text,
.font-synthesis-weight-demo .synthesis-allowed,
.font-synthesis-weight-demo .synthesis-disabled {
  font-size: 28px;
  line-height: 1.4;
}
.normal-text {
  font-weight: 400;
}
.synthesis-allowed {
  font-weight: 700;
  font-synthesis-weight: auto;
}
.synthesis-disabled {
  font-weight: 700;
  font-synthesis-weight: none;
}
Browser Result

Normal weight

Creative Typography

Synthetic bold allowed

Creative Typography

Synthetic bold disabled

Creative Typography

The first line uses normal weight. The second permits the browser to synthesize a bold appearance when the demonstration font lacks a bold face.

The third line prevents synthetic bolding. If the demonstration face loads and the browser supports font-synthesis-weight, this line may appear similar to the normal-weight text. If the local font is unavailable, a fallback font may provide a genuine bold face, causing the two bold examples to look more similar.

Common Mistakes

The most common mistake is expecting font-synthesis-weight to select a particular font weight.

Using bold as a Value

.heading {
  font-synthesis-weight: bold;
}

This declaration is invalid. Use font-weight: bold to request bold text.

Using Numeric Weights

.heading {
  font-synthesis-weight: 700;
}

Numeric weights belong to the font-weight property.

Using a Percentage

.heading {
  font-synthesis-weight: 150%;
}

Percentages are not valid values for this property.

Using a Boolean Value

.heading {
  font-synthesis-weight: false;
}

Boolean values are not supported. Use none to disable synthesis.

Expecting auto to Apply Bold

.heading {
  font-synthesis-weight: auto;
}

This declaration permits synthesis but does not request bold text. Add font-weight: bold or a suitable numeric weight.

Assuming Genuine Bold Is Disabled

The none value prevents artificial emboldening. It does not disable genuine bold font faces.

Disabling Synthesis Without Providing Font Weights

If a custom font lacks a bold face, disabling synthesis may cause headings or emphasized text to appear lighter than expected.

Confusing font-weight with font-synthesis-weight

The font-weight property requests the weight. The font-synthesis-weight property controls whether a missing heavier weight may be synthesized.

Ignoring Shorthand Reset Behavior

A later font-synthesis declaration can reset the earlier font-synthesis-weight value.

Important Considerations

Keep the following points in mind when using the font-synthesis-weight property:

  • Purpose: Controls synthetic bold font weights.
  • Property type: Longhand of font-synthesis.
  • Initial value: auto.
  • Inheritance: The property is inherited.
  • Applies to: All elements and text.
  • auto: Permits synthetic bolding.
  • none: Prevents synthetic bolding.
  • font-weight: Requests the desired font weight.
  • font-synthesis: Provides shorthand control through the weight keyword.
  • Genuine weights: Existing font faces remain available when synthesis is disabled.
  • Synthetic weights: Browsers may approximate missing bold weights by thickening glyphs.
  • Font matching: Available font faces are considered before synthesis.
  • Custom fonts: Provide the font weights needed for headings and emphasized text.
  • Variable fonts: The wght axis may provide a range of genuine font weights.
  • Shorthand reset: Later font-synthesis declarations can override the longhand.
  • Typography: Genuine bold faces generally provide more balanced letterforms and spacing.
  • Accessibility: Preserve semantic importance and ensure bold text remains visually distinguishable.
  • Browser support: Check compatibility when supporting older browsers.

Use font-synthesis-weight: none when artificial emboldening should be prevented and suitable font weights are available. Otherwise, allowing synthesis can help preserve visible bold emphasis when a font lacks the requested heavier face.

Browser Support

The CSS font-synthesis-weight property is Widely available in modern browsers, including current versions of Chrome, Edge, Firefox, and Safari.

Older browser versions may not recognize the longhand property. Browsers that do not support it ignore the declaration and use their existing font synthesis behavior.

Basic Example

.heading {
  font-synthesis-weight: none;
}

Feature Detection

@supports (font-synthesis-weight: none) {
  .heading {
    font-synthesis-weight: none;
  }
}

Fallback Using font-synthesis

.heading {
  font-synthesis: none;
  font-synthesis-weight: none;
}

The shorthand provides a broader fallback for browsers that support font-synthesis but not the individual longhand. However, it also disables other types of font synthesis, including synthetic italic and oblique styles.

Important Consideration

Use the shorthand fallback only when disabling all synthesis types is acceptable. Otherwise, rely on the longhand and provide genuine font weights.

For current compatibility information, visit Can I Use? and search for font-synthesis-weight.

Specifications

The font-synthesis-weight property is defined in the CSS Fonts Module, which describes browser-generated font weights and the controls available to authors.

CSS Fonts Module Level 4: font-synthesis-weight

The module also defines the font-synthesis shorthand, font matching rules, and related font weight properties.

CSS Fonts Module Level 4

For additional explanations and examples, see MDN Web Docs.

MDN Web Docs: font-synthesis-weight