From 5594c2d112c295147ee69215a2ce9dfd99984aa0 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 6 Mar 2013 19:37:31 -0500 Subject: [PATCH] [FT] Just return if glyph name not found The fallback happens in higher level already. No need to do here. --- src/hb-ft.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hb-ft.cc b/src/hb-ft.cc index 1e87c1c..a25d5a4 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; } -- 2.7.4