robotools / compositor

A basic OpenType GSUB and GPOS layout engine.
MIT License
30 stars 11 forks source link

GlyphClassDef AttributeError: Format #21

Closed adrientetar closed 7 years ago

adrientetar commented 7 years ago
  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 commented 7 years ago

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 commented 7 years ago

Yeah, I believe so