diff --git a/src/hb-ft.cc b/src/hb-ft.cc index 1e87c1cb324e75b17e112748ee5c89cdef08481d..a25d5a423a23b83ab88b268f9ff9997f06460866 100644 --- a/src/hb-ft.cc +++ b/src/hb-ft.cc @@ -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; }