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:
fb7c182
)
[FT] Just return if glyph name not found
author
Behdad Esfahbod
<behdad@behdad.org>
Thu, 7 Mar 2013 00:37:31 +0000
(19:37 -0500)
committer
Behdad Esfahbod
<behdad@behdad.org>
Thu, 7 Mar 2013 00:37:31 +0000
(19:37 -0500)
The fallback happens in higher level already. No need to do here.
src/hb-ft.cc
patch
|
blob
|
history
diff --git
a/src/hb-ft.cc
b/src/hb-ft.cc
index
1e87c1c
..
a25d5a4
100644
(file)
--- 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;
}