[API] Make get_glyph() callback return a boolean
authorBehdad Esfahbod <behdad@behdad.org>
Thu, 12 May 2011 19:14:13 +0000 (15:14 -0400)
committerBehdad Esfahbod <behdad@behdad.org>
Thu, 12 May 2011 19:14:13 +0000 (15:14 -0400)
commit0fd8c2f1be693616f19f2f1526369874763d6cf6
treec3f2fa8435c8500acd169680b2283963f955ce31
parent8e07f93ab4a3ef9adc7942727ef21f2f9a141d10
[API] Make get_glyph() callback return a boolean

We need to know whether the glyph exists, so we can fallback to
composing / decomposing.  Assuming that glyph==0 means "doesn't exist"
wouldn't work for applications like Pango that want to use different
"doesn't exist" glyph codes for different characters.  An explicit
return value fixes that.
src/hb-font.cc
src/hb-font.h
src/hb-ft.cc
src/hb-ot-shape.cc
test/test-font.c
test/test-shape.c