提交 d05ac7dc 编写于 作者: B Behdad Esfahbod

Fix hb-ft glyph name for broken fonts that return empty glyph names

上级 3bc22eb7
......@@ -242,7 +242,7 @@ hb_ft_get_glyph_name (hb_font_t *font HB_UNUSED,
FT_Face ft_face = (FT_Face) font_data;
hb_bool_t ret = !FT_Get_Glyph_Name (ft_face, glyph, name, size);
if (!ret)
if (!ret || (size && !*name))
snprintf (name, size, "gid%u", glyph);
return ret;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册