FlattenedOutline class
A glyph outline flattened once in em space (y-up, origin on the baseline) and cached per outline identity.
The font engine hands back the same PdfPath instance for every
occurrence of a glyph (PdfFontInfo.outlineFor memoizes), so an
Expando keyed by that identity gives a process-wide cache that dies
with the font - the same pattern as the canvas device's _glyphPaths
ui.Path cache. Callers transform the cached polylines straight into
device space (see StripGenerator.fillOutline) instead of re-running
adaptive flattening per occurrence.
Properties
- bounds → FlatBounds?
-
Em-space bounds of the flattened outline (memoized), or null when the
outline is empty.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
subpaths
→ List<
FlatSubpath> -
Em-space polylines. Fill semantics: every subpath is implicitly closed.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
of(
PdfPath outline) → FlattenedOutline -
The cached flattening of
outline, flattening on first sight.