I need to display text in my game, who doesn't.
I had originally thought that I could just statically render all the text I would need to images and use those. I'm starting to think that is a bad idea. I figure I'll have to internationalize it in the future, and the game has score counters and such which cannot be statically rendered. It looks like I'll need to use a more dynamic approach.
So my question.
How do games usually handle font loading?
- Load the TTF directly and render it to a texture atlas.
- Pre-bake the TTF into an image with a configuration file storing locations and kerning.