How to properly rendering fonts using stb_truetype.h to process the font files?
gamedev.net
I'm having a really hard time trying to optimize stb_truetype.h to bake a font to a OpenGl texture.Yes, I can create a bitmap file with the font I want (that would be my atlas), what I can't do is figure out before hand the actual size the bitmap should have to fit all the glyph in the font file and then map the position/size of each glyph in the texture.There seam to be 2 or 3 ways of baking the fonts, all the examples I found just guess the size of the final bitmap and non
0 Commentarii ·0 Distribuiri ·22 Views