Native Layout Result
data class NativeLayoutResult(val glyph_count: Int, val glyph_ids: List<Int>, val positions: List<Float>, val atlas_rects: List<Float>, val glyph_offsets: List<Float>, val total_width: Float, val total_height: Float, val ascent: Float, val descent: Float)
Represents the raw layout result from the native text engine (Rust). Contains positioning and sizing information for a block of text.
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).