I need to draw an opaque backing rectangle around some text I'm drawing and I can't 
figure out how to get the bounds of the actual pixels that are drawn for the text 
string. I've used the getStringBounds method on the FontMetrics class but it leaves 
extra space above the top of the tallest character and below the baseline(this 
particular text string doesn't go below the baseline).

What's the best way to accurately find out the minimum bounding box that encloses my 
text?

Thanks,

John  (using 1.3.1)

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to