Skip to content

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
@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