gfx/harfbuzz/src/hb-common.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/gfx/harfbuzz/src/hb-common.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,339 @@
     1.4 +/*
     1.5 + * Copyright © 2007,2008,2009  Red Hat, Inc.
     1.6 + * Copyright © 2011,2012  Google, Inc.
     1.7 + *
     1.8 + *  This is part of HarfBuzz, a text shaping library.
     1.9 + *
    1.10 + * Permission is hereby granted, without written agreement and without
    1.11 + * license or royalty fees, to use, copy, modify, and distribute this
    1.12 + * software and its documentation for any purpose, provided that the
    1.13 + * above copyright notice and the following two paragraphs appear in
    1.14 + * all copies of this software.
    1.15 + *
    1.16 + * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
    1.17 + * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
    1.18 + * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
    1.19 + * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
    1.20 + * DAMAGE.
    1.21 + *
    1.22 + * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
    1.23 + * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
    1.24 + * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
    1.25 + * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
    1.26 + * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
    1.27 + *
    1.28 + * Red Hat Author(s): Behdad Esfahbod
    1.29 + * Google Author(s): Behdad Esfahbod
    1.30 + */
    1.31 +
    1.32 +#ifndef HB_H_IN
    1.33 +#error "Include <hb.h> instead."
    1.34 +#endif
    1.35 +
    1.36 +#ifndef HB_COMMON_H
    1.37 +#define HB_COMMON_H
    1.38 +
    1.39 +#ifndef HB_BEGIN_DECLS
    1.40 +# ifdef __cplusplus
    1.41 +#  define HB_BEGIN_DECLS	extern "C" {
    1.42 +#  define HB_END_DECLS		}
    1.43 +# else /* !__cplusplus */
    1.44 +#  define HB_BEGIN_DECLS
    1.45 +#  define HB_END_DECLS
    1.46 +# endif /* !__cplusplus */
    1.47 +#endif
    1.48 +
    1.49 +#if !defined (HB_DONT_DEFINE_STDINT)
    1.50 +
    1.51 +#if defined (_SVR4) || defined (SVR4) || defined (__OpenBSD__) || \
    1.52 +    defined (_sgi) || defined (__sun) || defined (sun) || \
    1.53 +    defined (__digital__) || defined (__HP_cc)
    1.54 +#  include <inttypes.h>
    1.55 +#elif defined (_AIX)
    1.56 +#  include <sys/inttypes.h>
    1.57 +/* VS 2010 (_MSC_VER 1600) has stdint.h */
    1.58 +#elif defined (_MSC_VER) && _MSC_VER < 1600
    1.59 +typedef __int8 int8_t;
    1.60 +typedef unsigned __int8 uint8_t;
    1.61 +typedef __int16 int16_t;
    1.62 +typedef unsigned __int16 uint16_t;
    1.63 +typedef __int32 int32_t;
    1.64 +typedef unsigned __int32 uint32_t;
    1.65 +typedef __int64 int64_t;
    1.66 +typedef unsigned __int64 uint64_t;
    1.67 +#else
    1.68 +#  include <stdint.h>
    1.69 +#endif
    1.70 +
    1.71 +#endif
    1.72 +
    1.73 +HB_BEGIN_DECLS
    1.74 +
    1.75 +
    1.76 +typedef int hb_bool_t;
    1.77 +
    1.78 +typedef uint32_t hb_codepoint_t;
    1.79 +typedef int32_t hb_position_t;
    1.80 +typedef uint32_t hb_mask_t;
    1.81 +
    1.82 +typedef union _hb_var_int_t {
    1.83 +  uint32_t u32;
    1.84 +  int32_t i32;
    1.85 +  uint16_t u16[2];
    1.86 +  int16_t i16[2];
    1.87 +  uint8_t u8[4];
    1.88 +  int8_t i8[4];
    1.89 +} hb_var_int_t;
    1.90 +
    1.91 +
    1.92 +/* hb_tag_t */
    1.93 +
    1.94 +typedef uint32_t hb_tag_t;
    1.95 +
    1.96 +#define HB_TAG(c1,c2,c3,c4) ((hb_tag_t)((((uint8_t)(c1))<<24)|(((uint8_t)(c2))<<16)|(((uint8_t)(c3))<<8)|((uint8_t)(c4))))
    1.97 +#define HB_UNTAG(tag)   ((uint8_t)((tag)>>24)), ((uint8_t)((tag)>>16)), ((uint8_t)((tag)>>8)), ((uint8_t)(tag))
    1.98 +
    1.99 +#define HB_TAG_NONE HB_TAG(0,0,0,0)
   1.100 +#define HB_TAG_MAX HB_TAG(0xff,0xff,0xff,0xff)
   1.101 +
   1.102 +/* len=-1 means str is NUL-terminated. */
   1.103 +hb_tag_t
   1.104 +hb_tag_from_string (const char *str, int len);
   1.105 +
   1.106 +/* buf should have 4 bytes. */
   1.107 +void
   1.108 +hb_tag_to_string (hb_tag_t tag, char *buf);
   1.109 +
   1.110 +
   1.111 +/* hb_direction_t */
   1.112 +
   1.113 +typedef enum {
   1.114 +  HB_DIRECTION_INVALID = 0,
   1.115 +  HB_DIRECTION_LTR = 4,
   1.116 +  HB_DIRECTION_RTL,
   1.117 +  HB_DIRECTION_TTB,
   1.118 +  HB_DIRECTION_BTT
   1.119 +} hb_direction_t;
   1.120 +
   1.121 +/* len=-1 means str is NUL-terminated */
   1.122 +hb_direction_t
   1.123 +hb_direction_from_string (const char *str, int len);
   1.124 +
   1.125 +const char *
   1.126 +hb_direction_to_string (hb_direction_t direction);
   1.127 +
   1.128 +#define HB_DIRECTION_IS_HORIZONTAL(dir)	((((unsigned int) (dir)) & ~1U) == 4)
   1.129 +#define HB_DIRECTION_IS_VERTICAL(dir)	((((unsigned int) (dir)) & ~1U) == 6)
   1.130 +#define HB_DIRECTION_IS_FORWARD(dir)	((((unsigned int) (dir)) & ~2U) == 4)
   1.131 +#define HB_DIRECTION_IS_BACKWARD(dir)	((((unsigned int) (dir)) & ~2U) == 5)
   1.132 +#define HB_DIRECTION_IS_VALID(dir)	((((unsigned int) (dir)) & ~3U) == 4)
   1.133 +#define HB_DIRECTION_REVERSE(dir)	((hb_direction_t) (((unsigned int) (dir)) ^ 1)) /* Direction must be valid */
   1.134 +
   1.135 +
   1.136 +/* hb_language_t */
   1.137 +
   1.138 +typedef const struct hb_language_impl_t *hb_language_t;
   1.139 +
   1.140 +/* len=-1 means str is NUL-terminated */
   1.141 +hb_language_t
   1.142 +hb_language_from_string (const char *str, int len);
   1.143 +
   1.144 +const char *
   1.145 +hb_language_to_string (hb_language_t language);
   1.146 +
   1.147 +#define HB_LANGUAGE_INVALID ((hb_language_t) NULL)
   1.148 +
   1.149 +hb_language_t
   1.150 +hb_language_get_default (void);
   1.151 +
   1.152 +
   1.153 +/* hb_script_t */
   1.154 +
   1.155 +/* http://unicode.org/iso15924/ */
   1.156 +/* http://goo.gl/x9ilM */
   1.157 +/* Unicode Character Database property: Script (sc) */
   1.158 +typedef enum
   1.159 +{
   1.160 +  /*1.1*/ HB_SCRIPT_COMMON			= HB_TAG ('Z','y','y','y'),
   1.161 +  /*1.1*/ HB_SCRIPT_INHERITED			= HB_TAG ('Z','i','n','h'),
   1.162 +  /*5.0*/ HB_SCRIPT_UNKNOWN			= HB_TAG ('Z','z','z','z'),
   1.163 +
   1.164 +  /*1.1*/ HB_SCRIPT_ARABIC			= HB_TAG ('A','r','a','b'),
   1.165 +  /*1.1*/ HB_SCRIPT_ARMENIAN			= HB_TAG ('A','r','m','n'),
   1.166 +  /*1.1*/ HB_SCRIPT_BENGALI			= HB_TAG ('B','e','n','g'),
   1.167 +  /*1.1*/ HB_SCRIPT_CYRILLIC			= HB_TAG ('C','y','r','l'),
   1.168 +  /*1.1*/ HB_SCRIPT_DEVANAGARI			= HB_TAG ('D','e','v','a'),
   1.169 +  /*1.1*/ HB_SCRIPT_GEORGIAN			= HB_TAG ('G','e','o','r'),
   1.170 +  /*1.1*/ HB_SCRIPT_GREEK			= HB_TAG ('G','r','e','k'),
   1.171 +  /*1.1*/ HB_SCRIPT_GUJARATI			= HB_TAG ('G','u','j','r'),
   1.172 +  /*1.1*/ HB_SCRIPT_GURMUKHI			= HB_TAG ('G','u','r','u'),
   1.173 +  /*1.1*/ HB_SCRIPT_HANGUL			= HB_TAG ('H','a','n','g'),
   1.174 +  /*1.1*/ HB_SCRIPT_HAN				= HB_TAG ('H','a','n','i'),
   1.175 +  /*1.1*/ HB_SCRIPT_HEBREW			= HB_TAG ('H','e','b','r'),
   1.176 +  /*1.1*/ HB_SCRIPT_HIRAGANA			= HB_TAG ('H','i','r','a'),
   1.177 +  /*1.1*/ HB_SCRIPT_KANNADA			= HB_TAG ('K','n','d','a'),
   1.178 +  /*1.1*/ HB_SCRIPT_KATAKANA			= HB_TAG ('K','a','n','a'),
   1.179 +  /*1.1*/ HB_SCRIPT_LAO				= HB_TAG ('L','a','o','o'),
   1.180 +  /*1.1*/ HB_SCRIPT_LATIN			= HB_TAG ('L','a','t','n'),
   1.181 +  /*1.1*/ HB_SCRIPT_MALAYALAM			= HB_TAG ('M','l','y','m'),
   1.182 +  /*1.1*/ HB_SCRIPT_ORIYA			= HB_TAG ('O','r','y','a'),
   1.183 +  /*1.1*/ HB_SCRIPT_TAMIL			= HB_TAG ('T','a','m','l'),
   1.184 +  /*1.1*/ HB_SCRIPT_TELUGU			= HB_TAG ('T','e','l','u'),
   1.185 +  /*1.1*/ HB_SCRIPT_THAI			= HB_TAG ('T','h','a','i'),
   1.186 +
   1.187 +  /*2.0*/ HB_SCRIPT_TIBETAN			= HB_TAG ('T','i','b','t'),
   1.188 +
   1.189 +  /*3.0*/ HB_SCRIPT_BOPOMOFO			= HB_TAG ('B','o','p','o'),
   1.190 +  /*3.0*/ HB_SCRIPT_BRAILLE			= HB_TAG ('B','r','a','i'),
   1.191 +  /*3.0*/ HB_SCRIPT_CANADIAN_SYLLABICS		= HB_TAG ('C','a','n','s'),
   1.192 +  /*3.0*/ HB_SCRIPT_CHEROKEE			= HB_TAG ('C','h','e','r'),
   1.193 +  /*3.0*/ HB_SCRIPT_ETHIOPIC			= HB_TAG ('E','t','h','i'),
   1.194 +  /*3.0*/ HB_SCRIPT_KHMER			= HB_TAG ('K','h','m','r'),
   1.195 +  /*3.0*/ HB_SCRIPT_MONGOLIAN			= HB_TAG ('M','o','n','g'),
   1.196 +  /*3.0*/ HB_SCRIPT_MYANMAR			= HB_TAG ('M','y','m','r'),
   1.197 +  /*3.0*/ HB_SCRIPT_OGHAM			= HB_TAG ('O','g','a','m'),
   1.198 +  /*3.0*/ HB_SCRIPT_RUNIC			= HB_TAG ('R','u','n','r'),
   1.199 +  /*3.0*/ HB_SCRIPT_SINHALA			= HB_TAG ('S','i','n','h'),
   1.200 +  /*3.0*/ HB_SCRIPT_SYRIAC			= HB_TAG ('S','y','r','c'),
   1.201 +  /*3.0*/ HB_SCRIPT_THAANA			= HB_TAG ('T','h','a','a'),
   1.202 +  /*3.0*/ HB_SCRIPT_YI				= HB_TAG ('Y','i','i','i'),
   1.203 +
   1.204 +  /*3.1*/ HB_SCRIPT_DESERET			= HB_TAG ('D','s','r','t'),
   1.205 +  /*3.1*/ HB_SCRIPT_GOTHIC			= HB_TAG ('G','o','t','h'),
   1.206 +  /*3.1*/ HB_SCRIPT_OLD_ITALIC			= HB_TAG ('I','t','a','l'),
   1.207 +
   1.208 +  /*3.2*/ HB_SCRIPT_BUHID			= HB_TAG ('B','u','h','d'),
   1.209 +  /*3.2*/ HB_SCRIPT_HANUNOO			= HB_TAG ('H','a','n','o'),
   1.210 +  /*3.2*/ HB_SCRIPT_TAGALOG			= HB_TAG ('T','g','l','g'),
   1.211 +  /*3.2*/ HB_SCRIPT_TAGBANWA			= HB_TAG ('T','a','g','b'),
   1.212 +
   1.213 +  /*4.0*/ HB_SCRIPT_CYPRIOT			= HB_TAG ('C','p','r','t'),
   1.214 +  /*4.0*/ HB_SCRIPT_LIMBU			= HB_TAG ('L','i','m','b'),
   1.215 +  /*4.0*/ HB_SCRIPT_LINEAR_B			= HB_TAG ('L','i','n','b'),
   1.216 +  /*4.0*/ HB_SCRIPT_OSMANYA			= HB_TAG ('O','s','m','a'),
   1.217 +  /*4.0*/ HB_SCRIPT_SHAVIAN			= HB_TAG ('S','h','a','w'),
   1.218 +  /*4.0*/ HB_SCRIPT_TAI_LE			= HB_TAG ('T','a','l','e'),
   1.219 +  /*4.0*/ HB_SCRIPT_UGARITIC			= HB_TAG ('U','g','a','r'),
   1.220 +
   1.221 +  /*4.1*/ HB_SCRIPT_BUGINESE			= HB_TAG ('B','u','g','i'),
   1.222 +  /*4.1*/ HB_SCRIPT_COPTIC			= HB_TAG ('C','o','p','t'),
   1.223 +  /*4.1*/ HB_SCRIPT_GLAGOLITIC			= HB_TAG ('G','l','a','g'),
   1.224 +  /*4.1*/ HB_SCRIPT_KHAROSHTHI			= HB_TAG ('K','h','a','r'),
   1.225 +  /*4.1*/ HB_SCRIPT_NEW_TAI_LUE			= HB_TAG ('T','a','l','u'),
   1.226 +  /*4.1*/ HB_SCRIPT_OLD_PERSIAN			= HB_TAG ('X','p','e','o'),
   1.227 +  /*4.1*/ HB_SCRIPT_SYLOTI_NAGRI		= HB_TAG ('S','y','l','o'),
   1.228 +  /*4.1*/ HB_SCRIPT_TIFINAGH			= HB_TAG ('T','f','n','g'),
   1.229 +
   1.230 +  /*5.0*/ HB_SCRIPT_BALINESE			= HB_TAG ('B','a','l','i'),
   1.231 +  /*5.0*/ HB_SCRIPT_CUNEIFORM			= HB_TAG ('X','s','u','x'),
   1.232 +  /*5.0*/ HB_SCRIPT_NKO				= HB_TAG ('N','k','o','o'),
   1.233 +  /*5.0*/ HB_SCRIPT_PHAGS_PA			= HB_TAG ('P','h','a','g'),
   1.234 +  /*5.0*/ HB_SCRIPT_PHOENICIAN			= HB_TAG ('P','h','n','x'),
   1.235 +
   1.236 +  /*5.1*/ HB_SCRIPT_CARIAN			= HB_TAG ('C','a','r','i'),
   1.237 +  /*5.1*/ HB_SCRIPT_CHAM			= HB_TAG ('C','h','a','m'),
   1.238 +  /*5.1*/ HB_SCRIPT_KAYAH_LI			= HB_TAG ('K','a','l','i'),
   1.239 +  /*5.1*/ HB_SCRIPT_LEPCHA			= HB_TAG ('L','e','p','c'),
   1.240 +  /*5.1*/ HB_SCRIPT_LYCIAN			= HB_TAG ('L','y','c','i'),
   1.241 +  /*5.1*/ HB_SCRIPT_LYDIAN			= HB_TAG ('L','y','d','i'),
   1.242 +  /*5.1*/ HB_SCRIPT_OL_CHIKI			= HB_TAG ('O','l','c','k'),
   1.243 +  /*5.1*/ HB_SCRIPT_REJANG			= HB_TAG ('R','j','n','g'),
   1.244 +  /*5.1*/ HB_SCRIPT_SAURASHTRA			= HB_TAG ('S','a','u','r'),
   1.245 +  /*5.1*/ HB_SCRIPT_SUNDANESE			= HB_TAG ('S','u','n','d'),
   1.246 +  /*5.1*/ HB_SCRIPT_VAI				= HB_TAG ('V','a','i','i'),
   1.247 +
   1.248 +  /*5.2*/ HB_SCRIPT_AVESTAN			= HB_TAG ('A','v','s','t'),
   1.249 +  /*5.2*/ HB_SCRIPT_BAMUM			= HB_TAG ('B','a','m','u'),
   1.250 +  /*5.2*/ HB_SCRIPT_EGYPTIAN_HIEROGLYPHS	= HB_TAG ('E','g','y','p'),
   1.251 +  /*5.2*/ HB_SCRIPT_IMPERIAL_ARAMAIC		= HB_TAG ('A','r','m','i'),
   1.252 +  /*5.2*/ HB_SCRIPT_INSCRIPTIONAL_PAHLAVI	= HB_TAG ('P','h','l','i'),
   1.253 +  /*5.2*/ HB_SCRIPT_INSCRIPTIONAL_PARTHIAN	= HB_TAG ('P','r','t','i'),
   1.254 +  /*5.2*/ HB_SCRIPT_JAVANESE			= HB_TAG ('J','a','v','a'),
   1.255 +  /*5.2*/ HB_SCRIPT_KAITHI			= HB_TAG ('K','t','h','i'),
   1.256 +  /*5.2*/ HB_SCRIPT_LISU			= HB_TAG ('L','i','s','u'),
   1.257 +  /*5.2*/ HB_SCRIPT_MEETEI_MAYEK		= HB_TAG ('M','t','e','i'),
   1.258 +  /*5.2*/ HB_SCRIPT_OLD_SOUTH_ARABIAN		= HB_TAG ('S','a','r','b'),
   1.259 +  /*5.2*/ HB_SCRIPT_OLD_TURKIC			= HB_TAG ('O','r','k','h'),
   1.260 +  /*5.2*/ HB_SCRIPT_SAMARITAN			= HB_TAG ('S','a','m','r'),
   1.261 +  /*5.2*/ HB_SCRIPT_TAI_THAM			= HB_TAG ('L','a','n','a'),
   1.262 +  /*5.2*/ HB_SCRIPT_TAI_VIET			= HB_TAG ('T','a','v','t'),
   1.263 +
   1.264 +  /*6.0*/ HB_SCRIPT_BATAK			= HB_TAG ('B','a','t','k'),
   1.265 +  /*6.0*/ HB_SCRIPT_BRAHMI			= HB_TAG ('B','r','a','h'),
   1.266 +  /*6.0*/ HB_SCRIPT_MANDAIC			= HB_TAG ('M','a','n','d'),
   1.267 +
   1.268 +  /*6.1*/ HB_SCRIPT_CHAKMA			= HB_TAG ('C','a','k','m'),
   1.269 +  /*6.1*/ HB_SCRIPT_MEROITIC_CURSIVE		= HB_TAG ('M','e','r','c'),
   1.270 +  /*6.1*/ HB_SCRIPT_MEROITIC_HIEROGLYPHS	= HB_TAG ('M','e','r','o'),
   1.271 +  /*6.1*/ HB_SCRIPT_MIAO			= HB_TAG ('P','l','r','d'),
   1.272 +  /*6.1*/ HB_SCRIPT_SHARADA			= HB_TAG ('S','h','r','d'),
   1.273 +  /*6.1*/ HB_SCRIPT_SORA_SOMPENG		= HB_TAG ('S','o','r','a'),
   1.274 +  /*6.1*/ HB_SCRIPT_TAKRI			= HB_TAG ('T','a','k','r'),
   1.275 +
   1.276 +  /* No script set. */
   1.277 +  /*---*/ HB_SCRIPT_INVALID			= HB_TAG_NONE,
   1.278 +
   1.279 +  /* Dummy value to ensure any hb_tag_t value can be passed/stored as hb_script_t
   1.280 +   * without risking undefined behavior. */
   1.281 +  /*---*/ _HB_SCRIPT_MAX_VALUE			= HB_TAG_MAX
   1.282 +
   1.283 +} hb_script_t;
   1.284 +
   1.285 +/* These are moved out of hb_script_t because glib-mkenums chokes otherwise. */
   1.286 +#if 0
   1.287 +  /*7.0*/ HB_SCRIPT_BASSA_VAH			= HB_TAG ('B','a','s','s'),
   1.288 +  /*7.0*/ HB_SCRIPT_CAUCASIAN_ALBANIAN		= HB_TAG ('A','g','h','b'),
   1.289 +  /*7.0*/ HB_SCRIPT_DUPLOYAN			= HB_TAG ('D','u','p','l'),
   1.290 +  /*7.0*/ HB_SCRIPT_ELBASAN			= HB_TAG ('E','l','b','a'),
   1.291 +  /*7.0*/ HB_SCRIPT_GRANTHA			= HB_TAG ('G','r','a','n'),
   1.292 +  /*7.0*/ HB_SCRIPT_KHOJKI			= HB_TAG ('K','h','o','j'),
   1.293 +  /*7.0*/ HB_SCRIPT_KHUDAWADI			= HB_TAG ('S','i','n','d'),
   1.294 +  /*7.0*/ HB_SCRIPT_LINEAR_A			= HB_TAG ('L','i','n','a'),
   1.295 +  /*7.0*/ HB_SCRIPT_MAHAJANI			= HB_TAG ('M','a','h','j'),
   1.296 +  /*7.0*/ HB_SCRIPT_MANICHAEAN			= HB_TAG ('M','a','n','i'),
   1.297 +  /*7.0*/ HB_SCRIPT_MENDE_KIKAKUI		= HB_TAG ('M','e','n','d'),
   1.298 +  /*7.0*/ HB_SCRIPT_MODI			= ???
   1.299 +  /*7.0*/ HB_SCRIPT_MRO				= HB_TAG ('M','r','o','o'),
   1.300 +  /*7.0*/ HB_SCRIPT_NABATAEAN			= HB_TAG ('N','b','a','t'),
   1.301 +  /*7.0*/ HB_SCRIPT_OLD_NORTH_ARABIAN		= HB_TAG ('N','a','r','b'),
   1.302 +  /*7.0*/ HB_SCRIPT_OLD_PERMIC			= HB_TAG ('P','e','r','m'),
   1.303 +  /*7.0*/ HB_SCRIPT_PAHAWH_HMONG		= HB_TAG ('H','m','n','g'),
   1.304 +  /*7.0*/ HB_SCRIPT_PALMYRENE			= HB_TAG ('P','a','l','m'),
   1.305 +  /*7.0*/ HB_SCRIPT_PAU_CIN_HAU			= ???
   1.306 +  /*7.0*/ HB_SCRIPT_PSALTER_PAHLAVI		= HB_TAG ('P','h','l','p'),
   1.307 +  /*7.0*/ HB_SCRIPT_SIDDHAM			= ???
   1.308 +  /*7.0*/ HB_SCRIPT_TIRHUTA			= HB_TAG ('T','i','r','h'),
   1.309 +  /*7.0*/ HB_SCRIPT_WARANG_CITI			= HB_TAG ('W','a','r','a'),
   1.310 +#endif
   1.311 +
   1.312 +
   1.313 +/* Script functions */
   1.314 +
   1.315 +hb_script_t
   1.316 +hb_script_from_iso15924_tag (hb_tag_t tag);
   1.317 +
   1.318 +/* suger for tag_from_string() then script_from_iso15924_tag */
   1.319 +/* len=-1 means s is NUL-terminated */
   1.320 +hb_script_t
   1.321 +hb_script_from_string (const char *s, int len);
   1.322 +
   1.323 +hb_tag_t
   1.324 +hb_script_to_iso15924_tag (hb_script_t script);
   1.325 +
   1.326 +hb_direction_t
   1.327 +hb_script_get_horizontal_direction (hb_script_t script);
   1.328 +
   1.329 +
   1.330 +/* User data */
   1.331 +
   1.332 +typedef struct hb_user_data_key_t {
   1.333 +  /*< private >*/
   1.334 +  char unused;
   1.335 +} hb_user_data_key_t;
   1.336 +
   1.337 +typedef void (*hb_destroy_func_t) (void *user_data);
   1.338 +
   1.339 +
   1.340 +HB_END_DECLS
   1.341 +
   1.342 +#endif /* HB_COMMON_H */

mercurial