Synced
TextGlyph.Constructor
Section titled “TextGlyph.Constructor”
- Describes one positioned glyph emitted by Unicode shaping.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Text
Declaration
Section titled “Declaration”public Inno.Text.TextGlyph.TextGlyph(uint glyphId, uint cluster, float advanceX, float advanceY, float offsetX, float offsetY)Parameters
Section titled “Parameters”Parameter glyphId: The glyph identifier in the font face that produced this layout.
Parameter cluster: The source cluster index reported by the backend. The FreeType/HarfBuzz backend reports a UTF-8 byte offset, not a UTF-16 character index.
Parameter advanceX: The horizontal pen advance in logical pixels, including backend-applied letter spacing.
Parameter advanceY: The vertical pen advance in logical pixels, including backend-applied letter spacing.
Parameter offsetX: The horizontal placement offset from the pen position in logical pixels.
Parameter offsetY: The vertical placement offset from the pen position in logical pixels.