I'm making a game engine based on Java Swing and I wonder if I can get the text width/height.
Say, what I have is:
- the text string
- the font and text size (the
Fontobject)
What I've done is:
g.drawString(...)
What I want to know is:
- the width/height of the text that displayed on the screen