Skip to content

Instantly share code, notes, and snippets.

@johnmay
Created November 6, 2012 18:04
Show Gist options
  • Save johnmay/4026441 to your computer and use it in GitHub Desktop.
Save johnmay/4026441 to your computer and use it in GitHub Desktop.
Padding text bounds
double width = bounds.getWidth() + bounds.getHeight() * PADDING_RATIO;
double height = bounds.getHeight() + bounds.getHeight() * PADDING_RATIO;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment