Path: blob/main/files/en-us/web/css/@font-face/font-variation-settings/index.md
6529 views
------{{CSSRef}}
The font-variation-settings CSS descriptor allows authors to specify low-level OpenType or TrueType font variations in the {{cssxref("@font-face")}} rule.
Syntax
Values
normal: Text is laid out using default settings.
<string> <number>: When rendering text, the list of OpenType axis names is passed to the text layout engine to enable or disable font features. Each setting is always a {{cssxref("<string>")}} of 4 ASCII characters, followed by a {{cssxref("number")}} indicating the axis value. If the
<string>has more or fewer characters or contains characters outside the U+20 - U+7E codepoint range, the whole property is invalid. The<number>can be fractional or negative.
Formal definition
{{cssinfo}}
Formal syntax
{{csssyntax}}
Examples
Setting font weight and stretch in a @font-face rule
Specifications
{{Specifications}}
Browser compatibility
{{Compat}}
See also
{{cssxref("@font-face/font-display", "font-display")}}
{{cssxref("@font-face/font-family", "font-family")}}
{{cssxref("@font-face/font-stretch", "font-stretch")}}
{{cssxref("@font-face/font-style", "font-style")}}
{{cssxref("@font-face/font-weight", "font-weight")}}
{{cssxref("font-feature-settings", "font-feature-settings")}}
{{cssxref("@font-face/src", "src")}}
{{cssxref("@font-face/unicode-range", "unicode-range")}}