summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorChangwoo Ryu <cwryu@src.gnome.org>2004-07-11 20:39:53 +0000
committerChangwoo Ryu <cwryu@src.gnome.org>2004-07-11 20:39:53 +0000
commit7714887fb4acc8b715274f13dbc4a17e0fc9ef54 (patch)
tree4818498f3a457894c42392432ec0ab20d2f35fcc /modules
parentbfafb05de97e187fbbb85c83f4c7b59203a62439 (diff)
downloadpango-7714887fb4acc8b715274f13dbc4a17e0fc9ef54.tar.gz
Render U+00A0 (non-break-space) as a space.
* modules/hangul/hangul-fc.c (render_basic): Render U+00A0 (non-break-space) as a space.
Diffstat (limited to 'modules')
-rw-r--r--modules/hangul/hangul-fc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/hangul/hangul-fc.c b/modules/hangul/hangul-fc.c
index 1e5b2229..f7f5557b 100644
--- a/modules/hangul/hangul-fc.c
+++ b/modules/hangul/hangul-fc.c
@@ -280,6 +280,10 @@ render_basic (PangoFont *font, gunichar wc,
PangoGlyphString *glyphs, int *n_glyphs, int cluster_offset)
{
int index;
+
+ if (wc == 0xa0) /* non-break-space */
+ wc = 0x20;
+
index = find_char (font, wc);
pango_glyph_string_set_size (glyphs, *n_glyphs + 1);
if (index)