Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Default ligature anchor numbers to 1 if unset
Browse files Browse the repository at this point in the history
RickyDaMa committed Nov 20, 2024

Verified

This commit was signed with the committer’s verified signature.
RickyDaMa Ricky
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
@@ -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

0 comments on commit f86ea2b

Please sign in to comment.