Skip to main content

Module instance

Module instance 

Source
Expand description

Resolution of COLR paints at a location in variation space.

Structsยง

ColorStops ๐Ÿ”’
Color stops from a ColorLine or VarColorLine.
ColrInstance ๐Ÿ”’
A COLR table bound to a location in variation space for resolving paints.
ResolvedColorStop ๐Ÿ”’
A ColorStop or VarColorStop with its variation deltas applied.

Enumsยง

MaybeBrush ๐Ÿ”’
Like Option<Brush>, with an extra variant for a valid brush that paints nothing.
ResolvedPaint ๐Ÿ”’
A Paint with its variation deltas applied.

Functionsยง

make_sorted_resolved_stops ๐Ÿ”’
resolve_clip_box ๐Ÿ”’
Resolves a clip box, applying variation deltas using the given instance.
resolve_clip_box_for_extents ๐Ÿ”’
Resolves a clip box for measuring glyph extents, as HarfBuzz does.
resolve_paint ๐Ÿ”’
Resolves this paint with the given instance.

Type Aliasesยง

PaintId ๐Ÿ”’
Unique paint identifier used for detecting cycles in the paint graph.