summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAdrian Johnson <ajohnson@redneon.com>2010-01-15 07:47:30 +1030
committerAdrian Johnson <ajohnson@redneon.com>2010-01-15 07:47:30 +1030
commitf3b3a5c43f247f3e9019fa6c1fd2abb3b00dd9ea (patch)
tree73f480b8e2f86fcb295f6cfe7b3ac2ca4c8dc1ba /src
parente26e2c8cc41b4e60462eacbd87894dc82beca883 (diff)
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.
Diffstat (limited to 'src')
-rw-r--r--src/cairo-ft-font.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cairo-ft-font.c b/src/cairo-ft-font.c
index 05f65628..447855cc 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);