Skip to main content

Module metrics

Module metrics 

Source
Expand description

Metrics for a font and its glyphs.

Modules§

global 🔒
Font-wide metrics.
glyph 🔒
Per-glyph metrics.
scaled 🔒
Metrics in a caller’s own units.
style 🔒
Metrics used to style text and decorations.

Structs§

Decoration
The position and thickness of an underline or strikethrough.
GlyphExtents
Where a glyph’s ink sits, relative to its origin.
GlyphMetrics
Measurements of individual glyphs at one location.
LineBox
Ascender, descender and line gap from one table.
LineExtents
The two ends of a line, in whatever unit a caller uses.
Metrics
Font-wide metrics.
Scale26Dot6
Scales design-unit metrics to 26.6 pixels with 16.16 fixed-point arithmetic.
ScaleF32
Scales font units to f32 pixels.
ScaledGlyphMetrics
Measurements of individual glyphs, in a caller’s own units.
ScaledMetrics
Measurements of a font as a whole, in a caller’s own units.
ScaledStyleMetrics
Style measurements in a caller’s own units.
ScriptMetrics
The size and placement of a subscript or superscript em box.
StyleMetrics
Font-wide style measurements from OS/2 and post, or Type 1 font info.

Traits§

Scale
Converts a measurement in font units into a caller’s own units.

Functions§

metric 🔒
Returns a design-unit metric with its location’s delta applied.