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

Expose more info in PositionedGlyph #1319

Merged
merged 1 commit into from
Jan 26, 2021
Merged

Conversation

Davier
Copy link
Contributor

@Davier Davier commented Jan 26, 2021

In order to do text editing, we need access to the size of glyphs and their index in the associated String.
My use case is to figure out where to place the cursor in an input box from the mouse's position.
Currently, it's only possible in texts where each glyph is one byte.

@cart cart merged commit 528c285 into bevyengine:master Jan 26, 2021
@Davier Davier deleted the positioned_glyph branch February 1, 2021 03:46
@tigregalis tigregalis mentioned this pull request Jun 10, 2023
15 tasks
@TotalKrill TotalKrill mentioned this pull request Oct 19, 2023
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

Successfully merging this pull request may close these issues.

2 participants