summaryrefslogtreecommitdiff
path: root/modules/thai/thai-shaper.h
diff options
context:
space:
mode:
Diffstat (limited to 'modules/thai/thai-shaper.h')
-rw-r--r--modules/thai/thai-shaper.h12
1 files changed, 1 insertions, 11 deletions
diff --git a/modules/thai/thai-shaper.h b/modules/thai/thai-shaper.h
index b745da86..8055ce85 100644
--- a/modules/thai/thai-shaper.h
+++ b/modules/thai/thai-shaper.h
@@ -1,10 +1,7 @@
#ifndef __THAI_SHAPER_H__
#define __THAI_SHAPER_H__
-#ifdef HAVE_X
-#include "pangox.h"
-#endif
-
+#define isthai(wc) (wc >= 0xE00 && wc < 0xE80)
#define ucs2tis(wc) (unsigned int)((unsigned int)(wc) - 0x0E00 + 0xA0)
#define tis2uni(c) ((gunichar)(c) - 0xA0 + 0x0E00)
@@ -14,7 +11,6 @@ typedef struct _ThaiFontInfo ThaiFontInfo;
*/
typedef enum {
THAI_FONT_NONE,
- THAI_FONT_XTIS,
THAI_FONT_TIS,
THAI_FONT_TIS_MAC,
THAI_FONT_TIS_WIN,
@@ -30,9 +26,6 @@ struct _ThaiFontInfo
{
PangoFont *font;
ThaiFontSet font_set;
-#ifdef HAVE_X
- PangoXSubfont subfont; /* For X backend */
-#endif
};
/*
@@ -47,9 +40,6 @@ thai_make_glyph (ThaiFontInfo *font_info, unsigned int c);
PangoGlyph
thai_make_unknown_glyph (ThaiFontInfo *font_info, unsigned int c);
-gboolean
-thai_has_glyph (ThaiFontInfo *font_info, PangoGlyph glyph);
-
/*
* Public functions
*/