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

Return height of generated text #3

Closed
britzl opened this issue Feb 26, 2018 · 2 comments

Comments

@britzl
Copy link
Owner

commented Feb 26, 2018

Return height of generated text from richtext.create()

@dapetcu21

This comment has been minimized.

Copy link
Contributor

commented Feb 26, 2018

Width is also important. Metered width can be smaller than the max width that gets passed to create.

@britzl

This comment has been minimized.

Copy link
Owner Author

commented Feb 27, 2018

Text metrics are now returned:

local nodes,metrics = richtext.create(...)
print(metrics.width, metrics.height)

@britzl britzl closed this Feb 27, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.