2008-02-25 Tor Lillqvist <tml@novell.com>
Bug 515484 -- Uniscribe interface handles surrogate
pairs incorrectly
* modules/basic/basic-win32.c (itemize_shape_and_place): Pass
correctly offset wchar string to set_up_pango_log_clusters() so
that when it passes the string on to unichar_index() it notices
the surrogate pairs correctly.
svn path=/trunk/; revision=2574
+2008-02-25 Tor Lillqvist <tml@novell.com>
+
+ Bug 515484 – Uniscribe interface handles surrogate
+ pairs incorrectly
+
+ * modules/basic/basic-win32.c (itemize_shape_and_place): Pass
+ correctly offset wchar string to set_up_pango_log_clusters() so
+ that when it passes the string on to unichar_index() it notices
+ the surrogate pairs correctly.
+
2008-02-24 Tor Lillqvist <tml@novell.com>
Bug 515484 – Pango on Windows is missing Type 1
static int
unichar_index (wchar_t *wtext,
- int ix)
+ int ix)
{
int i, index;
ng = glyphs->num_glyphs;
pango_glyph_string_set_size (glyphs, ng + nglyphs);
- set_up_pango_log_clusters (wtext,
+ set_up_pango_log_clusters (wtext + items[item].iCharPos,
items[item].a.fRTL, itemlen, log_clusters,
nglyphs, glyphs->log_clusters + ng,
char_offset);