NativeLayoutResult

constructor(glyph_count: Int, glyph_ids: List<Int>, positions: List<Float>, atlas_rects: List<Float>, glyph_offsets: List<Float>, total_width: Float, total_height: Float, ascent: Float, descent: Float)

Parameters

glyph_count

Number of glyphs in this result.

glyph_ids

List of glyph IDs (indices in the font).

positions

List of positions (x, y) relative to the baseline.

atlas_rects

List of atlas coordinates (x, y, w, h) for each glyph.

glyph_offsets

List of bearing offsets (x, y) from glyph origin.

total_width

Total width of the text block.

total_height

Total height (bounding box height).

ascent

Font ascent (distance from baseline to top).

descent

Font descent (distance from baseline to bottom).