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

Makeotf fixes #458

Merged
merged 15 commits into from
Jul 9, 2018
Merged

Makeotf fixes #458

merged 15 commits into from
Jul 9, 2018

Conversation

miguelsousa
Copy link
Member

@miguelsousa miguelsousa commented Jul 3, 2018

Fixes #148, #222, #264, #457 and #459

.travis.yml Outdated
@@ -3,7 +3,7 @@ matrix:
include:
- os: linux
env: NAME=Linux
if: type = pull_request
if: NOT branch =~ /^\d+\.\d+\.\d+.*$/
Copy link
Contributor

Choose a reason for hiding this comment

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

Please add detailed comments here and for each of the changes below so that future generations may learn more quickly than we did how and why to do this kind of thing.

Copy link
Contributor

Choose a reason for hiding this comment

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

(Also, there are lots of minor issues that I'd like for us to clean up in MakeOTF.py, but nothing specific to the changes.)

Copy link
Member Author

Choose a reason for hiding this comment

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

done

because it leads to a UnicodeDecodeError later on.

Bug introduced in 35783e4#diff-12c55c7004f8c76ee2b1741243a67cda

Using decode here brings back issue #222 (UnicodeDecodeError: 'ascii' codec can't decode byte).
Cosimo's patch (#222 (comment)) was included in f1c4511#diff-8c875fc8969988dc6583127ac4fb12f7
… of its format

Historically, when the input font is CID the output OTF is written to the current directory, whereas in other input formats it's written to the same directory as the input font. This difference is odd, onerous and prone to error.
This change makes the output OTF be written to the same directory as the input font regardless of its format. To make the output OTF be written to the current directory use option '-o .'
Makes it easier to do minor updates and makes the updates more transparent (since they'll be diff-able)
…rderAndAliasDB

There's really no reason for treating UFO and Type 1 inputs differently in this regard
They were matching commented out FEA code, and compiling them outside of the method makes it more efficient (especially since the method is recursive)

Fixes #148
This allows us to test the CI of a branch without having to start a PR
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.

2 participants