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

TypeError: 'GSFont' object has no attribute '__getitem__' #94

Closed
weiweihuanghuang opened this issue Nov 1, 2018 · 2 comments
Closed

Comments

@weiweihuanghuang
Copy link

Just tried to run

gftools fix-glyphs WorkSans-Upright.glyphs

Traceback (most recent call last):
  File "/usr/local/bin/gftools-fix-glyphs.py", line 55, in <module>
    main()
  File "/usr/local/bin/gftools-fix-glyphs.py", line 39, in main
    print('Copyright: "{}"'.format(data["copyright"]))
TypeError: 'GSFont' object has no attribute '__getitem__'

Returned this error?

@m4rc1e
Copy link
Collaborator

m4rc1e commented Nov 1, 2018

This script is misleading and still appears to be a wip. It doesn't fix anything, https://github.com/googlefonts/gftools/blob/master/bin/gftools-fix-glyphs.py#L38-L43

There's a fix QA and fix script here (specific to GF), https://github.com/googlefonts/gf-glyphs-scripts.

@simoncozens
Copy link
Contributor

I'm gonna remove it. -> #710

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

3 participants