otTables: set CompCount in LigatureSubst.fromXML

https://github.com/fonttools/fonttools/issues/1584#issuecomment-485140779
This commit is contained in:
Cosimo Lupo 2019-04-20 17:45:38 +01:00
parent 71812bbb29
commit 5a7fe0556f
No known key found for this signature in database
GPG Key ID: 20D4A261E4A0E642

View File

@ -1130,6 +1130,7 @@ class LigatureSubst(FormatSwitchingBaseTable):
lig.LigGlyph = attrs["glyph"]
components = attrs["components"]
lig.Component = components.split(",") if components else []
lig.CompCount = len(lig.Component)
ligs.append(lig)