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

Fix GOADB order of processing multiple unicode assignments #1615

Merged
merged 3 commits into from
Mar 2, 2023

Conversation

punchcutter
Copy link
Contributor

Fixes #1273

The code was setting the single Unicode value taken from parsing the final name and then moving on to the next glyph. I swapped the order so it first checks if there are multiple Unicodes to be assigned. One other thing we could consider is the following scenario

uniABCD uniABCD uni1234,uni5678

Here we will assign U+1234 and U+5678, but not U+ABCD so we could maybe warn if the name looks like a Unicode value and we don't assign it.

@punchcutter
Copy link
Contributor Author

Tests seem to only fail on Linux which I think was mentioned somewhere else, right?

@skef
Copy link
Collaborator

skef commented Mar 1, 2023

The Linux failures look like they're probably specific to this PR. Haven't determined why yet.

skef
skef previously approved these changes Mar 1, 2023
Copy link
Collaborator

@skef skef left a comment

Choose a reason for hiding this comment

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

This looks fine to me otherwise. Approving pending test code change.

tests/makeotfexe_test.py Outdated Show resolved Hide resolved
@punchcutter
Copy link
Contributor Author

Aha, duh. I'll fix and push.

Copy link
Collaborator

@josh-hadley josh-hadley left a comment

Choose a reason for hiding this comment

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

Thank you for addressing this

@punchcutter punchcutter merged commit eb2c8f4 into develop Mar 2, 2023
@punchcutter punchcutter deleted the zqs-goadb-fix branch March 2, 2023 05:47
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.

for glyphs named uniXXXX, is makeotf following the documented GOADB behavior?
3 participants