struct ShapedGlyph
Swift
struct ShapedGlyph
A shaped glyph, plus which face has to draw it.
canvas.PositionedGlyph carries no face, because it predates fallback: one
run meant one face and the emitter stamped the run's id onto every glyph.
With substitution a single run can mix faces, and glyph ids are
face-relative — shipping the id alone would draw the wrong glyph. Field
names deliberately mirror PositionedGlyph so everything doing caret and
advance arithmetic reads unchanged.
Sources/LavaUI/Font.swift:12
Properties
var advance: Float
Not documented.
Sources/LavaUI/Font.swift:19
var cluster: UInt32
Byte offset into the shaped string (HarfBuzz cluster), rebased onto the parent string when this glyph came from a substituted run.
Sources/LavaUI/Font.swift:16
var fontId: UInt32
Engine face id, as registered by registerWithEngine.
Sources/LavaUI/Font.swift:21
var glyphId: UInt32
Not documented.
Sources/LavaUI/Font.swift:13
var x: Float
Not documented.
Sources/LavaUI/Font.swift:17
var y: Float
Not documented.
Sources/LavaUI/Font.swift:18