I'm currently working on a font-rendering system for my OpenGL based engine. I sure got something to work, but the only thing I still have problems with, is the horizontal advance!
This is what it spits out, obviously not correct. If I understood correct from the documentation and some other threads, this is the procedure to draw a string:
- set current drawing position to (0, 0)
- draw first character
- move drawing position in the x for advance.x
- draw second character
- move drawing position in the x for next face->glyph->advance.x
- ... repeat
Is that correct? If not, what am I doing wrong? I think its worth to say that I render every character as a texture!