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 inconsistency of use of regionCount variable in tx.varread.varread.c #272

Closed
readroberts opened this issue Feb 8, 2018 · 1 comment
Assignees

Comments

@readroberts
Copy link
Contributor

readroberts commented Feb 8, 2018

The function tx.varread.varread.c:var_getIVSRegionIndices() takes a variable named regionCount. In some call chains, this is set to the itemVariationDataSubtable region index count, and in others it is set to the RegionList index count. In all cases, it should be set to the RegionList index count, and the variables in this file which are named 'regionCount' should be renamed to reflect whether they contain the RegionList index count, or the data subtable region index count. See:
https://github.com/adobe-type-tools/afdko/blob/master/afdko/Tools/Programs/public/lib/source/varread/varread.c#L949

@readroberts readroberts self-assigned this May 3, 2018
readroberts added a commit that referenced this issue May 24, 2018
… variable in tx.varread.varread.c

This update makes no change in function: it simply renames variables and fields to avoid confusion by developers.
@readroberts readroberts mentioned this issue May 24, 2018
cjchapman pushed a commit that referenced this issue May 30, 2018
* [tx][varread] Fix issue #272: Fix inconsistency of use of regionCount variable in tx.varread.varread.c

This update makes no change in function: it simply renames variables and fields to avoid confusion by developers.

* [tx][tx_test.py] Add test for reading and snapshotting simple CFF2 VF font to test fix for issue #272
@miguelsousa
Copy link
Member

Fixed via #397

schriftgestalt pushed a commit to schriftgestalt/afdko that referenced this issue May 18, 2019
* [tx][varread] Fix issue adobe-type-tools#272: Fix inconsistency of use of regionCount variable in tx.varread.varread.c

This update makes no change in function: it simply renames variables and fields to avoid confusion by developers.

* [tx][tx_test.py] Add test for reading and snapshotting simple CFF2 VF font to test fix for issue adobe-type-tools#272
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

No branches or pull requests

2 participants