drawTexts
fun drawTexts(context: DrawContext, drawStyle: DrawStyle, texts: List<String>, positions: List<Vector2>): List<List<GlyphRectangle>>(source)
Draws multiple text strings at specified positions using the provided drawing context and style. The method aligns text with precise position information and applies kerning and text settings based on the given draw style.
Return
A nested list of glyph rectangles representing the dimensions and positioning of the drawn glyphs.
Parameters
context
The drawing context containing transformation matrices and rendering parameters.
drawStyle
The style to apply when drawing, including attributes such as font map, kerning, and text settings.
texts
A list of strings to be drawn.
positions
A list of positions where each corresponding string in the texts
list will be drawn.