1
vote
0answers
93 views

Rendering text with stb_font results in glitches

I'm trying to render text with OpenGL and an "inline"-font taken from the stb_fonts The relevant code for initializing the font & rendering: LabelFactory::LabelFactory() { static unsigned ...
2
votes
2answers
216 views

How to get and copy font bitmap from WinGDI to a IDirect3DTexture9?

I want to get the pixels (or other data) for any character of the available fonts and copy/build them into a D3D texture so I could make some cache of text rendering by mapping only the character ...
10
votes
4answers
10k views

Preferred way to render text in OpenGL

I'm about to pick up computer graphics once again for an university project. For a previous project I used a library called FTGL that didn't leave me quite satisfied as it felt kind of heavy (I tried ...
4
votes
4answers
1k views

How to handle font loading?

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 ...