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

[tx] Subroutinization results differ with environment #541

Merged
merged 4 commits into from
Aug 10, 2018

Conversation

readroberts
Copy link
Contributor

Fixes issue #494

The bug is that two subr's in the win output cff are swapped in index order from the Mac version. This is because of an unstable qsort done on the subroutines in the final stage of selection.

Fix bug by adding a field to the sorted items which reflects original order, and sort by that field when the other items compare equal.
Bump version of cffwrite library

cjchapman
cjchapman previously approved these changes Aug 9, 2018
readroberts and others added 4 commits August 9, 2018 15:34
Add test case to test/tx_test.py in order to validate existence of bug.

The bug is that two subr's in the win output cff are swapped in index order from the Mac version. This is because of an unstable qsort done on the subroutines in the final stage of selection.
The bug is that two subr's in the win output cff are swapped in index order from the Mac version. This is because of an unstable qsort done on the subroutines in the final stage of selection.

Fix bug by adding a field to the sorted items which reflects original order, and sort by that field when the other items compare equal.
Bump version of cffwrite library
Update test to verify that both Mac and Win produce same font file.
Trivial change in comments to trigger branch rebuild.
@miguelsousa miguelsousa merged commit 2982df6 into develop Aug 10, 2018
@miguelsousa miguelsousa deleted the fix-bug494-tx branch August 10, 2018 00:08
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.

3 participants