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