Glyphs-Scripts
Glyphs-Scripts copied to clipboard
Import Kerning from .fea File.py G3 and typo
Run on: Glyphs 3.1.2 (3149) + Python 3 + macOS 12.6.1
Look like filePath parameter is array type:
30 def importfea_file(Doc, filePath):
31 if os.path.isfile(filePath):
Error:
Traceback (most recent call last):
File "<macro panel>", line 88
File "<macro panel>", line 83, in main
File "<macro panel>", line 18, in importfea_file
File "genericpath.py", line 30, in isfile
st = os.stat(path)
TypeError: stat: path should be string, bytes, os.PathLike or integer, not __NSSingleObjectArrayI
Typos for attribute .niceGlyphNameForName_
(Glyph and Glpyh) on line 40 and 43.
40 key = GlyphsInfo.niceGlpyhNameForName_(key)
41
42 for GlyphName in GlyphNames:
43 GlyphName = GlyphsInfo.niceGlpyhNameForName_(GlyphName)