TextRendererApi

interface TextRendererApi

Inheritors

AndroidTextRenderer
JsTextRenderer
JvmTextRenderer
WasmTextRenderer

Functions

Link copied to clipboard
open fun createTextLayout(text: String, areaSize: Vector2f, reference: FontReference): TextLayout
abstract fun createTextLayout(text: String, areaSize: Vector2f, font: PixelFont): TextLayout
Link copied to clipboard
abstract fun drawText(renderer: Renderer2D, text: String, reference: FontReference, matrix: Matrix3f, availableArea: Vector2f = Vector2f(100f), color: Color = Colors.WHITE, backgroundColor: Color? = null): TextLayout
Link copied to clipboard
abstract fun drawTextLayout(renderer: Renderer2D, matrix: Matrix3f, color: Color, layout: TextLayout)
Link copied to clipboard
open fun drawTextLayoutMetrics(renderer: Renderer2D, matrix: Matrix3f, font: FontReference, layout: TextLayout)
abstract fun drawTextLayoutMetrics(renderer: Renderer2D, matrix: Matrix3f, font: PixelFont, layout: TextLayout)
Link copied to clipboard
abstract fun getPixelFont(reference: FontReference): PixelFont