You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a .glyphs source, in which the UFO Filename custom parameter is nested, like this:
name = "UFO Filename";
value = "master_0/Dummy-Roman_6ptRg.ufo";
This setup causes a Traceback:
Traceback (most recent call last):
File "bin/glyphs2ufo", line 8, in <module>
sys.exit(_glyphs2ufo_entry_point())
File "lib/python3.10/site-packages/glyphsLib/cli.py", line 276, in _glyphs2ufo_entry_point
return main(args)
File "lib/python3.10/site-packages/glyphsLib/cli.py", line 234, in main
return options.func(options)
File "lib/python3.10/site-packages/glyphsLib/cli.py", line 253, in glyphs2ufo
glyphsLib.build_masters(
File "lib/python3.10/site-packages/glyphsLib/__init__.py", line 152, in build_masters
source.font.save(ufo_path)
File "lib/python3.10/site-packages/ufoLib2/objects/font.py", line 592, in save
with UFOWriter(path, structure=structure, validate=validate) as writer:
File "lib/python3.10/site-packages/fontTools/ufoLib/__init__.py", line 948, in __init__
raise UFOLibError(
fontTools.ufoLib.errors.UFOLibError: Cannot write to 'master_0/Dummy-Roman_6ptRg.ufo': directory does not exist
I have a .glyphs source, in which the UFO Filename custom parameter is nested, like this:
This setup causes a Traceback:
I don’t know how you’d prefer to solve this, but I did this quick-and-dirty fix just before https://github.com/googlefonts/glyphsLib/blob/main/Lib/glyphsLib/__init__.py#L151:
Possibly brittle, but fixes the problem on my end.
The text was updated successfully, but these errors were encountered: