diff --git a/Lib/ufo2ft/featureCompiler.py b/Lib/ufo2ft/featureCompiler.py index 8af6318b..f18621a1 100644 --- a/Lib/ufo2ft/featureCompiler.py +++ b/Lib/ufo2ft/featureCompiler.py @@ -172,10 +172,10 @@ class FeatureCompiler(BaseFeatureCompiler): """ defaultFeatureWriters = [ + CursFeatureWriter, KernFeatureWriter, MarkFeatureWriter, GdefFeatureWriter, - CursFeatureWriter, ] def __init__( diff --git a/tests/featureWriters/variableFeatureWriter_test.py b/tests/featureWriters/variableFeatureWriter_test.py index b501c033..9217a7b7 100644 --- a/tests/featureWriters/variableFeatureWriter_test.py +++ b/tests/featureWriters/variableFeatureWriter_test.py @@ -19,6 +19,16 @@ def test_variable_features(FontClass): markClass dotabove-ar @MC_top; markClass gravecmb @MC_top; + feature curs { + lookup curs_rtl { + lookupflag RightToLeft IgnoreMarks; + pos cursive alef-ar.fina ; + pos cursive peh-ar.init ; + pos cursive peh-ar.init.BRACKET.varAlt01 ; + } curs_rtl; + + } curs; + lookup kern_Arab { lookupflag IgnoreMarks; pos alef-ar.fina alef-ar.fina <(wght=100:15 wght=1000:35) 0 (wght=100:15 wght=1000:35) 0>; @@ -47,16 +57,6 @@ def test_variable_features(FontClass): table GDEF { LigatureCaretByPos peh-ar.init 100; } GDEF; - - feature curs { - lookup curs_rtl { - lookupflag RightToLeft IgnoreMarks; - pos cursive alef-ar.fina ; - pos cursive peh-ar.init ; - pos cursive peh-ar.init.BRACKET.varAlt01 ; - } curs_rtl; - - } curs; """ # noqa: B950 )