This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
ideas:bad-font-metrics [2018/01/12 10:40] – [Bad Font Metrics Are Bad] fantasai | ideas:bad-font-metrics [2018/01/12 10:49] – [List of Font Metrics Used by CSS] fantasai | ||
---|---|---|---|
Line 2: | Line 2: | ||
CSS relies on accurate font metrics to generate correct layouts. Unfortunately, | CSS relies on accurate font metrics to generate correct layouts. Unfortunately, | ||
+ | |||
+ | === List of Font Metrics Used by CSS === | ||
+ | |||
+ | * alphabetic baseline | ||
+ | * ascent ('' | ||
+ | * descent ('' | ||
+ | * ex height ('' | ||
+ | * cap height ('' | ||
+ | * ... | ||
+ | |||
+ | ===== Font-relative Units ===== | ||
+ | |||
+ | CSS has a variety of [[https:// | ||
+ | |||
+ | XXX Draw some examples of cap height and ex height stripes and things. | ||
+ | |||
+ | XXX Gaiji example using ic unit to maintain sizing relative to surrounding text. | ||
===== Superscripts and Subscripts ===== | ===== Superscripts and Subscripts ===== |