[FT] Just return if glyph name not found

The fallback happens in higher level already.  No need to do here.
This commit is contained in:
Behdad Esfahbod 2013-03-06 19:37:31 -05:00
parent fb7c182bf9
commit 5594c2d112
1 changed files with 2 additions and 2 deletions

View File

@ -242,8 +242,8 @@ hb_ft_get_glyph_name (hb_font_t *font HB_UNUSED,
FT_Face ft_face = (FT_Face) font_data; FT_Face ft_face = (FT_Face) font_data;
hb_bool_t ret = !FT_Get_Glyph_Name (ft_face, glyph, name, size); hb_bool_t ret = !FT_Get_Glyph_Name (ft_face, glyph, name, size);
if (!ret || (size && !*name)) if (ret && (size && !*name))
snprintf (name, size, "gid%u", glyph); ret = false;
return ret; return ret;
} }