From 0fecd2ecc3511688560519433a90ea08ff3a75f7 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sat, 5 Apr 2025 15:20:49 -0600 Subject: [PATCH] [hb-subset] Accept gidXXX-style glyph names --- util/hb-subset.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/hb-subset.cc b/util/hb-subset.cc index f91184619..b6f063ebc 100644 --- a/util/hb-subset.cc +++ b/util/hb-subset.cc @@ -287,7 +287,7 @@ parse_glyphs (const char *name, if (p < end) { hb_codepoint_t gid; - if (!hb_font_get_glyph_from_name (font, p, end - p, &gid)) + if (!hb_font_glyph_from_string (font, p, end - p, &gid)) { g_set_error (error, G_OPTION_ERROR, G_OPTION_ERROR_BAD_VALUE, "Failed parsing glyph name: '%s'", p);