Today I Learned

2024/01/29

typography css

Typographic Units

Absolute distance

NameCSS Unitlength
Picaspc1/6 inch
Pointspt1/72 inches

https://developer.mozilla.org/en-US/docs/Learn/CSS/Building_blocks/Values_and_units#absolute_length_units

Font-relative units

Lines & measurements

Typography line terms

Cap height

Cap height refers to the height of a typeface’s flat capital letters (such as M or I) measured from the baseline.

Material Design: typographic properties reference

ascender   _
cap height _______________
                 /\     |
median     _    /  \    |
               / /\ \   |
              / ____ \  |
baseline   _ /_/____\_\_|_

descender  _

x-height

X-height refers to the height of the lowercase x for a typeface, and it indicates how tall or short each glyph in a typeface will be.

Material Design: typographic properties

ascender   _
cap height _

median     _____________
               \ \/ / |
                >  <  |
baseline   ____/_/\_\_|_

descender _

Descender height

ascender   _
cap height _

median     _   _ __
              | '_ \
              | |_) |
baseline______| .__/_____
              | |      |
descender_____|_|______|_

Ascender height

ascender   _________
cap height _ | |
             | |
median     _ | |__
             | '_ \
             | |_) |
baseline   _ |_.__/

descender  _

Language categories

For ease of internationalization, Google has categorized languages into three categories: English-like, tall, and dense.

Material Design: Language categories