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

Cleanup and polish on the new TTF_Text API #421

Merged
merged 1 commit into from
Oct 21, 2024
Merged

Conversation

slouken
Copy link
Collaborator

@slouken slouken commented Oct 21, 2024

  • showfont uses the API to show the caption
  • showfont now has an -editbox command line option to show the editbox
  • TTF_MeasureString() returns width in pixels and max_length in bytes
  • Removed TTF_CreateText_Wrapped()
  • TTF_SetTextWrapping() has been renamed TTF_SetTextWrapWidth()
  • TTF_GetTextWrapping() has been renamed TTF_GetTextWrapWidth()

Fixes #418

@slouken slouken force-pushed the update branch 3 times, most recently from 69300de to 87a0756 Compare October 21, 2024 09:59
* showfont uses the API to show the caption
* showfont now has an -editbox command line option to show the editbox
* TTF_MeasureString() returns width in pixels and max_length in bytes
* Removed TTF_CreateText_Wrapped()
* TTF_SetTextWrapping() has been renamed TTF_SetTextWrapWidth()
* TTF_GetTextWrapping() has been renamed TTF_GetTextWrapWidth()

Fixes libsdl-org#418
@slouken slouken merged commit 40e606f into libsdl-org:main Oct 21, 2024
5 checks passed
@slouken slouken deleted the update branch October 21, 2024 10:02
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.

Bug: TTF_DrawRendererText hangs when drawing text created with wrap length set to 0
1 participant