For example if I use one font, display text size 10 and then use size 50 I bet glyphs are rendered only if I exceed last maximum size?
No, actually the glyphs are rendered at every requested size. Scaling down a glyph is nearly as ugly as scaling it up
So in this case you will end up with two textures: one containing the glyphs at size 10, and the other for size 50.
If this texture management causes problems, I can add functions to have more control over it (Clear(size), Preload(string, size), etc.). I'll just wait for "real situations" feedback
Last one: rendered bold and regular glyphs are held separately?
Absolutely. A bold character produces a new glyph, even if the non-bold character is already loaded.
What are your next plans for sf::String, sf::Text, sf::Font classes ?
- sf::String: waiting for more feedback or better ideas; I'm not really satisfied with the current implementation but it will probably stay like that for now
- sf::Text: I'm going to implement text directions (right-to-left, top-to-bottom, etc.)
- sf::Font: I read two excellent articles about text rendering, and tried to improve the text quality in my implementation but I failed so far. I'm also waiting for feedback, but I'm pretty satisfied with the current implementation. It can be optimized regarding texture usage, but I need to tweak sf::Image to do so.