1
0
mirror of https://github.com/google/fonts.git synced 2024-12-18 22:31:31 +03:00
fonts/cc-by-sa/knowledge/glossary/terms/unit/content.md
2022-03-28 12:02:37 -07:00

1.3 KiB
Raw Blame History

A unit is a way of measuring font size, line height, line length, margins, or virtually anything in the practice of typography. Multiple units are in existence, including many historic ones, but points, pixels, and ems (or rems) are the units most relevant to todays digital typesetting needs. Units mark the key integers in a typographic scale.

Different font sizes expressed using a variety of different units.

Some units are absolute—they will always appear at exactly the same size (points, picas, inches, centimeters)—and some units are relative—their final size is dependent on their relation to other properties (percentages, ems, rems, viewport height, viewport maximum size, etc.).

In print, it usually makes the most sense to focus on absolute units. On the web and in apps, it usually makes the most sense to focus on relative units. It could be argued that pixel is both an absolute and relative unit, because although it takes no cues from other elements (in the way that rems or percentages might), the exact physical size of a pixel varies between computing devices.