TextRenderer bounds

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

TextRenderer bounds

Martin
Hi folks,
Is there a way to have bounds, either 2d (screen) or 3d (gl space) of a text rendered by TextRenderer? Calling TextRenderer.getBounds() returns Java2D bounds, that naturally remain static when modifying viewport/projection, whereas I would need to measure the actual text screen space to make detailed layout.
If not, I can still build textures out of a Java2d BufferedImage and use the textures binding coordinates to have the gl space of the text drawn in the texture.
Regards,
Martin