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

always copy and set glyph name when name is different on _insertGlyph #633

Open
typemytype opened this issue Mar 14, 2022 · 0 comments
Open

Comments

@typemytype
Copy link
Member

typemytype commented Mar 14, 2022

https://github.com/robotools/fontParts/blob/master/Lib/fontParts/base/layer.py#L275-L280

patch, remove the check if the glyphName already exists in that layer:

 if glyph.name is None or name != glyph.name:
from fontParts.world import RFont, RGlyph

glyph = RGlyph()
glyph.name = "foo"

font = RFont()
font["bar"] = glyph

print(font.keys())
# --> prints out "foo" and not "bar"
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

No branches or pull requests

1 participant