Today I Learned

tags


2022/07/04

How to subset fonts:

# in a virtualenv
pip install fonttools brotli zopfli
pyftsubset --help

see:

Also, optical-sized variable fonts look great.


2024/01/29

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.

  • Tall: Language scripts that require extra line height to accommodate larger glyphs … like Arabic, Hindi, Telugu, Thai, and Vietnamese.
  • Dense: Language scripts that require extra line height to accommodate larger glyphs but have different metrics from tall scripts. Includes Chinese, Japanese, and Korean.

Material Design: Language categories