summaryrefslogtreecommitdiff
path: root/modules/basic/basic-ft2.c
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@src.gnome.org>2002-03-26 23:24:54 +0000
committerOwen Taylor <otaylor@src.gnome.org>2002-03-26 23:24:54 +0000
commit2606c3af9a32953b5f2eb4f5bfac4aa395f7e607 (patch)
treeabcaf26470b618e60165557b55a72c5d358fddf5 /modules/basic/basic-ft2.c
parent9d36c1dc2da9797cf08a915008c49570ff38578c (diff)
downloadpango-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-ft2.c')
-rw-r--r--modules/basic/basic-ft2.c20
1 files changed, 3 insertions, 17 deletions
diff --git a/modules/basic/basic-ft2.c b/modules/basic/basic-ft2.c
index 77fdd084..63d596ad 100644
--- a/modules/basic/basic-ft2.c
+++ b/modules/basic/basic-ft2.c
@@ -27,25 +27,11 @@
#include "pangoft2.h"
#include "pango-utils.h"
-#define SCRIPT_ENGINE_NAME "BasicScriptEngineFT2"
-
+#include "basic-common.h"
-/* Zero Width characters:
- *
- * 200B ZERO WIDTH SPACE
- * 200C ZERO WIDTH NON-JOINER
- * 200D ZERO WIDTH JOINER
- * 200E LEFT-TO-RIGHT MARK
- * 200F RIGHT-TO-LEFT MARK
- * 202A LEFT-TO-RIGHT EMBEDDING
- * 202B RIGHT-TO-LEFT EMBEDDING
- * 202C POP DIRECTIONAL FORMATTING
- * 202D LEFT-TO-RIGHT OVERRIDE
- * 202E RIGHT-TO-LEFT OVERRIDE
- */
+#define SCRIPT_ENGINE_NAME "BasicScriptEngineFT2"
-#define ZERO_WIDTH_CHAR(wc)\
-(((wc) >= 0x200B && (wc) <= 0x200F) || ((wc) >= 0x202A && (wc) <= 0x202E))
+#include "basic-common.h"
static PangoEngineRange basic_ranges[] = {