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

Commits on Oct 1, 2024

  1. Configuration menu
    Copy the full SHA
    cfd0157 View commit details
    Browse the repository at this point in the history

Commits on Oct 2, 2024

  1. Added string offset information to TTF_Text

    Also keep the text string around and drawing operations around and allow creating TTF_Text with no engine, for measurement or external rendering use.
    slouken committed Oct 2, 2024
    Configuration menu
    Copy the full SHA
    eed3670 View commit details
    Browse the repository at this point in the history
  2. Changes to fonts automatically update text objects using them.

    Also added the ability to update text object properties (engine, font, text, etc.) dynamically at runtime.
    slouken committed Oct 2, 2024
    Configuration menu
    Copy the full SHA
    6b5e9a2 View commit details
    Browse the repository at this point in the history
  3. Defer calculating text layout changes until they're needed

    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 committed Oct 2, 2024
    Configuration menu
    Copy the full SHA
    74a1215 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    8fe1b04 View commit details
    Browse the repository at this point in the history