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

guideline api #122

Open
typemytype opened this issue Aug 21, 2018 · 0 comments
Open

guideline api #122

typemytype opened this issue Aug 21, 2018 · 0 comments

Comments

@typemytype
Copy link
Member

there is a difference between fontParts and defcon
in defcon a guideline is actually a dict and fontMath iterates over all the keywords

This is not possible in fontParts...

g = CurrentGlyph()

for key in g.naked().guidelines[0]:
    print(key)
for key in g.guidelines[0]:
    print(key)
x
y
angle
identifier
Traceback (most recent call last):
  File "<untitled>", line 5, in <module>
TypeError: 'RGuideline' object is not iterable
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