CSS font-synthesis-small-caps Property
The font-synthesis-small-caps property controls whether a browser may generate synthetic small-capital letters when the selected font does not provide them.
Small capitals are uppercase-style letterforms designed to appear at approximately the height of lowercase letters. Some fonts contain specially designed small-capital glyphs, while others rely on browsers to approximate them by scaling uppercase letters. This property allows authors to permit or prevent that approximation.
font-synthesis-small-caps Syntax
The font-synthesis-small-caps property accepts auto, none, or a CSS-wide keyword.
Basic Syntax
selector {
font-synthesis-small-caps: auto;
}
Allow Synthetic Small Capitals
selector {
font-synthesis-small-caps: auto;
}
Disable Synthetic Small Capitals
selector {
font-synthesis-small-caps: none;
}
CSS-Wide Keywords
.example {
font-synthesis-small-caps: inherit;
}
.example {
font-synthesis-small-caps: initial;
}
.example {
font-synthesis-small-caps: unset;
}
.example {
font-synthesis-small-caps: revert;
}
.example {
font-synthesis-small-caps: revert-layer;
}
The property does not request small-capital styling by itself. Use font-variant-caps or font-variant to select a small-capital variant.
Property Values
The property has two main values that determine whether synthetic small-capital glyphs are permitted.
| Value | Description |
|---|---|
auto |
Allows the browser to synthesize small-capital letters when the font lacks suitable glyphs. |
none |
Prevents the browser from generating synthetic small-capital letters. |
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 only small-capital synthesis, leaving synthetic weight, style, and position settings independent.
How It Works
When small-capital styling is requested, the browser attempts to use suitable glyphs from the selected font.
Requesting Small Capitals
.label {
font-variant-caps: small-caps;
}
This requests small-capital letterforms for lowercase letters.
Using Genuine Small Capitals
If the font contains the necessary small-capital glyphs, the browser can use them directly.
Using Synthetic Small Capitals
If suitable glyphs are missing and synthesis is permitted, the browser may create an approximation using scaled uppercase letters.
Controlling Synthesis
.label {
font-variant-caps: small-caps;
font-synthesis-small-caps: none;
}
This prevents synthetic small capitals while still allowing genuine small-capital glyphs supplied by the font.
Important Consideration
The property controls whether synthesis is permitted. It does not create genuine small-capital glyphs or guarantee that the selected font supports them.
The auto Value
The auto value allows the browser to synthesize small-capital letters when the font lacks the requested glyphs.
Basic Example
.label {
font-synthesis-small-caps: auto;
}
With Small Capitals
.label {
font-variant-caps: small-caps;
font-synthesis-small-caps: auto;
}
With All Small Capitals
.heading {
font-variant-caps: all-small-caps;
font-synthesis-small-caps: auto;
}
Default Behavior
Because auto is the initial value, browsers may synthesize missing small-capital glyphs when the requested font variant requires them.
Important Consideration
Allowing synthesis does not force synthetic rendering. The browser can still use genuine small-capital glyphs when they are available.
The none Value
The none value prevents the browser from generating synthetic small-capital letters.
Basic Example
.label {
font-synthesis-small-caps: none;
}
Preserve Genuine Small Capitals
.label {
font-variant-caps: small-caps;
font-synthesis-small-caps: none;
}
Custom Typography
.brand-label {
font-family: "Example Serif", Georgia, serif;
font-variant-caps: small-caps;
font-synthesis-small-caps: none;
}
Why Disable Synthesis?
Synthetic small capitals may appear thinner or less balanced than genuine small-capital glyphs. Disabling synthesis can help maintain the intended proportions and stroke weights of a font.
Important Consideration
If the selected font does not contain genuine small capitals, disabling synthesis may cause the browser to display ordinary letterforms instead of the requested small-capital appearance.
Genuine vs. Synthetic Small Capitals
Genuine small capitals are designed as part of the font. Synthetic small capitals are approximations generated when the necessary glyphs are missing.
Genuine Small Capitals
Font designers may adjust stroke weight, width, spacing, and proportions so small capitals remain visually balanced with surrounding text.
Synthetic Small Capitals
A browser may approximate small capitals by converting lowercase letters to uppercase-style shapes and reducing their size.
Comparison
| Feature | Genuine Small Capitals | Synthetic Small Capitals |
|---|---|---|
| Source | Provided by the font | Generated by the browser |
| Letterforms | Specially designed glyphs | Approximated uppercase shapes |
| Stroke weight | May be optically adjusted | May appear thinner after scaling |
| Spacing | Designed for the small-capital glyphs | Depends on browser synthesis |
| Availability | Requires font support | Requires permitted synthesis |
Important Consideration
Genuine small capitals usually provide more refined typography. Synthetic small capitals are useful as a fallback but may not match the font designer's intended appearance.
Using font-variant-caps
The font-variant-caps property selects capitalization variants, while font-synthesis-small-caps controls whether missing small-capital glyphs may be synthesized.
Small Capitals
.label {
font-variant-caps: small-caps;
font-synthesis-small-caps: auto;
}
All Small Capitals
.heading {
font-variant-caps: all-small-caps;
font-synthesis-small-caps: auto;
}
Disable Synthetic Small Capitals
.label {
font-variant-caps: small-caps;
font-synthesis-small-caps: none;
}
Property Comparison
| Property | Purpose |
|---|---|
font-variant-caps |
Requests a capitalization variant. |
font-synthesis-small-caps |
Controls whether missing small-capital glyphs may be synthesized. |
Important Consideration
Use font-variant-caps to request the desired appearance. Use font-synthesis-small-caps only when control over synthetic glyph generation is needed.
Using font-variant
The font-variant shorthand can request small-capital styling without using the more specific font-variant-caps property.
Basic Small Capitals
.label {
font-variant: small-caps;
}
With Synthesis Control
.label {
font-variant: small-caps;
font-synthesis-small-caps: none;
}
All Small Capitals
.heading {
font-variant: all-small-caps;
}
Resetting the Variant
.label {
font-variant: normal;
}
Important Consideration
The font-variant shorthand controls several font variant features. It does not replace the separate font-synthesis controls.
The font-synthesis Shorthand
The font-synthesis shorthand controls several kinds of synthetic font styling, including small capitals.
Allow Small-Capital Synthesis
.label {
font-synthesis: small-caps;
}
Allow Weight, Style, and Small Capitals
.label {
font-synthesis: weight style small-caps;
}
Disable All Synthesis
.label {
font-synthesis: none;
}
Equivalent Longhand
.label {
font-synthesis-small-caps: none;
}
The longhand disables only synthetic small capitals. The shorthand can control multiple synthesis types simultaneously.
Shorthand Reset Behavior
.label {
font-synthesis-small-caps: none;
font-synthesis: weight style small-caps;
}
The later shorthand permits small-capital synthesis again because it resets the constituent longhand properties.
Important Consideration
The small-caps synthesis keyword is newer than the original weight and style controls. Browser support should be checked before relying on it.
OpenType Font Features
Many fonts provide small-capital glyphs through OpenType features. CSS can request these features using high-level font variant properties.
Small Capitals Feature
The OpenType smcp feature provides small-capital substitutions for lowercase letters in compatible fonts.
.label {
font-variant-caps: small-caps;
}
Capitals to Small Capitals
The OpenType c2sc feature provides small-capital substitutions for uppercase letters in compatible fonts.
.heading {
font-variant-caps: all-small-caps;
}
Low-Level Feature Settings
.label {
font-feature-settings: "smcp" 1;
}
Multiple OpenType Features
.heading {
font-feature-settings: "smcp" 1, "c2sc" 1;
}
Preferred Approach
Use font-variant-caps for ordinary small-capital styling. The font-feature-settings property provides lower-level control when a particular OpenType feature must be enabled directly.
Important Consideration
Enabling an OpenType feature does not create missing glyphs. The selected font must contain the corresponding feature for genuine small-capital substitutions to occur.
Font Selection and Fallbacks
The availability of genuine small capitals depends on the selected font and its supported character set.
Font with Small-Capital Features
.label {
font-family: "Example Serif", Georgia, serif;
font-variant-caps: small-caps;
font-synthesis-small-caps: none;
}
If the selected font provides genuine small capitals, the browser can use them without synthesis.
Font Without Small-Capital Features
.label {
font-family: Arial, sans-serif;
font-variant-caps: small-caps;
font-synthesis-small-caps: auto;
}
When genuine small capitals are unavailable, the browser may approximate them if synthesis is permitted.
Fallback Fonts
Fallback fonts may provide different capitalization features. A font used for one character or writing system may contain genuine small capitals, while another fallback may require synthesis.
Custom Web Fonts
When using a custom font, check whether it includes the OpenType features and glyph coverage needed for the intended small-capital styling.
Important Consideration
Do not assume that a font family provides genuine small capitals simply because it supports font-variant-caps: small-caps. The browser may be generating the appearance synthetically.
Inheritance
The font-synthesis-small-caps property is inherited. Child elements use the parent's setting unless they specify another value.
Inherited Setting
.container {
font-synthesis-small-caps: none;
}
<div class="container">
<p class="label">Small Capital Text</p>
</div>
Override a Child Element
.container {
font-synthesis-small-caps: none;
}
.container .allow-synthesis {
font-synthesis-small-caps: auto;
}
Explicit Inheritance
.child {
font-synthesis-small-caps: inherit;
}
Reset to the Initial Value
.child {
font-synthesis-small-caps: initial;
}
The initial value is auto.
Important Consideration
Inherited synthesis settings can affect descendants that use different font families. The final appearance depends on the available glyphs and browser support.
font-synthesis-small-caps Example
This example compares small-capital styling with synthesis permitted and disabled.
The visible difference depends on the browser and the selected font. Some fonts provide genuine small capitals, while others rely on synthetic rendering.
HTML Example
<div class="small-caps-demo">
<p class="demo-label">Normal capitalization</p>
<p class="normal-text">Creative Typography</p>
<p class="demo-label">Small capitals - synthesis allowed</p>
<p class="synthesis-allowed">Creative Typography</p>
<p class="demo-label">Small capitals - synthesis disabled</p>
<p class="synthesis-disabled">Creative Typography</p>
</div>
CSS Example
.small-caps-demo {
font-family: Georgia, serif;
}
.small-caps-demo p {
margin: 0 0 16px;
}
.small-caps-demo .demo-label {
font: 600 13px/1.4 Arial, sans-serif;
}
.small-caps-demo .normal-text,
.small-caps-demo .synthesis-allowed,
.small-caps-demo .synthesis-disabled {
font-size: 28px;
line-height: 1.4;
}
.normal-text {
font-variant-caps: normal;
}
.synthesis-allowed {
font-variant-caps: small-caps;
font-synthesis-small-caps: auto;
}
.synthesis-disabled {
font-variant-caps: small-caps;
font-synthesis-small-caps: none;
}
Normal capitalization
Creative Typography
Small capitals - synthesis allowed
Creative Typography
Small capitals - synthesis disabled
Creative Typography
The first line displays normal capitalization. The second permits the browser to generate small capitals if genuine glyphs are unavailable.
The third line disables synthetic small capitals. If the font provides genuine small-capital glyphs, the second and third lines may look identical. If genuine glyphs are unavailable and the browser supports the synthesis control, the third line may display ordinary letterforms instead.
Common Mistakes
The most common mistake is expecting font-synthesis-small-caps to apply small-capital styling by itself.
Using small-caps as a Value
.label {
font-synthesis-small-caps: small-caps;
}
This declaration is invalid. The longhand accepts only auto and none, along with CSS-wide keywords.
Using true or false
.label {
font-synthesis-small-caps: false;
}
Boolean values are not supported. Use none to disable synthesis.
Using a Percentage
.label {
font-synthesis-small-caps: 75%;
}
Percentages are not valid values for this property.
Expecting the Property to Create Small Capitals
.label {
font-synthesis-small-caps: auto;
}
This declaration only permits synthesis. Add font-variant-caps: small-caps to request small-capital styling.
Assuming Every Font Contains Genuine Small Capitals
Many fonts do not provide the OpenType features needed for genuine small-capital glyphs.
Disabling Synthesis Without Testing
If genuine small capitals are unavailable, disabling synthesis may remove the intended visual effect.
Confusing font-variant-caps with font-synthesis-small-caps
The first property requests a capitalization variant. The second controls whether missing small-capital glyphs may be synthesized.
Ignoring Shorthand Reset Behavior
A later font-synthesis declaration can reset the earlier font-synthesis-small-caps value.
Assuming Universal Browser Support
The property is newer than the established font-variant and font-variant-caps properties. Check compatibility before relying on it.
Important Considerations
Keep the following points in mind when using the font-synthesis-small-caps property:
- Purpose: Controls synthetic small-capital glyphs.
- Property type: Longhand of
font-synthesis. - Initial value:
auto. - Inheritance: The property is inherited.
- Applies to: All elements and text.
- auto: Permits synthetic small capitals.
- none: Prevents synthetic small capitals.
- Font variants: Use
font-variant-capsto request small-capital styling. - font-variant: Provides shorthand control over capitalization variants.
- font-synthesis: Provides shorthand control through the
small-capskeyword. - Genuine glyphs: May be supplied through OpenType font features.
- Synthetic glyphs: May be generated by scaling uppercase letterforms.
- OpenType features:
smcpandc2scsupport small-capital substitutions. - Font selection: The result depends on the selected font and its available glyphs.
- Fallback fonts: Different fonts may provide different small-capital features.
- Shorthand reset: Later
font-synthesisdeclarations can override the longhand. - Typography: Genuine small capitals generally provide more balanced proportions and stroke weights.
- Accessibility: Keep text readable and avoid using capitalization changes as the only way to convey important information.
- Browser support: Compatibility may be limited or vary by browser version.
Use font-synthesis-small-caps: none when genuine small-capital typography is important and the selected font provides the necessary glyphs. Otherwise, allowing synthesis can provide a useful visual fallback.
Browser Support
The CSS font-synthesis-small-caps property has Limited availability compared with established capitalization properties such as font-variant and font-variant-caps.
Support may vary across Chrome, Edge, Firefox, Safari, and their versions. Browsers that do not recognize the property ignore the declaration and use their existing font synthesis behavior.
Basic Example
.label {
font-synthesis-small-caps: none;
}
Feature Detection
@supports (font-synthesis-small-caps: none) {
.label {
font-synthesis-small-caps: none;
}
}
Progressive Enhancement
.label {
font-variant-caps: small-caps;
}
@supports (font-synthesis-small-caps: none) {
.label {
font-synthesis-small-caps: none;
}
}
This approach requests small-capital styling in browsers that support font-variant-caps and applies the synthesis restriction only when the newer property is recognized.
Fallback Behavior
Browsers without support for font-synthesis-small-caps may continue synthesizing small capitals when genuine glyphs are unavailable.
For current compatibility information, visit Can I Use? and search for font-synthesis-small-caps.
Specifications
The font-synthesis-small-caps property is defined in the CSS Fonts Module, which describes font synthesis controls and small-capital glyph behavior.
CSS Fonts Module Level 4: font-synthesis-small-caps
The CSS Fonts Module also defines the font-synthesis shorthand and related font variant properties.
For additional explanations and examples, see MDN Web Docs.
