font-synthesis
Quick Summary for font-synthesis
The font-synthesis CSS property controls which missing typefaces, bold, italic, or small-caps, may be synthesized by the browser.
Code Usage for font-synthesis
font-synthesis: none; font-synthesis: weight; font-synthesis: style; font-synthesis: small-caps; font-synthesis: weight style small-caps;  /* Global values */ font-synthesis: inherit; font-synthesis: initial; font-synthesis: revert; font-synthesis: unset; 
More Details for font-synthesis

font-synthesis

The font-synthesis CSS property controls which missing typefaces, bold, italic, or small-caps, may be synthesized by the browser.

Syntax

font-synthesis: none; font-synthesis: weight; font-synthesis: style; font-synthesis: small-caps; font-synthesis: weight style small-caps;  /* Global values */ font-synthesis: inherit; font-synthesis: initial; font-synthesis: revert; font-synthesis: unset; 

Values

none

Indicates that no bold, italic, nor small-caps typeface may be synthesized.

weight

Indicates that a bold typeface may be synthesized if needed.

style

Indicates that an italic typeface may be synthesized if needed.

small-caps

Indicates that a small-caps typeface may be synthesized if needed.

Description

Most standard Western fonts include italic and bold variants, and some fonts include a small-caps variant. However, many fonts do not. Fonts used for Chinese, Japanese, Korean and other logographic scripts tend not to include these variants, and synthesizing them may impede the legibility of the text. In these cases, it may be desirable to switch off the browser's default font-synthesis.

Formal definition

Initial valueweight style
Applies toall elements. It also applies to ::first-letter and ::first-line.
Inheritedyes
Computed valueas specified
Animation typediscrete

Formal syntax

none | [ weight || style || small-caps ]

Examples

Disabling font synthesis

HTML
<em class="syn">Synthesize me! 站直。</em> <br/> <em class="no-syn">Don't synthesize me! 站直。</em> 
CSS
em {   font-weight: bold; } .syn {   font-synthesis: style weight small-caps; } .no-syn {   font-synthesis: none; } 
Result

Specifications

Specification
CSS Fonts Module Level 4 # font-synthesis

See also

font-style font-weight

No Items Found.

Add Comment
Type in a Nick Name here
 
Other Categories in CSS
css
Search CSS
Search CSS by entering your search text above.
Welcome

This is my test area for webdev. I keep a collection of code here, mostly for my reference. Also if i find a good link, i usually add it here and then forget about it. more...

Subscribe to weekly updates about things i have added to the site or thought interesting during the last week.

You could also follow me on twitter or not... does anyone even use twitter anymore?

If you found something useful or like my work, you can buy me a coffee here. Mmm Coffee. ☕

❤️👩‍💻🎮

🪦 2000 - 16 Oct 2022 - Boots
Random Quote
You want to be the best, you MUST put the long yards in! Nothing comes easy in life so stop wishing and start DOING! So many people would rather bitch and moan than help themselves. Dont be one of those negative drainers, start today, make a small change and keep going forwards with this attitude!
Unknown
Random CSS Property

scale3d()

The scale3d() CSS function defines a transformation that resizes an element in 3D space. Because the amount of scaling is defined by a vector, it can resize different dimensions at different scales. Its result is a <transform-function> data type.
scale3d() css reference