diff --git a/Lib/ufo2ft/featureWriters/cursFeatureWriter.py b/Lib/ufo2ft/featureWriters/cursFeatureWriter.py index 477a6b026..02ba08a25 100644 --- a/Lib/ufo2ft/featureWriters/cursFeatureWriter.py +++ b/Lib/ufo2ft/featureWriters/cursFeatureWriter.py @@ -19,6 +19,7 @@ class CursFeatureWriter(BaseFeatureWriter): tableTag = "GPOS" features = frozenset(["curs"]) + options = dict(entry="entry", exit="exit") def _makeCursiveFeature(self): cmap = self.makeUnicodeToGlyphNameMapping() @@ -97,9 +98,9 @@ def _makeCursiveStatements(self, glyphs): for anchor in glyph.anchors: if entryAnchor and exitAnchor: break - if anchor.name == "entry": + if anchor.name == self.options.entry: entryAnchor = ast.Anchor(x=otRound(anchor.x), y=otRound(anchor.y)) - elif anchor.name == "exit": + elif anchor.name == self.options.exit: exitAnchor = ast.Anchor(x=otRound(anchor.x), y=otRound(anchor.y)) # A glyph can have only one of the cursive anchors (e.g. if it