Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can i get a Height of my Textblock? #9

Open
antonbrams opened this issue May 27, 2015 · 1 comment
Open

How can i get a Height of my Textblock? #9

antonbrams opened this issue May 27, 2015 · 1 comment

Comments

@antonbrams
Copy link

Guys, the stringHeight(str) or getStringBoundingBox(str, 0,0) method returns only a single line height.
What can i do to get a whole height of multiline textblock?

thx!

@antonbrams
Copy link
Author

ah... i get it by my self... its so f*ckn weird ^^
float height = - textBlock.getStringBoundingBox(str, 0, 0).y;

why "y"? where is the logic? my god... )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant