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

britzl opened this issue Feb 26, 2018 · 2 comments


Copy link

commented Feb 26, 2018

Return height of generated text from richtext.create()


This comment has been minimized.

Copy link

commented Feb 26, 2018

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


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
None yet
2 participants
You can’t perform that action at this time.