at-rule
@font-feature-values — CSS reference
Defines family-specific aliases for alternate OpenType features. Nested blocks include styleset, stylistic, character-variant, swash, ornaments and annotation; integer counts differ. Use aliases through font-variant-alternates. The name does not create a glyph feature.
Formal Syntax & Structure
css syntaxcss
@font-feature-values <family-name># { @styleset { <feature-value-name>: <integer>+; } } (example)Working Example
Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>CSS text lab</title><style>body {margin:0} .sample {background:#dcebe9;color:#182e32}@font-feature-values DemoFont { @styleset { editorial: 1 2; } }#a{font-family:DemoFont,serif;font-variant-alternates:styleset(editorial)}</style><body><p id="a">Design readable interfaces with CSS.</p><p lang="fa" dir="rtl">متن فارسی برای آزمایش چیدمان</p></body></html>