summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorRobert Brady <robert@suse.co.uk>2000-11-13 02:44:41 +0000
committerRobert Brady <rbrady@src.gnome.org>2000-11-13 02:44:41 +0000
commit29943adceb90000b62b6ce0b2008ed099b23f359 (patch)
tree4f8744f71b2d5cd353f01eabeb5e959c025664c4 /modules
parent84edb7cb9a67dfd10857e9503ec953c05d870341 (diff)
downloadpango-29943adceb90000b62b6ce0b2008ed099b23f359.tar.gz
Replace fallback shaper with a call to pango_x_fallback_shape, this sets
Mon Nov 13 02:39:44 2000 Robert Brady <robert@suse.co.uk> * pango/modules/hangul/hangul.c: Replace fallback shaper with a call to pango_x_fallback_shape, this sets the cluster array properly. -------------------------------------------------------------------
Diffstat (limited to 'modules')
-rw-r--r--modules/hangul/hangul-x.c10
-rw-r--r--modules/hangul/hangul.c10
2 files changed, 2 insertions, 18 deletions
diff --git a/modules/hangul/hangul-x.c b/modules/hangul/hangul-x.c
index 8df658ed..43a6827e 100644
--- a/modules/hangul/hangul-x.c
+++ b/modules/hangul/hangul-x.c
@@ -604,16 +604,8 @@ hangul_engine_shape (PangoFont *font,
if (!find_subfont (font, secondary_charset, G_N_ELEMENTS (secondary_charset), &subfont, &render_func))
if (!find_subfont (font, fallback_charsets, G_N_ELEMENTS (fallback_charsets), &subfont, &render_func))
{
- PangoGlyph unknown_glyph = pango_x_get_unknown_glyph (font);
-
n_chars = g_utf8_strlen (text, length);
- pango_glyph_string_set_size (glyphs, n_chars);
-
- for (i=0; i<n_chars; i++)
- set_glyph (glyphs, i, font,
- PANGO_X_GLYPH_SUBFONT (unknown_glyph),
- PANGO_X_GLYPH_INDEX (unknown_glyph));
-
+ pango_x_fallback_shape (font, glyphs, text, n_chars);
return;
}
diff --git a/modules/hangul/hangul.c b/modules/hangul/hangul.c
index 8df658ed..43a6827e 100644
--- a/modules/hangul/hangul.c
+++ b/modules/hangul/hangul.c
@@ -604,16 +604,8 @@ hangul_engine_shape (PangoFont *font,
if (!find_subfont (font, secondary_charset, G_N_ELEMENTS (secondary_charset), &subfont, &render_func))
if (!find_subfont (font, fallback_charsets, G_N_ELEMENTS (fallback_charsets), &subfont, &render_func))
{
- PangoGlyph unknown_glyph = pango_x_get_unknown_glyph (font);
-
n_chars = g_utf8_strlen (text, length);
- pango_glyph_string_set_size (glyphs, n_chars);
-
- for (i=0; i<n_chars; i++)
- set_glyph (glyphs, i, font,
- PANGO_X_GLYPH_SUBFONT (unknown_glyph),
- PANGO_X_GLYPH_INDEX (unknown_glyph));
-
+ pango_x_fallback_shape (font, glyphs, text, n_chars);
return;
}