Skip to content

fontlab.FontMetrics · declarations 001

Back to fontlab.FontMetrics

ascender instance-attribute

ascender: Any

double

The ascender line position above the baseline (positive value). Typically the height of tall lowercase letters like 'd', 'h', 'l'. In a 1000 UPM font, commonly around 700–800.

Source: FontLab Proteus API documentation

capsHeight instance-attribute

capsHeight: Any

double

The cap height — the top of uppercase letters like 'H', 'I'. Usually slightly below the ascender. In a 1000 UPM font, commonly around 620–720.

Source: FontLab Proteus API documentation

descender instance-attribute

descender: Any

double

The descender line position below the baseline (negative value). This is the lowest point of letters like 'g', 'p', 'y'. In a 1000 UPM font, commonly around -200 to -300.

Source: FontLab Proteus API documentation

init

init() -> Any

init()

Resets all values to their defaults (0 for all except UPM which becomes 1000).

Source: FontLab Proteus API documentation

lineGap instance-attribute

lineGap: Any

double

Extra vertical space added between lines when text is laid out at 100% leading. Most text fonts set this to 0, leaving the application to control line spacing. Display fonts sometimes use a non-zero value to suggest minimum spacing.

Source: FontLab Proteus API documentation

upm instance-attribute

upm: Any

double

Units per em — the fundamental scale of the font grid. Most professional fonts use 1000 UPM. A larger UPM (e.g. 2048 for TrueType) allows more precise positioning but is otherwise equivalent.

Source: FontLab Proteus API documentation

xHeight instance-attribute

xHeight: Any

double

The x-height — the top of the lowercase letters like 'x', 'n', 'o'. A major design parameter that affects the perceived size and readability of the typeface. In a 1000 UPM font, commonly around 450–550.

Source: FontLab Proteus API documentation