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