We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Is it possible to get the bounds (width + height) of a Buffer after shaping?
Buffer
The layout_runs() api does not give the line's total width, neither is it possible to extract it from the glyphs without using the swash cache.
layout_runs()
My use case is to layout text and get its size in order to give it a background rectangle.
Thanks
The text was updated successfully, but these errors were encountered:
It's not particularly nice, but it's possible. See the code linked in #70 (comment)
Sorry, something went wrong.
No branches or pull requests
Is it possible to get the bounds (width + height) of a
Buffer
after shaping?The
layout_runs()
api does not give the line's total width, neither is it possible to extract it from the glyphs without using the swash cache.My use case is to layout text and get its size in order to give it a background rectangle.
Thanks
The text was updated successfully, but these errors were encountered: