property

font-size-adjust — CSS reference

Adjusts used font size to preserve a selected metric across fallback fonts. Initial none; inherited. The numeric form expresses a metric-to-size ratio, defaulting to x-height. It does not replace font-size and can affect layout. The from-font and metric forms need feature-specific checks.

Formal Syntax & Structure

css syntaxcss
none | [ ex-height | cap-height | ch-width | ic-width | ic-height ]? [ <number [0,∞]> | from-font ]

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-size-adjust:0.5}</style><body><p id="a">Office 012345 — typography</p><p id="b" lang="fa" dir="rtl">سلام دنیا</p></body></html>
CSS Reference