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

Convert OTF font files in test data to ttx files. #1598

Merged
merged 2 commits into from May 13, 2019

Conversation

readroberts
Copy link
Collaborator

This required a fix to fontTools/cffLib. When reading a CFF2 variable font (VF) from XML, the VF state in FontDict and PrivateDict does not get set. I made a temporary fix by adding a loop to set PrivateDict.vstore for all the PrivateDict objects after the XML file has been read. This should not be necessary, and in the near future I will revisit both this issue, and the related use of isCFF2 when compiling/decompiling.

This required a fix to fontTools/cffLib. When reading a CFF2 variable font (VF) from XML, the VF state in FontDict and PrivateDict does not get set. I made a temporary fix by adding a loop to set PrivateDict.vstore for all the PrivateDict objects after the XML file has been read. This should not be necessary, and in the near future I will revisit both this issue, and the related use of isCFF2 when compiling/decompiling.
Copy link
Member

@anthrotype anthrotype left a comment

Choose a reason for hiding this comment

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

there's a bit of repetition in the way you collect ttx test files, compile them to a temporary dir and adjust the designspace paths (could be factored out in a method or something), but I understand that sort of redundancy was pre-existent in the test modules you touched.
Some time we will have to clean these up. Maybe not this time (up to you).

Feel free to merge

Tests/cffLib/specializer_test.py Show resolved Hide resolved
Tests/varLib/varLib_test.py Outdated Show resolved Hide resolved
@anthrotype anthrotype merged commit 96c81eb into master May 13, 2019
@anthrotype anthrotype deleted the update-OTF-testfonts branch May 13, 2019 12:09
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.

None yet

2 participants