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

Don’t cache Pango fonts #2149

Merged
merged 1 commit into from May 6, 2024
Merged

Don’t cache Pango fonts #2149

merged 1 commit into from May 6, 2024

Conversation

liZe
Copy link
Member

@liZe liZe commented May 6, 2024

As pango_font is a pointer, equality is done with the address of the pointer, not the actual font. Pango fonts don’t change for a defined Pango map, but it’s possible with two different Pango maps to get different fonts stored at the same address.

Calculating the description hash is cheap, so we can avoid the cache. But we really should cache this in the FontConfiguration object where the Pango map is stored.

Fix #2144.

Calculating the description hash is cheap, but we really should cache this in
the FontConfiguration object where the Pango map is stored.

Fix #2144.
@liZe liZe added the bug Existing features not working as expected label May 6, 2024
@liZe liZe merged commit 195a529 into main May 6, 2024
13 checks passed
@liZe liZe deleted the fix-font-cache branch May 6, 2024 06:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Existing features not working as expected
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fonts breaking in v62
1 participant