Skip to content

RichText: slow TTF loading, lacking caching #6549

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

Closed

Conversation

SatishD-042
Copy link

GUI: Add caching support for TTF fonts in RichText

Updated richtext.cpp to use MacFontManager's caching when loading TTF fonts. This helps avoid loading the same font multiple times and speeds up rendering, like in the Help Widget.

Related to Planka task: "RichText: slow TTF loading, lacking caching"

@SatishD-042
Copy link
Author

Tested (macfontmanager.cpp): Added some debug logs in MacFontManager::getFamilyId() to check if the caching works.
From the logs, looks like the font is cached properly after the first load.
log Example: Font variant 100 found in cache

@bluegr bluegr added the GSoC Part of a Google Summer of Code project label Apr 8, 2025
@sev-
Copy link
Member

sev- commented Apr 9, 2025

This PR has no relevant code changes. Closing.

@sev- sev- closed this Apr 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
GSoC Part of a Google Summer of Code project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants