Open minw0525 opened 8 months ago
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.
https://github.com/kateliev/TypeRig/blob/85cf3dc59aa5ed7ec42cbd5501f7bbb332a68bae/Lib/typerig/proxy/fl/objects/glyph.py#L530
typerig.proxy.fl.objects.font package is not imported in the file, so pFont instance cannot be created.