projects
/
platform
/
upstream
/
libHarfBuzzSharp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3bc22eb
)
Fix hb-ft glyph name for broken fonts that return empty glyph names
author
Behdad Esfahbod
<behdad@behdad.org>
Mon, 12 Nov 2012 18:26:50 +0000
(10:26 -0800)
committer
Behdad Esfahbod
<behdad@behdad.org>
Mon, 12 Nov 2012 18:26:50 +0000
(10:26 -0800)
src/hb-ft.cc
patch
|
blob
|
history
diff --git
a/src/hb-ft.cc
b/src/hb-ft.cc
index
9ac556e
..
6198185
100644
(file)
--- a/
src/hb-ft.cc
+++ b/
src/hb-ft.cc
@@
-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;