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

FL8: pGlyph.addComponents not working #86

Open
minw0525 opened this issue Jan 17, 2024 · 1 comment
Open

FL8: pGlyph.addComponents not working #86

minw0525 opened this issue Jan 17, 2024 · 1 comment

Comments

@minw0525
Copy link

font = pFont(self.parent)

Traceback (most recent call last):
  File "<string>", line 24, in <module>
  File "C:\Users\LG\Desktop\TypeRig\Lib\typerig\proxy\fl\objects\glyph.py", line 533, in addComponents
    font = pFont(self.parent)
           ^^^^^
NameError: name 'pFont' is not defined. Did you mean: 'font'?

typerig.proxy.fl.objects.font package is not imported in the file, so pFont instance cannot be created.

@minw0525 minw0525 changed the title pGlyph.addComponents not working FL8pGlyph.addComponents not working Jan 22, 2024
@minw0525 minw0525 changed the title FL8pGlyph.addComponents not working FL8: Glyph.addComponents not working Jan 22, 2024
@minw0525 minw0525 changed the title FL8: Glyph.addComponents not working FL8: pGlyph.addComponents not working Jan 22, 2024
@minw0525
Copy link
Author

When I executed the addComponent method after adding the import pfont statement, the following error occurred when executing the flLayer.setGlyphComponent method.

Traceback (most recent call last):
  File "<string>", line 61, in <module>
TypeError: argument type must be Int!

Other functions using the flLayer.setGlyphComponent API, such as pFont.newGlyphFromRecipe, also did not work.

flLayer.setGlyphComponent API works normally in fl7, but flLayer.setGlyphComponent seems to no longer work properly as the version goes up to fl8.

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