8000 [ttFont] fixes xmlWriter import error in _saveXML method with ttx split tables request by chrissimpkins · Pull Request #1189 · fonttools/fonttools · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[ttFont] fixes xmlWriter import error in _saveXML method with ttx split tables request #1189

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

Merged
merged 1 commit into from
Feb 21, 2018
Merged

[ttFont] fixes xmlWriter import error in _saveXML method with ttx split tables request #1189

merged 1 commit into from
Feb 21, 2018

Conversation

chrissimpkins
Copy link
Member
@chrissimpkins chrissimpkins commented Feb 21, 2018

Issue report: #1188
Closes #1188
Recognized in fontTools version 3.22.0 (PyPI release) with Python 3.6.4 interpreter

Problem: Attempt to dump split OT tables with ttx leads to NameError. This PR moves the xmlWriter import from within the public saveXML method to the top of the ttFont module.

Replicated and confirmed test failure with this test:

https://github.com/chrissimpkins/fonttools/blob/88b0446d066ee72ad70eb41b382d184875c2fcbd/Tests/xmlwriter_test.py#L1-L14

and left this in a separate branch because I don't know how you are testing your ttx dumps to contribute it here. Can confirm that it fails before this change and does not fail after the change.

@anthrotype
Copy link
Member

wow.. did I release this? 💩

🤦‍♂️

@anthrotype anthrotype merged commit 77f038c into fonttools:master Feb 21, 2018
@chrissimpkins
Copy link
Member Author

Not sure how often split tables are used. It doesn't look like it was part of the test suite and it works when you don't split tables.

@anthrotype
Copy link
Member

Thank you Chris. I'll release a bugfix release very soon.
Yeah, that feature was not part of the tests.

@chrissimpkins
Copy link
Member Author

Had a tough time figuring out the tests (i.e., I didn't spend enough time) or I would have simply contributed a test along with it...

@miguelsousa
Copy link
Collaborator

The tests covering ttx are in ttx_test.py. I'll try to add one for this.

@chrissimpkins
Copy link
Member Author

Thanks Miguel.

@chrissimpkins chrissimpkins deleted the bugfix-ttlib-ttfont-xmlwriter-import branch February 25, 2018 18:11
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
0