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

View masters, even if master count is not the same... #3

Open
HansG1 opened this issue Feb 23, 2024 · 0 comments
Open

View masters, even if master count is not the same... #3

HansG1 opened this issue Feb 23, 2024 · 0 comments

Comments

@HansG1
Copy link

HansG1 commented Feb 23, 2024

Changing the code from line 42 to the following would make it possible to view the according masters of another font, even if it has more masters than the current:

if len(masters) != len(nextFontMasters):
   if activeMasterIndex <= len(nextFontMasters):
      nextLayer = nextGlyph.layers[activeMasterIndex]
   else:
      nextLayer = nextGlyph.layers[0]
else:
   nextLayer = nextGlyph.layers[activeMasterIndex]

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