diff options
author | Owen Taylor <otaylor@redhat.com> | 2002-03-25 20:50:39 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2002-03-25 20:50:39 +0000 |
commit | b7418a446d73d7c9b504dcc06f647eb8931014c7 (patch) | |
tree | 079147a2bfe168dfd7bbe2c730170920b36e7471 /modules/basic/basic-win32.c | |
parent | cb3f2bba1b88269086521993c9227710c314eebe (diff) | |
download | pango-b7418a446d73d7c9b504dcc06f647eb8931014c7.tar.gz |
Convert U+00A0 (NON BREAK SPACE) to U+0020 (SPACE)
Mon Mar 25 15:46:54 2002 Owen Taylor <otaylor@redhat.com>
* modules/basic/basic-*.c: Convert U+00A0 (NON BREAK SPACE)
to U+0020 (SPACE)
* modules/basic/basic-xft.c (basic_engine_shape): Remove
some dead code.
Diffstat (limited to 'modules/basic/basic-win32.c')
-rw-r--r-- | modules/basic/basic-win32.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/basic/basic-win32.c b/modules/basic/basic-win32.c index e5f1fdf5..f5e75be5 100644 --- a/modules/basic/basic-win32.c +++ b/modules/basic/basic-win32.c @@ -140,6 +140,9 @@ basic_engine_shape (PangoFont *font, if (pango_get_mirror_char (wc, &mirrored_ch)) wc = mirrored_ch; + if (wc == 0xa0) /* non-break-space */ + wc = 0x20; + if (wc == 0x200B || wc == 0x200E || wc == 0x200F) /* Zero-width characters */ { set_glyph (font, glyphs, i, p - text, 0); |