From d42eb3f83524dc8616db885f89afdd2180bee362 Mon Sep 17 00:00:00 2001 From: Simon Cozens Date: Fri, 7 Jan 2022 11:04:13 +0000 Subject: [PATCH] Compatibility checker: Sort anchor set before checking for equality --- Lib/fontmake/compatibility.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/fontmake/compatibility.py b/Lib/fontmake/compatibility.py index 0be8b5cf..4c600da7 100644 --- a/Lib/fontmake/compatibility.py +++ b/Lib/fontmake/compatibility.py @@ -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", )