提交 368b4e76 编写于 作者: B Behdad Esfahbod

Minor

上级 ade7459e
......@@ -200,7 +200,6 @@ hb_font_get_glyph_name_nil (hb_font_t *font,
if (font->parent)
return hb_font_get_glyph_name (font->parent, glyph, name, size);
snprintf (name, size, "gid%u", glyph);
return false;
}
......@@ -411,7 +410,10 @@ hb_font_get_glyph_name (hb_font_t *font,
hb_codepoint_t glyph,
char *name, unsigned int size)
{
return font->get_glyph_name (glyph, name, size);
hb_bool_t ret = font->get_glyph_name (glyph, name, size);
if (!ret)
snprintf (name, size, "gid%u", glyph);
return ret;
}
hb_bool_t
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册