Skip to content

0.2.0

Choose a tag to compare

@FinochioM FinochioM released this 08 Jun 18:31
· 18 commits to master since this release

v0.2.0

Text rendering is now available in S2D via stb_truetype.

Load a font from any .ttf file and draw text:

val font = Font.load("assets/font.ttf", 32.0f).getOrElse {}
Text.draw("test", 100, 100, font, Color.White)
Text.measure("test", font) // returns Vector2
Font.unload(font)

Full Changelog: 0.1.9...0.2.0