robotools / compositor

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

setCMAP #13

Open typemytype opened 8 years ago

typemytype commented 8 years ago

it should be CMAP with caps instead of lowercase

error: https://github.com/typesupply/compositor/blob/master/Lib/compositor/font.py#L37

api callback: https://github.com/typesupply/compositor/blob/master/Lib/compositor/layoutEngine.py#L23

typemytype commented 8 years ago

and it should not set self.cmap but just cmap

sorry for being lazy and not forking-fixing-pull requesting the whole thing....

typemytype commented 8 years ago

and the init of the Font class needs

super(Font, self).__init__()
File "/Users/frederik/Documents/dev/typeSupply/compositor/Lib/compositor/layoutEngine.py", line 26, in setCMAP
    if self.gsub is not None:
AttributeError: 'Font' object has no attribute 'gsub'