summaryrefslogtreecommitdiff
path: root/pango/pango-context.c
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2001-01-05 21:23:31 +0000
committerOwen Taylor <otaylor@src.gnome.org>2001-01-05 21:23:31 +0000
commit61b674ffd7dc481289d1b73b79048a7ee6f2da8b (patch)
treeb12d9383e95208cf07971347d65b669494abe837 /pango/pango-context.c
parentcfeef42ca84e57542052ac489766b02a2a5fce8f (diff)
downloadpango-61b674ffd7dc481289d1b73b79048a7ee6f2da8b.tar.gz
Adopt to new prototype for g_utf8_to_ucs4 (etc.).
Fri Jan 5 16:12:37 2001 Owen Taylor <otaylor@redhat.com> * modules/arabic/{arabic-xft,arabic}.c pango/{pango-context.c,pangoft.c,pangox.c}: Adopt to new prototype for g_utf8_to_ucs4 (etc.).
Diffstat (limited to 'pango/pango-context.c')
-rw-r--r--pango/pango-context.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/pango/pango-context.c b/pango/pango-context.c
index 26bd386f..861a2a7a 100644
--- a/pango/pango-context.c
+++ b/pango/pango-context.c
@@ -560,11 +560,8 @@ pango_itemize (PangoContext *context,
/* First, apply the bidirectional algorithm to break
* the text into directional runs.
*/
- text_ucs4 = g_utf8_to_ucs4 (text + start_index, length);
- if (!text_ucs4)
- return NULL;
+ text_ucs4 = g_utf8_to_ucs4_fast (text + start_index, length, &n_chars);
- n_chars = g_utf8_strlen (text + start_index, length);
embedding_levels = g_new (guint8, n_chars);
pango_log2vis_get_embedding_levels (text_ucs4, n_chars, &base_dir,