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

bug in ufo2ft & fonttools causes invalid CFF OTF files #110

Closed
rsms opened this issue Jan 2, 2019 · 3 comments
Closed

bug in ufo2ft & fonttools causes invalid CFF OTF files #110

rsms opened this issue Jan 2, 2019 · 3 comments
Labels
bug Something that is now the way it's supposed to be

Comments

@rsms
Copy link
Owner

rsms commented Jan 2, 2019

First reported here https://twitter.com/djmarke/status/1080472948039974912

Initial testing shows the OTF files are indeed broken:

$ misc/tools/fontsample/fontsample -o x.pdf build/fonts/const/Inter-UI-Regular.otf
misc/tools/fontsample/fontsample: failed to parse font build/fonts/const/Inter-UI-Regular.otf
$ misc/fontbuild checkfont build/fonts/const/Inter-UI-Regular.otf
Failed to verify the original font
@rsms rsms added the bug Something that is now the way it's supposed to be label Jan 2, 2019
@rsms
Copy link
Owner Author

rsms commented Jan 3, 2019

I've been working on this all morning and have tracked down the issue as far as to the ufo2ft Python library, which produces invalid CFF OTFs when run with Python 3 (but valid files when running with Python 2).

So, there's an issue with either ufo2ft or one of its dependencies that's specific to Python 3.

@rsms rsms changed the title Broken OTFs in v3.2 Python 3 bug in ufo2ft requires Python 2 for compiling OTF CFF files Jan 3, 2019
@rsms
Copy link
Owner Author

rsms commented Jan 3, 2019

Built a repro case and filed an issue with ufo2ft here: googlefonts/ufo2ft#306

@rsms rsms closed this as completed in 799472b Jan 3, 2019
@rsms
Copy link
Owner Author

rsms commented Jan 4, 2019

Related: fonttools/fonttools#1430

@rsms rsms changed the title Python 3 bug in ufo2ft requires Python 2 for compiling OTF CFF files bug in ufo2ft & fonttools causes invalid CFF OTF files Jan 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something that is now the way it's supposed to be
Projects
None yet
Development

No branches or pull requests

1 participant