NativeLayoutResult

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).

Constructors

Link copied to clipboard
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)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val size: ERROR CLASS: Symbol not found for IntSize
Link copied to clipboard
Link copied to clipboard