Created
October 30, 2012 16:59
-
-
Save johnmay/3981529 to your computer and use it in GitHub Desktop.
TextLayout
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TextLayout layout = new TextLayout(text, graphics.getFont(), | |
graphics.getFontRenderContext()); | |
Rectangle2D bounds = layout.getBounds(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment