Skip to content

Commit

Permalink
Merge pull request #841 from googlefonts/ignore-anchor-order
Browse files Browse the repository at this point in the history
Compatibility checker: Sort anchor set before checking for equality
  • Loading branch information
anthrotype authored Jan 14, 2022
2 parents 9c77f49 + d42eb3f commit 0ff0477
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/fontmake/compatibility.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def check_glyph(self, glyphs):

anchors = [g.anchors for g in glyphs]
self.ensure_all_same(
lambda anchors: '"' + (", ".join(a.name for a in anchors)) + '"',
lambda anchors: '"' + (", ".join(sorted(a.name for a in anchors))) + '"',
anchors,
"anchors",
)
Expand Down

0 comments on commit 0ff0477

Please sign in to comment.