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 text cursor position after drawing #104

Merged
merged 1 commit into from
Mar 30, 2021
Merged

Conversation

jwiggins
Copy link
Member

In order drawing of text in chunks, draw_text should report back where the text cursor ended up.

Why would anybody want to draw text in chunks? In order to not absorb the task of font fallback handling in the case of rendering text with glyphs not present in the selected font. We'd prefer to let the code which calls draw_text to be in charge of those details, so we have to give a bit more feedback.

@jwiggins jwiggins merged commit 2eff50a into main Mar 30, 2021
@jwiggins jwiggins deleted the feature/text-cursor-return branch March 30, 2021 10:59
@jwiggins jwiggins mentioned this pull request Apr 21, 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.

1 participant