diff options
author | Owen Taylor <otaylor@src.gnome.org> | 2002-03-26 23:24:54 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2002-03-26 23:24:54 +0000 |
commit | 2606c3af9a32953b5f2eb4f5bfac4aa395f7e607 (patch) | |
tree | abcaf26470b618e60165557b55a72c5d358fddf5 /modules/basic/basic-win32.c | |
parent | 9d36c1dc2da9797cf08a915008c49570ff38578c (diff) | |
download | pango-2606c3af9a32953b5f2eb4f5bfac4aa395f7e607.tar.gz |
ue Mar 26 18:22:07 2002 Owen Taylor <otaylor@redhat.com>
* modules/basic/basic-*.c modules/basic/basic-common.h: Move
ZERO_WIDTH_CHAR() macro into a common header file, add
ZERO WIDTH-NO BREAK SPACE (U+FEFF)
* modules/basic/Makefile.am (EXTRA_DIST): Add basic-common.h.
Diffstat (limited to 'modules/basic/basic-win32.c')
-rw-r--r-- | modules/basic/basic-win32.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/basic/basic-win32.c b/modules/basic/basic-win32.c index f5e75be5..b5c61f6a 100644 --- a/modules/basic/basic-win32.c +++ b/modules/basic/basic-win32.c @@ -25,6 +25,8 @@ #include "pango-engine.h" #include "pango-utils.h" +#include "basic-common.h" + #define SCRIPT_ENGINE_NAME "BasicScriptEngineWin32" static PangoEngineRange basic_ranges[] = { @@ -143,7 +145,7 @@ basic_engine_shape (PangoFont *font, if (wc == 0xa0) /* non-break-space */ wc = 0x20; - if (wc == 0x200B || wc == 0x200E || wc == 0x200F) /* Zero-width characters */ + if (ZERO_WIDTH_CHAR (wc)) { set_glyph (font, glyphs, i, p - text, 0); } |