From aa23e2ec993eb11902f5eecc8c07d18f42008f55 Mon Sep 17 00:00:00 2001 From: be5invis Date: Sat, 21 Oct 2023 16:07:17 -0700 Subject: [PATCH] Fix #2057 --- font-src/support/gr.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/font-src/support/gr.mjs b/font-src/support/gr.mjs index d9c16d7b8..b7801e22e 100644 --- a/font-src/support/gr.mjs +++ b/font-src/support/gr.mjs @@ -404,7 +404,7 @@ function byTagPreference(a, b) { ub = b.tag.toUpperCase(); if (ua < ub) return -1; if (ua > ub) return 1; - return 0; + return a.rank - b.rank; } function queryCvFeatureTagsOf(sink, gid, glyph, tagSet) { const cvs = AnyCv.query(glyph).sort(byTagPreference);