EngoEngine / engo

Engo is an open-source 2D game engine written in Go.
https://engoengine.github.io
MIT License
1.74k stars 136 forks source link

Use shaping functions rather than a font atlas #732

Open Noofbiz opened 4 years ago

Noofbiz commented 4 years ago

As used in gio, the text is taken from a font file and turned into a shaping function that is utilized by the shaders directly, rather than a texture atlas. Would be a neat way to implement fonts / text that would allow on-the-fly resizing, bolding, changing colors, etc without having to generate a brand new font atlas for each one.