Native Layout Result
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).