property
font-optical-sizing — CSS reference
Controls automatic selection of a variable font optical-size axis when present. Initial auto; inherited. It can change stroke details and proportions for text size; it does not add such an axis to a static font. Explicit opsz settings can override automatic selection.
Formal Syntax & Structure
css syntaxcss
auto | noneWorking 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-optical-sizing:none}</style><body><p id="a">Office 012345 — typography</p><p id="b" lang="fa" dir="rtl">سلام دنیا</p></body></html>