Is it possible to make a SpriteFont from system fonts at run-time?
My interest has to do with supporting a variety of font sizes without having to prep them all ahead of time.
It would also side step issues with distributing popular, but proprietary fonts.
There’s no support for building a SpriteFont at runtime. You can rasterize glyphs from a TTF using TrueTypeSharp, which you can then copy to a texture to draw to the screen. I’ve done dynamic font texture page management for other game engines before, and I plan to do the same using TrueTypeSharp for MonoGame at some point when things quieten down a bit.
2 Likes