From b95aa204ee284c47e63dc1e34b3c5b4bdf9e7ab7 Mon Sep 17 00:00:00 2001 From: Rod Sheeter Date: Wed, 7 Feb 2018 09:37:06 -0800 Subject: [PATCH] glyph ids to retain should most likely keep the glyph id not the codepoint --- src/hb-subset-plan.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hb-subset-plan.cc b/src/hb-subset-plan.cc index 6bb0513c..470fa03e 100644 --- a/src/hb-subset-plan.cc +++ b/src/hb-subset-plan.cc @@ -55,7 +55,7 @@ glyph_ids_to_retain (hb_subset_face_t *face, hb_codepoint_t gid; if (face->cmap.get_nominal_glyph(cp, &gid)) { DEBUG_MSG(SUBSET, nullptr, "gid for U+%04X is %d", cp, gid); - hb_set_add(gids, cp); + hb_set_add(gids, gid); } else { DEBUG_MSG(SUBSET, nullptr, "Unable to resolve gid for U+%04X", cp); } -- GitLab