Package-level declarations

Types

Link copied to clipboard
PixelFontBuilder
Link copied to clipboard
Link copied to clipboard
data class SymbolLayout(val pivot: Vector2f, val symbol: PixelFontSymbol, val symbolArea: Box2f)
Link copied to clipboard
data class TextLayout(val metrics: FontMetrics, val text: String, val symbols: List<SymbolLayout>)

Work only for traditional languages -- one symbol -- one glyph

Link copied to clipboard
Link copied to clipboard
interface TextRendererApi
Link copied to clipboard

Properties

Link copied to clipboard

Functions

Link copied to clipboard
fun Renderer2D.drawText(text: String, reference: FontReference, matrix: Matrix3f, availableArea: Vector2f = Vector2f(Float.POSITIVE_INFINITY), color: Color = Colors.WHITE, backgroundColor: Color? = null): TextLayout
fun Renderer2D.drawText(text: String, reference: FontReference, position: Vector2f, availableArea: Vector2f = Vector2f(Float.POSITIVE_INFINITY), color: Color = Colors.WHITE, backgroundColor: Color? = null): TextLayout