summaryrefslogtreecommitdiff
path: root/pango/pangoft2.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/pangoft2.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/pangoft2.c')
-rw-r--r--pango/pangoft2.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/pango/pangoft2.c b/pango/pangoft2.c
index 37198e50..4cb56e99 100644
--- a/pango/pangoft2.c
+++ b/pango/pangoft2.c
@@ -561,9 +561,7 @@ get_font_metrics_from_string (PangoFont *font,
PangoDirection base_dir = PANGO_DIRECTION_LTR;
GSList *subfonts = NULL;
- n_chars = g_utf8_strlen (str, -1);
-
- text_ucs4 = g_utf8_to_ucs4 (str, strlen (str));
+ text_ucs4 = g_utf8_to_ucs4_fast (str, -1, &n_chars);
if (!text_ucs4)
return;