OLD | NEW |
1 /* | 1 /* |
2 * Copyright © 2009 Red Hat, Inc. | 2 * Copyright © 2009 Red Hat, Inc. |
3 * Copyright © 2011 Google, Inc. | 3 * Copyright © 2011 Google, Inc. |
4 * | 4 * |
5 * This is part of HarfBuzz, a text shaping library. | 5 * This is part of HarfBuzz, a text shaping library. |
6 * | 6 * |
7 * Permission is hereby granted, without written agreement and without | 7 * Permission is hereby granted, without written agreement and without |
8 * license or royalty fees, to use, copy, modify, and distribute this | 8 * license or royalty fees, to use, copy, modify, and distribute this |
9 * software and its documentation for any purpose, provided that the | 9 * software and its documentation for any purpose, provided that the |
10 * above copyright notice and the following two paragraphs appear in | 10 * above copyright notice and the following two paragraphs appear in |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 HB_SCRIPT_LISU, | 137 HB_SCRIPT_LISU, |
138 HB_SCRIPT_MEETEI_MAYEK, | 138 HB_SCRIPT_MEETEI_MAYEK, |
139 HB_SCRIPT_OLD_SOUTH_ARABIAN, | 139 HB_SCRIPT_OLD_SOUTH_ARABIAN, |
140 HB_SCRIPT_OLD_TURKIC, | 140 HB_SCRIPT_OLD_TURKIC, |
141 HB_SCRIPT_SAMARITAN, | 141 HB_SCRIPT_SAMARITAN, |
142 HB_SCRIPT_TAI_VIET, | 142 HB_SCRIPT_TAI_VIET, |
143 | 143 |
144 /* Unicode-6.0 additions */ | 144 /* Unicode-6.0 additions */ |
145 HB_SCRIPT_BATAK, | 145 HB_SCRIPT_BATAK, |
146 HB_SCRIPT_BRAHMI, | 146 HB_SCRIPT_BRAHMI, |
147 HB_SCRIPT_MANDAIC | 147 HB_SCRIPT_MANDAIC, |
| 148 |
| 149 /* Unicode-6.1 additions */ |
| 150 HB_SCRIPT_CHAKMA, |
| 151 HB_SCRIPT_MEROITIC_CURSIVE, |
| 152 HB_SCRIPT_MEROITIC_HIEROGLYPHS, |
| 153 HB_SCRIPT_MIAO, |
| 154 HB_SCRIPT_SHARADA, |
| 155 HB_SCRIPT_SORA_SOMPENG, |
| 156 HB_SCRIPT_TAKRI |
148 }; | 157 }; |
149 #endif | 158 #endif |
150 | 159 |
151 hb_script_t | 160 hb_script_t |
152 hb_glib_script_to_script (GUnicodeScript script) | 161 hb_glib_script_to_script (GUnicodeScript script) |
153 { | 162 { |
154 #if GLIB_CHECK_VERSION(2,29,14) | 163 #if GLIB_CHECK_VERSION(2,29,14) |
155 return (hb_script_t) g_unicode_script_to_iso15924 (script); | 164 return (hb_script_t) g_unicode_script_to_iso15924 (script); |
156 #else | 165 #else |
157 if (likely ((unsigned int) script < ARRAY_LENGTH (glib_script_to_script))) | 166 if (likely ((unsigned int) script < ARRAY_LENGTH (glib_script_to_script))) |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
340 #undef HB_UNICODE_FUNC_IMPLEMENT | 349 #undef HB_UNICODE_FUNC_IMPLEMENT |
341 } | 350 } |
342 }; | 351 }; |
343 | 352 |
344 hb_unicode_funcs_t * | 353 hb_unicode_funcs_t * |
345 hb_glib_get_unicode_funcs (void) | 354 hb_glib_get_unicode_funcs (void) |
346 { | 355 { |
347 return &_hb_glib_unicode_funcs; | 356 return &_hb_glib_unicode_funcs; |
348 } | 357 } |
349 | 358 |
OLD | NEW |