Skip to content

Commit

Permalink
Default ligature anchor numbers to 1 if unset
Browse files Browse the repository at this point in the history
  • Loading branch information
RickyDaMa committed Nov 20, 2024
1 parent d05c7f3 commit f86ea2b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Lib/ufo2ft/featureWriters/markFeatureWriter.py
Original file line number Diff line number Diff line change
Expand Up @@ -738,9 +738,10 @@ def _makeContextualAttachments(self, glyphClass, liga=False):
# Skip non-contextual anchors
if not anchor.isContextual:
continue
# If we are building the mark2liga lookup, skip anchors without a number
# If we are building the mark2liga lookup, default the anchor
# number to 1 if it's unset
if liga and anchor.number is None:
continue
anchor.number = 1
# If we are building the mark2base lookup, skip anchors with a number
if not liga and anchor.number is not None:
continue
Expand Down

0 comments on commit f86ea2b

Please sign in to comment.