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

Further TTF_Text enhancements #390

Merged
merged 5 commits into from
Oct 2, 2024
Merged

Conversation

slouken
Copy link
Collaborator

@slouken slouken commented Oct 2, 2024

No description provided.

Also keep the text string around and drawing operations around and allow creating TTF_Text with no engine, for measurement or external rendering use.
Also added the ability to update text object properties (engine, font, text, etc.) dynamically at runtime.
@slouken slouken marked this pull request as draft October 2, 2024 21:51
This allows loading lots of text and making multiple font changes quickly. The application can call TTF_UpdateText() if there's a specific point where changes should be applied, otherwise they'll be applied as needed when the text is renderered.
@slouken slouken marked this pull request as ready for review October 2, 2024 23:52
@slouken slouken merged commit 73a331b into libsdl-org:main Oct 2, 2024
5 checks passed
@slouken slouken deleted the measure-engine branch October 2, 2024 23:52
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