Cap Height Percent Of Em
Cap-height percentage of em from measured cap-height and units-per-em font metrics.
Description
Cap-height percentage of em from measured cap-height and units-per-em font metrics.
Cap Height Percent Of Em is a focused tool for the following task. Cap-height percentage of em from measured cap-height and units-per-em font metrics. It reports Cap Height Percent from the values you provide rather than inventing measurements, coefficients, or professional judgment that are not part of the input.
When to use Cap Height Percent Of Em
Use this typography calculation when the font metrics, writing system, layout direction, rendering environment, and measurement units are known.
- Cap Height Units
- Required number.
- Units Per Em
- Required number.
The cited overview of Typography supplies background for the terminology and domain context used by this tool.1
How Cap Height Percent Of Em works
Cap-height percentage of em from measured cap-height and units-per-em font metrics. Inputs are interpreted exactly in the displayed units and the calculation returns the following fields without presentation rounding.
- Cap Height Percent (percent)
- Returned number in percent.
Limitations and assumptions
- Font design, shaping engine, hinting, variable axes, fallback fonts, ligatures, language, display density, and browser rounding can change rendered text measurements.
- Cap Height Units must be at least 0.
- Units Per Em must be at least 0.
- Use finite inputs in the displayed units, preserve source measurements and assumptions, and independently verify consequential decisions.
Alternative or Complementary approaches
Measure the final shaped text in the target renderer and test the actual fonts, languages, viewport sizes, and accessibility settings used in production.
References
-
Typography — Wikipedia contributors
Similar or alternative tools
- Units Per Em Scale Factor
Multiplier that maps font design units to pixels at a requested CSS font size.
- Column Width From Font Size Ch
Approximate column width in pixels from a measured 1ch glyph width and desired character count.
- Leading From Font Size Ratio
Line-height in CSS pixels from font size and a unitless leading multiplier.