[hb-subset] Accept gidXXX-style glyph names

This commit is contained in:
Behdad Esfahbod committed 2025-04-05 15:20:49 -06:00
1 parent a637c08d5a
commit 0fecd2ecc3
1 file changed
+1 -1
+1 -1
View File
@@ -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);