views:

121

answers:

0

If I am drawing images using Groovy's GraphicsBuilder, how do I determine the size of the text I am drawing?

I could use Java's FontMetrics class but it requires a Graphics object and I'm not sure how to obtain one when using GraphicsBuilder.