property

font-synthesis — CSS reference

Shorthand controls which missing typographic faces may be synthesized. Inherited via longhands, initially allowed. None disables all synthesis covered by the shorthand, not genuine font faces.

Formal Syntax & Structure

css syntaxcss
none | [ weight || style || small-caps || position ]

Working Example

Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>CSS font lab</title><style>body {margin:0} .sample {background:#dcebe9;color:#182e32}
#a{font-synthesis:none}</style><body><p id="a">Office 012345 — typography</p><p id="b" lang="fa" dir="rtl">سلام دنیا</p></body></html>
CSS Reference