Skip to content

Conversation

valadaptive
Copy link
Contributor

Discovered this as part of #378; splitting it off because it affects all the fontique backends.

When adding font aliases, the code was not actually using the family ID we passed in, but creating a fresh family ID each time. This meant that font aliases were all mapped to nonexistent family IDs, and all queries for a font by one of its aliases would fail.

I'm a bit concerned that this has the potential to cause regressions or other general weirdness, since all font aliases went unused due to this bug. Not sure how to test that other than to just give it a spin.

@valadaptive valadaptive requested review from dfrg and xorgy June 13, 2025 11:43
Copy link
Collaborator

@dfrg dfrg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. This was certainly the intended behavior so it seems fine to land the change and address any potential issues with other backends if they arise.

@valadaptive valadaptive added this pull request to the merge queue Jun 13, 2025
Merged via the queue into linebender:main with commit 1e85b05 Jun 13, 2025
24 checks passed
@valadaptive valadaptive deleted the fix-alias branch June 13, 2025 12:27
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.

2 participants