ShapedGlyph class
A single glyph after text shaping, with all metrics resolved to pixels.
Produced by shapeText for each logical character in a text span.
Constructors
Properties
- advance → double
-
Horizontal advance (in pixels) including kerning and letterSpacing.
final
- codePoint → int
-
The Unicode code point this glyph represents.
final
- color → Color
-
Resolved text colour.
final
- decorationColor → Color?
-
Colour override for the text decoration, or null to use color.
final
- decorationMask → int
-
Bit mask of active text decorations.
0x1 = underline, 0x2 = overline, 0x4 = line-through.
final
- font → TtfFont
-
The TtfFont that contains this glyph.
final
- fontKey → String
-
Font cache key (from
_fontCacheKey) used to look up tessellated glyph polygon data in_glyphPolyCache.final - fontSize → double
-
Resolved font size in logical pixels.
final
- glyphId → int
-
The glyph ID within font.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isNewline → bool
-
True if this glyph represents a newline character (U+000A).
no setter
- isSpace → bool
-
True if this glyph represents a space character (U+0020).
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
shadows
→ List<
Shadow> ? -
Text shadows to render behind this glyph, or null if none.
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