Andrea B. Previtera
2007-03-18 20:01:22 UTC
Hi,
I've always used WglUseFontBitmap to create and output 2d text in my
opengl apps. The alternative would be using bitmapped fonts, which anyway
would limit me to *monospaced* fonts. Nonetheless, the problem with
WglUseFontBitmap driven text, is that for some reason I can't really find a
way to get the outputted string width in pixels...
Do you have any suggestion on how to find it, or even better a third way to
output 2d text? Thank you in advance,
- bee
I've always used WglUseFontBitmap to create and output 2d text in my
opengl apps. The alternative would be using bitmapped fonts, which anyway
would limit me to *monospaced* fonts. Nonetheless, the problem with
WglUseFontBitmap driven text, is that for some reason I can't really find a
way to get the outputted string width in pixels...
Do you have any suggestion on how to find it, or even better a third way to
output 2d text? Thank you in advance,
- bee