Is it possible to have scalable fonts, or ttfs in lemur?
Set the size differently and they scale.
Do you mean “scale and stay sharp as if they were generated at different resolutions”?
No… you have to pregenerate them at the desired resolutions.
Distance fields would help with this but no one has implemented it yet… the existing BitmapText code is super fragile.
I’m diving into this as well. For UI it is most of the time sufficient and sharp enough to just have these bitmaps (char atlas images). I do as @pspeed said, just prerender my desired resolutions which is small medium large (and sometimes xlarge).
As Lemur bases on bitmaps there are not a lot of options, there are some 3rd party libs to render those bitmaps on the fly, can be cool as you do not have to do it upfront.
I wrote a simple bitmap generator (with some help of chatGPT as I didn’t really know how the fnt part is done, now I know a bit more) where I can render just the characters I really need which is for chinese fonts for example super helpful. But you can also render what ever you want into your chars and have some “secrete” language or just emoijs…