[cairo-commit] src/cairo-ft-font.c
Adrian Johnson
ajohnson at kemper.freedesktop.org
Thu Jan 14 13:22:49 PST 2010
src/cairo-ft-font.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit f3b3a5c43f247f3e9019fa6c1fd2abb3b00dd9ea
Author: Adrian Johnson <ajohnson at redneon.com>
Date: Fri Jan 15 07:47:30 2010 +1030
Fix bug in _cairo_ft_index_to_ucs4
Previously it would miss the first character causing the space glyph to
return 0x00A0 instead of 0x0020.
diff --git a/src/cairo-ft-font.c b/src/cairo-ft-font.c
index 05f6562..447855c 100644
--- a/src/cairo-ft-font.c
+++ b/src/cairo-ft-font.c
@@ -2130,11 +2130,11 @@ _cairo_ft_index_to_ucs4(void *abstract_font,
*ucs4 = (uint32_t) -1;
charcode = FT_Get_First_Char(face, &gindex);
while (gindex != 0) {
- charcode = FT_Get_Next_Char (face, charcode, &gindex);
if (gindex == index) {
*ucs4 = charcode;
break;
}
+ charcode = FT_Get_Next_Char (face, charcode, &gindex);
}
_cairo_ft_unscaled_font_unlock_face (unscaled);
More information about the cairo-commit
mailing list