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

Import Kerning from .fea File.py G3 and typo #283

Open
sovichet opened this issue Dec 8, 2022 · 0 comments
Open

Import Kerning from .fea File.py G3 and typo #283

sovichet opened this issue Dec 8, 2022 · 0 comments

Comments

@sovichet
Copy link

sovichet commented Dec 8, 2022

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)
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