draw Glyph
actual fun DrawScope.drawGlyph(atlasRect: Rect, destOffset: Offset, destSize: Size, color: Color, shadow: Shadow?)
Draws a glyph from the atlas to the canvas with optional shadow.
Parameters
atlas Rect
Source rectangle in the atlas
dest Offset
Destination position on canvas
dest Size
Destination size for scaling
color
Text color
shadow
Optional shadow configuration
expect fun ERROR CLASS: Symbol not found for DrawScope.drawGlyph(atlasRect: ERROR CLASS: Symbol not found for Rect, destOffset: ERROR CLASS: Symbol not found for Offset, destSize: ERROR CLASS: Symbol not found for Size, color: ERROR CLASS: Symbol not found for Color, shadow: ERROR CLASS: Symbol not found for Shadow?? = null)
Draws a glyph from the atlas to the canvas. Uses SDF rendering for crisp text at any scale.
Parameters
scope
The DrawScope to draw into
atlas Rect
The source rectangle in the atlas (x, y, width, height from NativeLayoutResult.atlas_rects)
dest Offset
The destination position on canvas
dest Size
The destination size (for scaling)
color
The text color to render
actual fun DrawScope.drawGlyph(atlasRect: Rect, destOffset: Offset, destSize: Size, color: Color, shadow: Shadow?)
Draws a glyph from the atlas to the canvas with optional shadow.
Parameters
atlas Rect
Source rectangle in the atlas
dest Offset
Destination position on canvas
dest Size
Destination size for scaling
color
Text color
shadow
Optional shadow configuration