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
fromfontParts.worldimportNewFontfont=NewFont(familyName="MyFont", styleName="Regular")
layer=font.newLayer("foreground")
font.defaultLayer=layerfont.save("test.ufo") # this raises an issue
the patch:
ifdefaultLayerNameisnotNone:
# change the name of the newly created default layerfont.defaultLayer.name=defaultLayerName
The text was updated successfully, but these errors were encountered:
When creating a new font object it would be nice to set the name of the default layer.
When the default layer name is not "public.default", the layer name "public.default" cannot exists, defcon asserts
proposal, similar to the optional arguments
familyName
,styleName
A tiny script to show the problem:
the patch:
The text was updated successfully, but these errors were encountered: