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

fonts fail to build with fontmake #99

Closed
fabiangreffrath opened this issue Jan 17, 2023 · 3 comments
Closed

fonts fail to build with fontmake #99

fabiangreffrath opened this issue Jan 17, 2023 · 3 comments

Comments

@fabiangreffrath
Copy link

Hi,

today I tried to get the mononoki Debian package upgraded fom 1.2 to 1.5, however, without success:

$ fontmake -o ttf -g src/mononoki.glyphs 
INFO:fontmake.font_project:Building master UFOs and designspace from Glyphs source
INFO:glyphsLib.classes:Parsing "src/mononoki.glyphs" file into <GSFont>
fontmake: Error: In 'src/mononoki.glyphs': Loading Glyphs file failed: 'NoneType' object has no attribute 'groups'

And another error when using UFO instead of GLYPHS:

$ fontmake -o ttf -u src/mononoki-Regular.ufo
INFO:fontmake.font_project:Building TTF for mononoki-Regular
INFO:ufo2ft:Pre-processing glyphs
INFO:ufo2ft.filters.base:Running DecomposeComponentsFilter on mononoki-Regular
INFO:ufo2ft.filters.base:Running RemoveOverlapsFilter on mononoki-Regular
ERROR:ufo2ft.filters.removeOverlaps:Failed to remove overlaps for uni00B5
fontmake: Error: In 'src/mononoki-Regular.ufo': Compiling UFO failed: Unhandled open contour

Package versions:

fontmake          2.4.1-2
python3-glyphslib 6.0.6+ds1-1
python3-ufo2ft    2.28.0-1
@madmalik
Copy link
Owner

Looking into this. The error with the UFO file was apparently a problem with the contour of the µ glyph. I have redrawn that glyph and it fixed the error for me, I was able to create the font files with fontmake from the UFO files.

I've pushed the changes to main, could you test if it works for you with the new UFO files?

Using the GLYPHS file with fontmake still fails, but that looks like a bug in fontmake to me. The error is basically the python equivalent of a NPX, so nothing I can fix from my side.

@fabiangreffrath
Copy link
Author

I've pushed the changes to main, could you test if it works for you with the new UFO files?

Yes, now the font builds from the UFO file. Thanks!

Using the GLYPHS file with fontmake still fails, but that looks like a bug in fontmake to me. The error is basically the python equivalent of a NPX, so nothing I can fix from my side.

I'll forward this to upstream, thanks for looking into this.

@felis-blue
Copy link
Collaborator

Fixed in version 1.6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants