concept
font-metrics — CSS reference
Font metrics include ascent, descent, line gap, and glyph measurements such as x-height and advance widths. They depend on the face and may differ from nominal CSS font size. Line-height defines line sizing, while metric overrides can align fallback geometry.
Formal Syntax & Structure
css syntaxcss
font-size:20px; line-height:1.5;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:20px;line-height:1.5}</style><body><p id="a">Office 012345 — typography</p><p id="b" lang="fa" dir="rtl">سلام دنیا</p></body></html>