drawText

fun RenderContext2D.drawText(text: RichTextData, pos: Point = Point.ZERO, size: Size = Size(10000, 10000), wordWrap: Boolean = true, includePartialLines: Boolean = false, ellipsis: String? = null, fill: Paint? = null, stroke: Stroke? = null, align: TextAlignment = TextAlignment.TOP_LEFT, includeFirstLineAlways: Boolean = true)
fun RenderContext2D.drawText(placements: RichTextDataPlacements, textRangeStart: Int = 0, textRangeEnd: Int = Int.MAX_VALUE)
fun RenderContext2D.drawText(text: String, font: BitmapFont, textSize: Double = 16.0, pos: Point = Point.ZERO, color: RGBA = Colors.WHITE, baseline: Boolean = false, textRangeStart: Int = 0, textRangeEnd: Int = Int.MAX_VALUE)