int width = (int) bounds.getWidth() + 6;
int height = (int) bounds.getHeight() + 6;
// create a new texture renderer with the exact correct width and height.
textRenderer = new TextureRenderer(width, height, true);
textRenderer.setSmoothing(true);
g2d = textRenderer.createGraphics();
g2d.setColor(Color.white);
//coordinate are inversed: 0:0 is top-left.
tl.draw(g2d, 3, height - 3);
textRenderer.markDirty(0, 0, width, height);