Skip to main content

Module length

Module length 

Source
Expand description

Length type for dimensional measurements

All lengths are stored internally as millipoints (1/1000 of a point). This provides sufficient precision while using integer arithmetic.

Font-relative units (em, ex) are stored as enum variants and require a FontContext to resolve to absolute lengths.

Structs§

FontContext
Context for resolving font-relative units
Length
Length measurement stored as millipoints (1/1000 point)

Enums§

LengthUnit
Unit type for length measurements