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:
ade7459
)
Minor
author
Behdad Esfahbod
<behdad@behdad.org>
Tue, 7 Aug 2012 03:06:04 +0000
(23:06 -0400)
committer
Behdad Esfahbod
<behdad@behdad.org>
Tue, 7 Aug 2012 03:06:04 +0000
(23:06 -0400)
src/hb-font.cc
patch
|
blob
|
history
diff --git
a/src/hb-font.cc
b/src/hb-font.cc
index
f0683e4
..
409b9e8
100644
(file)
--- a/
src/hb-font.cc
+++ b/
src/hb-font.cc
@@
-200,7
+200,6
@@
hb_font_get_glyph_name_nil (hb_font_t *font,
if (font->parent)
return hb_font_get_glyph_name (font->parent, glyph, name, size);
- snprintf (name, size, "gid%u", glyph);
return false;
}
@@
-411,7
+410,10
@@
hb_font_get_glyph_name (hb_font_t *font,
hb_codepoint_t glyph,
char *name, unsigned int size)
{
- return font->get_glyph_name (glyph, name, size);
+ hb_bool_t ret = font->get_glyph_name (glyph, name, size);
+ if (!ret)
+ snprintf (name, size, "gid%u", glyph);
+ return ret;
}
hb_bool_t