The font-synthesis
CSS property controls which missing typefaces, bold or italic, may be synthesized by the browser.
Initial value | weight style |
---|---|
Applies to | all elements. It also applies to ::first-letter and ::first-line . |
Inherited | yes |
Media | visual |
Computed value | as specified |
Animation type | discrete |
Canonical order | order of appearance in the formal grammar of the values |
font-synthesis: none; font-synthesis: weight; font-synthesis: style; font-synthesis: weight style; /* Global values */ font-synthesis: initial; font-synthesis: inherit; font-synthesis: unset;
none
weight
style
none | [ weight || style ]
<div class="syn">Don't try and synthesize me!</div>
.syn {font-synthesis: none;}
Specification | Status | Comment |
---|---|---|
CSS Fonts Module Level 3 The definition of 'font-synthesis' in that specification. | Candidate Recommendation | Initial definition |
Feature | Firefox (Gecko) | Chrome | Internet Explorer | Opera | Safari (WebKit) |
---|---|---|---|---|---|
Basic support | 34 (34) [1] | ? | ? | ? | 10.0 |
Feature | Android | Firefox Mobile (Gecko) | IE Phone | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|
Basic support | ? | 34.0 (34)[1] | ? | ? | ? |
[1] Experimental implementation was available since Gecko 33. It was governed by the preference layout.css.font-features.enabled
defaulting to true
on Nightly and Aurora only.
© 2005–2017 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/CSS/font-synthesis