Reference Codebot.Render.FontStash.pas
Part of the Codebot Render package
The Codebot.Render.FontStash unit is a Pascal port of fontstash by Mikko Mononen. It caches the glyphs made by Codebot.Render.TrueType in a texture atlas and produces textured quads for drawing text with a given size, color, spacing, blur, and alignment. All strings are expected to be UTF-8.