Original Post
I'm about to implement FreeType into my engine, and I was wondering about the best (fastest) way to render text. The two ways that I'm considering are:
1. Render the entire font to a texture, and draw a textured quad for each character in the string. (As per the NeHe tutorials)
2. Render the string to a texture, and draw a textured quad for the entire string. (As implemented in SDL_ttf)
At the moment I'm leaning toward the second choice due to the fact that I plan to support multiple languages, including ones with characters outside of the U+0 to U+FF range. I would have no idea how to determine which characters to render to the texture beforehand with the first choice. Which method have you found most suitable in games? Any help is appreciated.
1. Render the entire font to a texture, and draw a textured quad for each character in the string. (As per the NeHe tutorials)
2. Render the string to a texture, and draw a textured quad for the entire string. (As implemented in SDL_ttf)
At the moment I'm leaning toward the second choice due to the fact that I plan to support multiple languages, including ones with characters outside of the U+0 to U+FF range. I would have no idea how to determine which characters to render to the texture beforehand with the first choice. Which method have you found most suitable in games? Any help is appreciated.