kal wrote:
do you suggest one big texture or multiple textures of fixed size(for example 512x512 textures, so to fit 512 chars you may need two or more textures depending on the font resolution).
I'm working on a font system on another engine at the moment (
I'm contracted; can't share the code
), where I pick a texture size (256x256 to 2048x2048), and then use as many textures as required to fit all the glyphs. There is a mapping function where you can give it a character, and it tells you which texture and UV coordinates to use.
Also, when using my font-generator tool in unicode-mode, it would take up too much memory to render every single unicode character to the textures. So the tool opens a text document, and only generates texture data for characters that appear in that document.