diff --git a/Lib/fontTools/otlLib/builder.py b/Lib/fontTools/otlLib/builder.py index 1ba63c35c..7e1444518 100644 --- a/Lib/fontTools/otlLib/builder.py +++ b/Lib/fontTools/otlLib/builder.py @@ -314,9 +314,10 @@ class ChainContextualRuleset: classdefbuilder = ClassDefBuilder(useClass0=False) for position in context: for glyphset in position: - if not classdefbuilder.canAdd(glyphset): + glyphs = set(glyphset) + if not classdefbuilder.canAdd(glyphs): return None - classdefbuilder.add(glyphset) + classdefbuilder.add(glyphs) return classdefbuilder