This shows you the differences between two versions of the page.
Next revision | Previous revisionLast revisionBoth sides next revision | ||
ideas:bad-font-metrics [2018/01/12 10:38] – created fantasai | ideas:bad-font-metrics [2018/01/12 10:49] – [List of Font Metrics Used by CSS] fantasai | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Bad Font Metrics Are Bad ====== | + | ====== Bad Font Metrics Are Bad: Why Good Font Metrics Matter |
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 ===== |