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§
- Font
Context - Context for resolving font-relative units
- Length
- Length measurement stored as millipoints (1/1000 point)
Enums§
- Length
Unit - Unit type for length measurements