ShapeResult

data class ShapeResult(val glyphIndex: Int, val offset: Vector2, val advance: Vector2)(source)

Represents the result of a shape operation, which is generally utilized in the rendering or layout process of text or graphical shapes.

Constructors

Link copied to clipboard
constructor(glyphIndex: Int, offset: Vector2, advance: Vector2)

Properties

Link copied to clipboard

A 2D vector representing the advance to apply after positioning the glyph. This is used to determine the next position in the layout for rendering.

Link copied to clipboard

The index of the glyph in the font. This typically references the visual representation of a character or shape in the font's glyph table.

Link copied to clipboard

A 2D vector indicating the positional offset to apply to the glyph during placement. This can be used to adjust its position for kerning or other layout needs.