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

GlyphClassDef AttributeError: Format #21

Closed
adrientetar opened this issue Mar 3, 2017 · 2 comments
Closed

GlyphClassDef AttributeError: Format #21

adrientetar opened this issue Mar 3, 2017 · 2 comments

Comments

@adrientetar
Copy link
Contributor

  File "c:\users\admin\downloads\defcon\lib\defcon\objects\layoutEngine.py", line 207, in process
    self._updateEngine()
  File "c:\users\admin\downloads\defcon\lib\defcon\objects\layoutEngine.py", line 109, in _updateEngine
    self._layoutEngine.setFeatureTables(gdef, gsub, gpos)
  File "c:\users\admin\downloads\compositor\lib\compositor\layoutEngine.py", line 34, in setFeatureTables
    self.gdef = GDEF().loadFromFontTools(gdef)
  File "c:\users\admin\downloads\compositor\lib\compositor\tables.py", line 358, in loadFromFontTools
    self.GlyphClassDef = GlyphClassDef().loadFromFontTools(table.GlyphClassDef)
  File "c:\users\admin\downloads\compositor\lib\compositor\classDefinitionTables.py", line 30, in loadFromFontTools
    self.ClassFormat = classDef.Format
  File "C:\Program Files\Python36\lib\site-packages\fontTools\ttLib\tables\otBase.py", line 539, in __getattr__
    raise AttributeError(attr)
AttributeError: Format

@anthrotype Would you know how to resolve this?

@adrientetar
Copy link
Contributor Author

The ClassFormat doesn't seem like it's used anywhere in the code; I wonder it this is like #11 where there was a Format attribute that fontTools stopped exposing.

@anthrotype
Copy link
Member

Yeah, I believe so

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

2 participants