Skip to main content

Module glyph

Module glyph 

Source
Expand description

Per-glyph metrics.

Structs§

ExtentsSources 🔒
The sources available in a font, in the order they are tried.
GlyphExtents
Where a glyph’s ink sits, relative to its origin.
GlyphMetrics
Measurements of individual glyphs at one location.

Enums§

ExtentsSource 🔒
A table that can measure a glyph’s ink.

Constants§

MAX_EXTENTS_SOURCES 🔒
The most entries ExtentsSources holds.

Functions§

control_box 🔒
The box a loaded outline’s points stay within.
empty 🔒
Returns the metrics of a font that states none.
exact_extents 🔒
Widens floating-point extents to the fixed-point type the metrics report.
extents_from_bounds 🔒
Turns a charstring’s box into a bearing and a size.
extents_from_corners 🔒
Turns the corners of a box into a bearing and a size.
glyf_v_origin_from_context 🔒
The loaded top phantom point, retaining fractional gvar deltas.
varied_control_box 🔒
The box a glyph’s points stay within, at the location tables states.