diff options
author | Owen Taylor <otaylor@redhat.com> | 2001-01-07 04:54:28 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2001-01-07 04:54:28 +0000 |
commit | 93968e4379a2893e3e8ddcbd24702100e8e91c0f (patch) | |
tree | abef3743d95cb735bf88d83877bdd046f7338c2e /modules | |
parent | 61b674ffd7dc481289d1b73b79048a7ee6f2da8b (diff) | |
download | pango-93968e4379a2893e3e8ddcbd24702100e8e91c0f.tar.gz |
Adapt to new g_utf8_to_ucs4() prototype.
Sat Jan 6 20:23:54 2001 Owen Taylor <otaylor@redhat.com>
* modules/arabic/arabic-x.c (arabic_engine_shape): Adapt
to new g_utf8_to_ucs4() prototype.
* modules/basic/basic-ft2.c: Include pango-engine.h
* pango/pangoft2.h: Don't include pango.h, which would
pull in pango-enums.h and thus break module building,
just include neeeded pango-layout.h
Diffstat (limited to 'modules')
-rw-r--r-- | modules/arabic/arabic-x.c | 3 | ||||
-rw-r--r-- | modules/basic/basic-ft2.c | 1 |
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/arabic/arabic-x.c b/modules/arabic/arabic-x.c index 1a427055..4ab5d6bf 100644 --- a/modules/arabic/arabic-x.c +++ b/modules/arabic/arabic-x.c @@ -216,8 +216,7 @@ arabic_engine_shape (PangoFont *font, p = text; if (analysis->level % 2 == 0) { - wc = g_utf8_to_ucs4(text,length); - n_chars = g_utf8_strlen(text,length); + wc = g_utf8_to_ucs4_fast (text,length,&n_chars); /* We were called on a LTR directional run (e.g. some numbers); fallback as simple as possible */ pango_glyph_string_set_size (glyphs, n_chars); diff --git a/modules/basic/basic-ft2.c b/modules/basic/basic-ft2.c index 72799e52..10a9bec2 100644 --- a/modules/basic/basic-ft2.c +++ b/modules/basic/basic-ft2.c @@ -23,6 +23,7 @@ #include <string.h> #include "pango-layout.h" +#include "pango-engine.h" #include "pangoft2.h" #include "pango-utils.h" |