summaryrefslogtreecommitdiff
path: root/modules/indic/indic-ot.h
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2004-12-16 00:11:38 +0000
committerOwen Taylor <otaylor@src.gnome.org>2004-12-16 00:11:38 +0000
commitecaf8d9232fbb063037f1e736b9f4ff58243618a (patch)
tree09211445dce6f0de8ceb3b680e55451fdd70b38a /modules/indic/indic-ot.h
parent74c8a2b646f12eef4c7fb59dd2eece8a6d44499c (diff)
downloadpango-ecaf8d9232fbb063037f1e736b9f4ff58243618a.tar.gz
Force zero-width marks to glyph index 0 so they won't be drawn. (#145233,
Wed Dec 15 18:50:18 2004 Owen Taylor <otaylor@redhat.com> * modules/indic/indic-fc.c modules/indic/indic-ot.h: Force zero-width marks to glyph index 0 so they won't be drawn. (#145233, Aniruddha Shankar)
Diffstat (limited to 'modules/indic/indic-ot.h')
-rw-r--r--modules/indic/indic-ot.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/modules/indic/indic-ot.h b/modules/indic/indic-ot.h
index 3337fe0e..9dfe4465 100644
--- a/modules/indic/indic-ot.h
+++ b/modules/indic/indic-ot.h
@@ -175,6 +175,25 @@ enum indic_glyph_property_
#define HAS_BELOW_BASE_FORM(charClass) ((charClass & CF_BELOW_BASE) != 0)
+/* This macro definition is shared with 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
+ * FEFF ZERO WIDTH NO-BREAK SPACE
+ */
+#define ZERO_WIDTH_CHAR(wc) \
+ (((wc) >= 0x200B && (wc) <= 0x200F) || ((wc) >= 0x202A && (wc) <= 0x202E) || ((wc) == 0xFEFF))
+
struct _IndicOTClassTable
{
gunichar firstChar;