提交 5594c2d1 编写于 作者: B Behdad Esfahbod

[FT] Just return if glyph name not found

The fallback happens in higher level already.  No need to do here.
上级 fb7c182b
......@@ -242,8 +242,8 @@ 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 || (size && !*name))
snprintf (name, size, "gid%u", glyph);
if (ret && (size && !*name))
ret = false;
return ret;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册