I use the wglUseFontBitmaps to render a font on the screen. Now I want to show something like tooltips in 3D where I render a yellow background rectangle behind the text. For this I need to know the size of the rectangle.
How can I get this? Reading the documentation of wglUseFontBitmaps it must have this information inside to add the translate to the displaylist. It uses glBitmap inside which has the width and the heigth of the glyph. But how can I get it?
I have read that using the wglUseFontBitmaps to create the font and using wglUseFontOutlines to determine the size is not good because of differences in rasterizing.
I know that it is possible by using OutlineFont and render into a texture on my own or using a 3rd party library. But this is slower at startup and I need a very fast start of my app.