]> git.sesse.net Git - casparcg/blob - SFML-1.6/extlibs/headers/freetype/ttnameid.h
(no commit message)
[casparcg] / SFML-1.6 / extlibs / headers / freetype / ttnameid.h
1 /***************************************************************************/
2 /*                                                                         */
3 /*  ttnameid.h                                                             */
4 /*                                                                         */
5 /*    TrueType name ID definitions (specification only).                   */
6 /*                                                                         */
7 /*  Copyright 1996-2002, 2003, 2004 by                                     */
8 /*  David Turner, Robert Wilhelm, and Werner Lemberg.                      */
9 /*                                                                         */
10 /*  This file is part of the FreeType project, and may only be used,       */
11 /*  modified, and distributed under the terms of the FreeType project      */
12 /*  license, LICENSE.TXT.  By continuing to use, modify, or distribute     */
13 /*  this file you indicate that you have read the license and              */
14 /*  understand and accept it fully.                                        */
15 /*                                                                         */
16 /***************************************************************************/
17
18
19 #ifndef __TTNAMEID_H__
20 #define __TTNAMEID_H__
21
22
23 #include <ft2build.h>
24
25
26 FT_BEGIN_HEADER
27
28
29   /*************************************************************************/
30   /*                                                                       */
31   /* Possible values for the `platform' identifier code in the name        */
32   /* records of the TTF `name' table.                                      */
33   /*                                                                       */
34   /*************************************************************************/
35
36
37   /***********************************************************************
38    *
39    * @enum:
40    *   TT_PLATFORM_XXX
41    *
42    * @description:
43    *   A list of valid values for the `platform_id' identifier code in
44    *   @FT_CharMapRec and @FT_SfntName structures.
45    *
46    * @values:
47    *   TT_PLATFORM_APPLE_UNICODE ::
48    *     Used by Apple to indicate a Unicode character map and/or name entry.
49    *     See @TT_APPLE_ID_XXX for corresponding `encoding_id' values.  Note
50    *     that name entries in this format are coded as big-endian UCS-2
51    *     character codes _only_.
52    *
53    *   TT_PLATFORM_MACINTOSH ::
54    *     Used by Apple to indicate a MacOS-specific charmap and/or name entry.
55    *     See @TT_MAC_ID_XXX for corresponding `encoding_id' values.  Note that
56    *     most TrueType fonts contain an Apple roman charmap to be usable on
57    *     MacOS systems (even if they contain a Microsoft charmap as well).
58    *
59    *   TT_PLATFORM_ISO ::
60    *     This value was used to specify Unicode charmaps.  It is however
61    *     now deprecated.  See @TT_ISO_ID_XXX for a list of corresponding
62    *     `encoding_id' values.
63    *
64    *   TT_PLATFORM_MICROSOFT ::
65    *     Used by Microsoft to indicate Windows-specific charmaps.  See
66    *     @TT_MS_ID_XXX for a list of corresponding `encoding_id' values.
67    *     Note that most fonts contain a Unicode charmap using
68    *     (@TT_PLATFORM_MICROSOFT, @TT_MS_ID_UNICODE_CS).
69    *
70    *   TT_PLATFORM_CUSTOM ::
71    *     Used to indicate application-specific charmaps.
72    *
73    *   TT_PLATFORM_ADOBE ::
74    *     This value isn't part of any font format specification, but is used
75    *     by FreeType to report Adobe-specific charmaps in an @FT_CharMapRec
76    *     structure.  See @TT_ADOBE_ID_XXX.
77    */
78
79 #define TT_PLATFORM_APPLE_UNICODE  0
80 #define TT_PLATFORM_MACINTOSH      1
81 #define TT_PLATFORM_ISO            2 /* deprecated */
82 #define TT_PLATFORM_MICROSOFT      3
83 #define TT_PLATFORM_CUSTOM         4
84 #define TT_PLATFORM_ADOBE          7 /* artificial */
85
86
87   /***********************************************************************
88    *
89    * @enum:
90    *   TT_APPLE_ID_XXX
91    *
92    * @description:
93    *   A list of valid values for the `encoding_id' for
94    *   @TT_PLATFORM_APPLE_UNICODE charmaps and name entries.
95    *
96    * @values:
97    *   TT_APPLE_ID_DEFAULT ::
98    *     Unicode version 1.0.
99    *   TT_APPLE_ID_UNICODE_1_1 ::
100    *     Unicode 1.1; specifies Hangul characters starting at U+34xx.
101    *   TT_APPLE_ID_ISO_10646 ::
102    *     Deprecated (identical to preceding.)
103    *   TT_APPLE_ID_UNICODE_2_0 ::
104    *     Unicode 2.0 and beyond (UTF-16 BMP only.)
105    *   TT_APPLE_ID_UNICODE_32 ::
106    *     Unicode 3.1 and beyond, using UTF-32
107    */
108
109 #define TT_APPLE_ID_DEFAULT      0 /* Unicode 1.0 */
110 #define TT_APPLE_ID_UNICODE_1_1  1 /* specify Hangul at U+34xx */
111 #define TT_APPLE_ID_ISO_10646    2 /* deprecated */
112 #define TT_APPLE_ID_UNICODE_2_0  3 /* or later */
113 #define TT_APPLE_ID_UNICODE_32   4 /* 2.0 or later, full repertoire */
114
115
116   /***********************************************************************
117    *
118    * @enum:
119    *   TT_MAC_ID_XXX
120    *
121    * @description:
122    *   A list of valid values for the `encoding_id' for
123    *   @TT_PLATFORM_MACINTOSH charmaps and name entries.
124    *
125    * @values:
126    *   TT_MAC_ID_ROMAN ::
127    *   TT_MAC_ID_JAPANESE ::
128    *   TT_MAC_ID_TRADITIONAL_CHINESE ::
129    *   TT_MAC_ID_KOREAN ::
130    *   TT_MAC_ID_ARABIC ::
131    *   TT_MAC_ID_HEBREW ::
132    *   TT_MAC_ID_GREEK ::
133    *   TT_MAC_ID_RUSSIAN ::
134    *   TT_MAC_ID_RSYMBOL ::
135    *   TT_MAC_ID_DEVANAGARI ::
136    *   TT_MAC_ID_GURMUKHI ::
137    *   TT_MAC_ID_GUJARATI ::
138    *   TT_MAC_ID_ORIYA ::
139    *   TT_MAC_ID_BENGALI ::
140    *   TT_MAC_ID_TAMIL ::
141    *   TT_MAC_ID_TELUGU ::
142    *   TT_MAC_ID_KANNADA ::
143    *   TT_MAC_ID_MALAYALAM ::
144    *   TT_MAC_ID_SINHALESE ::
145    *   TT_MAC_ID_BURMESE ::
146    *   TT_MAC_ID_KHMER ::
147    *   TT_MAC_ID_THAI ::
148    *   TT_MAC_ID_LAOTIAN ::
149    *   TT_MAC_ID_GEORGIAN ::
150    *   TT_MAC_ID_ARMENIAN ::
151    *   TT_MAC_ID_MALDIVIAN ::
152    *   TT_MAC_ID_SIMPLIFIED_CHINESE ::
153    *   TT_MAC_ID_TIBETAN ::
154    *   TT_MAC_ID_MONGOLIAN ::
155    *   TT_MAC_ID_GEEZ ::
156    *   TT_MAC_ID_SLAVIC ::
157    *   TT_MAC_ID_VIETNAMESE ::
158    *   TT_MAC_ID_SINDHI ::
159    *   TT_MAC_ID_UNINTERP ::
160    */
161
162 #define TT_MAC_ID_ROMAN                 0
163 #define TT_MAC_ID_JAPANESE              1
164 #define TT_MAC_ID_TRADITIONAL_CHINESE   2
165 #define TT_MAC_ID_KOREAN                3
166 #define TT_MAC_ID_ARABIC                4
167 #define TT_MAC_ID_HEBREW                5
168 #define TT_MAC_ID_GREEK                 6
169 #define TT_MAC_ID_RUSSIAN               7
170 #define TT_MAC_ID_RSYMBOL               8
171 #define TT_MAC_ID_DEVANAGARI            9
172 #define TT_MAC_ID_GURMUKHI             10
173 #define TT_MAC_ID_GUJARATI             11
174 #define TT_MAC_ID_ORIYA                12
175 #define TT_MAC_ID_BENGALI              13
176 #define TT_MAC_ID_TAMIL                14
177 #define TT_MAC_ID_TELUGU               15
178 #define TT_MAC_ID_KANNADA              16
179 #define TT_MAC_ID_MALAYALAM            17
180 #define TT_MAC_ID_SINHALESE            18
181 #define TT_MAC_ID_BURMESE              19
182 #define TT_MAC_ID_KHMER                20
183 #define TT_MAC_ID_THAI                 21
184 #define TT_MAC_ID_LAOTIAN              22
185 #define TT_MAC_ID_GEORGIAN             23
186 #define TT_MAC_ID_ARMENIAN             24
187 #define TT_MAC_ID_MALDIVIAN            25
188 #define TT_MAC_ID_SIMPLIFIED_CHINESE   25
189 #define TT_MAC_ID_TIBETAN              26
190 #define TT_MAC_ID_MONGOLIAN            27
191 #define TT_MAC_ID_GEEZ                 28
192 #define TT_MAC_ID_SLAVIC               29
193 #define TT_MAC_ID_VIETNAMESE           30
194 #define TT_MAC_ID_SINDHI               31
195 #define TT_MAC_ID_UNINTERP             32
196
197
198   /***********************************************************************
199    *
200    * @enum:
201    *   TT_ISO_ID_XXX
202    *
203    * @description:
204    *   A list of valid values for the `encoding_id' for
205    *   @TT_PLATFORM_ISO charmaps and name entries.
206    *
207    *   Their use is now deprecated.
208    *
209    * @values:
210    *   TT_ISO_ID_7BIT_ASCII ::
211    *     ASCII.
212    *   TT_ISO_ID_10646 ::
213    *     ISO/10646.
214    *   TT_ISO_ID_8859_1 ::
215    *     Also known as Latin-1.
216    */
217
218 #define TT_ISO_ID_7BIT_ASCII  0
219 #define TT_ISO_ID_10646       1
220 #define TT_ISO_ID_8859_1      2
221
222
223   /***********************************************************************
224    *
225    * @enum:
226    *   TT_MS_ID_XXX
227    *
228    * @description:
229    *   A list of valid values for the `encoding_id' for
230    *   @TT_PLATFORM_MICROSOFT charmaps and name entries.
231    *
232    * @values:
233    *   TT_MS_ID_SYMBOL_CS ::
234    *     Corresponds to Microsoft symbol encoding. See
235    *     @FT_ENCODING_MS_SYMBOL.
236    *
237    *   TT_MS_ID_UNICODE_CS ::
238    *     Corresponds to a Microsoft WGL4 charmap, matching Unicode.  See
239    *     @FT_ENCODING_UNICODE.
240    *
241    *   TT_MS_ID_SJIS ::
242    *     Corresponds to SJIS Japanese encoding.  See @FT_ENCODING_SJIS.
243    *
244    *   TT_MS_ID_GB2312 ::
245    *     Corresponds to Simplified Chinese as used in Mainland China.  See
246    *     @FT_ENCODING_GB2312.
247    *
248    *   TT_MS_ID_BIG_5 ::
249    *     Corresponds to Traditional Chinese as used in Taiwan and Hong Kong.
250    *     See @FT_ENCODING_BIG5.
251    *
252    *   TT_MS_ID_WANSUNG ::
253    *     Corresponds to Korean Wansung encoding.  See @FT_ENCODING_WANSUNG.
254    *
255    *   TT_MS_ID_JOHAB ::
256    *     Corresponds to Johab encoding.  See @FT_ENCODING_JOHAB.
257    *
258    *   TT_MS_ID_UCS_4 ::
259    *     Corresponds to UCS-4 or UTF-32 charmaps.  This has been added to
260    *     the OpenType specification version 1.4 (mid-2001.)
261    */
262
263 #define TT_MS_ID_SYMBOL_CS    0
264 #define TT_MS_ID_UNICODE_CS   1
265 #define TT_MS_ID_SJIS         2
266 #define TT_MS_ID_GB2312       3
267 #define TT_MS_ID_BIG_5        4
268 #define TT_MS_ID_WANSUNG      5
269 #define TT_MS_ID_JOHAB        6
270 #define TT_MS_ID_UCS_4       10
271
272
273   /***********************************************************************
274    *
275    * @enum:
276    *   TT_ADOBE_ID_XXX
277    *
278    * @description:
279    *   A list of valid values for the `encoding_id' for
280    *   @TT_PLATFORM_ADOBE charmaps.  This is a FreeType-specific extension!
281    *
282    * @values:
283    *   TT_ADOBE_ID_STANDARD ::
284    *     Adobe standard encoding.
285    *   TT_ADOBE_ID_EXPERT ::
286    *     Adobe expert encoding.
287    *   TT_ADOBE_ID_CUSTOM ::
288    *     Adobe custom encoding.
289    */
290
291 #define TT_ADOBE_ID_STANDARD  0
292 #define TT_ADOBE_ID_EXPERT    1
293 #define TT_ADOBE_ID_CUSTOM    2
294 #define TT_ADOBE_ID_LATIN_1   3
295
296
297   /*************************************************************************/
298   /*                                                                       */
299   /* Possible values of the language identifier field in the name records  */
300   /* of the TTF `name' table if the `platform' identifier code is          */
301   /* TT_PLATFORM_MACINTOSH.                                                */
302   /*                                                                       */
303   /* The canonical source for the Apple assigned Language ID's is at       */
304   /*                                                                       */
305   /*   http://fonts.apple.com/TTRefMan/RM06/Chap6name.html                 */
306   /*                                                                       */
307 #define TT_MAC_LANGID_ENGLISH                       0
308 #define TT_MAC_LANGID_FRENCH                        1
309 #define TT_MAC_LANGID_GERMAN                        2
310 #define TT_MAC_LANGID_ITALIAN                       3
311 #define TT_MAC_LANGID_DUTCH                         4
312 #define TT_MAC_LANGID_SWEDISH                       5
313 #define TT_MAC_LANGID_SPANISH                       6
314 #define TT_MAC_LANGID_DANISH                        7
315 #define TT_MAC_LANGID_PORTUGUESE                    8
316 #define TT_MAC_LANGID_NORWEGIAN                     9
317 #define TT_MAC_LANGID_HEBREW                       10
318 #define TT_MAC_LANGID_JAPANESE                     11
319 #define TT_MAC_LANGID_ARABIC                       12
320 #define TT_MAC_LANGID_FINNISH                      13
321 #define TT_MAC_LANGID_GREEK                        14
322 #define TT_MAC_LANGID_ICELANDIC                    15
323 #define TT_MAC_LANGID_MALTESE                      16
324 #define TT_MAC_LANGID_TURKISH                      17
325 #define TT_MAC_LANGID_CROATIAN                     18
326 #define TT_MAC_LANGID_CHINESE_TRADITIONAL          19
327 #define TT_MAC_LANGID_URDU                         20
328 #define TT_MAC_LANGID_HINDI                        21
329 #define TT_MAC_LANGID_THAI                         22
330 #define TT_MAC_LANGID_KOREAN                       23
331 #define TT_MAC_LANGID_LITHUANIAN                   24
332 #define TT_MAC_LANGID_POLISH                       25
333 #define TT_MAC_LANGID_HUNGARIAN                    26
334 #define TT_MAC_LANGID_ESTONIAN                     27
335 #define TT_MAC_LANGID_LETTISH                      28
336 #define TT_MAC_LANGID_SAAMISK                      29
337 #define TT_MAC_LANGID_FAEROESE                     30
338 #define TT_MAC_LANGID_FARSI                        31
339 #define TT_MAC_LANGID_RUSSIAN                      32
340 #define TT_MAC_LANGID_CHINESE_SIMPLIFIED           33
341 #define TT_MAC_LANGID_FLEMISH                      34
342 #define TT_MAC_LANGID_IRISH                        35
343 #define TT_MAC_LANGID_ALBANIAN                     36
344 #define TT_MAC_LANGID_ROMANIAN                     37
345 #define TT_MAC_LANGID_CZECH                        38
346 #define TT_MAC_LANGID_SLOVAK                       39
347 #define TT_MAC_LANGID_SLOVENIAN                    40
348 #define TT_MAC_LANGID_YIDDISH                      41
349 #define TT_MAC_LANGID_SERBIAN                      42
350 #define TT_MAC_LANGID_MACEDONIAN                   43
351 #define TT_MAC_LANGID_BULGARIAN                    44
352 #define TT_MAC_LANGID_UKRAINIAN                    45
353 #define TT_MAC_LANGID_BYELORUSSIAN                 46
354 #define TT_MAC_LANGID_UZBEK                        47
355 #define TT_MAC_LANGID_KAZAKH                       48
356 #define TT_MAC_LANGID_AZERBAIJANI                  49
357 #define TT_MAC_LANGID_AZERBAIJANI_CYRILLIC_SCRIPT  49
358 #define TT_MAC_LANGID_AZERBAIJANI_ARABIC_SCRIPT    50
359 #define TT_MAC_LANGID_ARMENIAN                     51
360 #define TT_MAC_LANGID_GEORGIAN                     52
361 #define TT_MAC_LANGID_MOLDAVIAN                    53
362 #define TT_MAC_LANGID_KIRGHIZ                      54
363 #define TT_MAC_LANGID_TAJIKI                       55
364 #define TT_MAC_LANGID_TURKMEN                      56
365 #define TT_MAC_LANGID_MONGOLIAN                    57
366 #define TT_MAC_LANGID_MONGOLIAN_MONGOLIAN_SCRIPT   57
367 #define TT_MAC_LANGID_MONGOLIAN_CYRILLIC_SCRIPT    58
368 #define TT_MAC_LANGID_PASHTO                       59
369 #define TT_MAC_LANGID_KURDISH                      60
370 #define TT_MAC_LANGID_KASHMIRI                     61
371 #define TT_MAC_LANGID_SINDHI                       62
372 #define TT_MAC_LANGID_TIBETAN                      63
373 #define TT_MAC_LANGID_NEPALI                       64
374 #define TT_MAC_LANGID_SANSKRIT                     65
375 #define TT_MAC_LANGID_MARATHI                      66
376 #define TT_MAC_LANGID_BENGALI                      67
377 #define TT_MAC_LANGID_ASSAMESE                     68
378 #define TT_MAC_LANGID_GUJARATI                     69
379 #define TT_MAC_LANGID_PUNJABI                      70
380 #define TT_MAC_LANGID_ORIYA                        71
381 #define TT_MAC_LANGID_MALAYALAM                    72
382 #define TT_MAC_LANGID_KANNADA                      73
383 #define TT_MAC_LANGID_TAMIL                        74
384 #define TT_MAC_LANGID_TELUGU                       75
385 #define TT_MAC_LANGID_SINHALESE                    76
386 #define TT_MAC_LANGID_BURMESE                      77
387 #define TT_MAC_LANGID_KHMER                        78
388 #define TT_MAC_LANGID_LAO                          79
389 #define TT_MAC_LANGID_VIETNAMESE                   80
390 #define TT_MAC_LANGID_INDONESIAN                   81
391 #define TT_MAC_LANGID_TAGALOG                      82
392 #define TT_MAC_LANGID_MALAY_ROMAN_SCRIPT           83
393 #define TT_MAC_LANGID_MALAY_ARABIC_SCRIPT          84
394 #define TT_MAC_LANGID_AMHARIC                      85
395 #define TT_MAC_LANGID_TIGRINYA                     86
396 #define TT_MAC_LANGID_GALLA                        87
397 #define TT_MAC_LANGID_SOMALI                       88
398 #define TT_MAC_LANGID_SWAHILI                      89
399 #define TT_MAC_LANGID_RUANDA                       90
400 #define TT_MAC_LANGID_RUNDI                        91
401 #define TT_MAC_LANGID_CHEWA                        92
402 #define TT_MAC_LANGID_MALAGASY                     93
403 #define TT_MAC_LANGID_ESPERANTO                    94
404 #define TT_MAC_LANGID_WELSH                       128
405 #define TT_MAC_LANGID_BASQUE                      129
406 #define TT_MAC_LANGID_CATALAN                     130
407 #define TT_MAC_LANGID_LATIN                       131
408 #define TT_MAC_LANGID_QUECHUA                     132
409 #define TT_MAC_LANGID_GUARANI                     133
410 #define TT_MAC_LANGID_AYMARA                      134
411 #define TT_MAC_LANGID_TATAR                       135
412 #define TT_MAC_LANGID_UIGHUR                      136
413 #define TT_MAC_LANGID_DZONGKHA                    137
414 #define TT_MAC_LANGID_JAVANESE                    138
415 #define TT_MAC_LANGID_SUNDANESE                   139
416
417
418 #if 0  /* these seem to be errors that have been dropped */
419
420 #define TT_MAC_LANGID_SCOTTISH_GAELIC             140
421 #define TT_MAC_LANGID_IRISH_GAELIC                141
422
423 #endif
424
425
426   /* The following codes are new as of 2000-03-10 */
427 #define TT_MAC_LANGID_GALICIAN                    140
428 #define TT_MAC_LANGID_AFRIKAANS                   141
429 #define TT_MAC_LANGID_BRETON                      142
430 #define TT_MAC_LANGID_INUKTITUT                   143
431 #define TT_MAC_LANGID_SCOTTISH_GAELIC             144
432 #define TT_MAC_LANGID_MANX_GAELIC                 145
433 #define TT_MAC_LANGID_IRISH_GAELIC                146
434 #define TT_MAC_LANGID_TONGAN                      147
435 #define TT_MAC_LANGID_GREEK_POLYTONIC             148
436 #define TT_MAC_LANGID_GREELANDIC                  149
437 #define TT_MAC_LANGID_AZERBAIJANI_ROMAN_SCRIPT    150
438
439
440   /*************************************************************************/
441   /*                                                                       */
442   /* Possible values of the language identifier field in the name records  */
443   /* of the TTF `name' table if the `platform' identifier code is          */
444   /* TT_PLATFORM_MICROSOFT.                                                */
445   /*                                                                       */
446   /* The canonical source for the MS assigned LCID's (seems to) be at      */
447   /*                                                                       */
448   /*   http://www.microsoft.com/globaldev/reference/lcid-all.mspx          */
449   /*                                                                       */
450   /* It used to be at various places, among them                           */
451   /*                                                                       */
452   /*   http://www.microsoft.com/typography/OTSPEC/lcid-cp.txt              */
453   /*   http://www.microsoft.com/globaldev/reference/loclanghome.asp        */
454   /*   http://support.microsoft.com/support/kb/articles/Q224/8/04.ASP      */
455   /*   http://msdn.microsoft.com/library/en-us/passport25/                 */
456   /*           NET_Passport_VBScript_Documentation/Single_Sign_In/         */
457   /*           Advanced_Single_Sign_In/Localization_and_LCIDs.asp          */
458   /*                                                                       */
459   /* Hopefully, it seems now that the Globaldev site prevails...           */
460   /*                                   (updated by Antoine, 2004-02-17)    */
461
462 #define TT_MS_LANGID_ARABIC_GENERAL                    0x0001
463 #define TT_MS_LANGID_ARABIC_SAUDI_ARABIA               0x0401
464 #define TT_MS_LANGID_ARABIC_IRAQ                       0x0801
465 #define TT_MS_LANGID_ARABIC_EGYPT                      0x0c01
466 #define TT_MS_LANGID_ARABIC_LIBYA                      0x1001
467 #define TT_MS_LANGID_ARABIC_ALGERIA                    0x1401
468 #define TT_MS_LANGID_ARABIC_MOROCCO                    0x1801
469 #define TT_MS_LANGID_ARABIC_TUNISIA                    0x1c01
470 #define TT_MS_LANGID_ARABIC_OMAN                       0x2001
471 #define TT_MS_LANGID_ARABIC_YEMEN                      0x2401
472 #define TT_MS_LANGID_ARABIC_SYRIA                      0x2801
473 #define TT_MS_LANGID_ARABIC_JORDAN                     0x2c01
474 #define TT_MS_LANGID_ARABIC_LEBANON                    0x3001
475 #define TT_MS_LANGID_ARABIC_KUWAIT                     0x3401
476 #define TT_MS_LANGID_ARABIC_UAE                        0x3801
477 #define TT_MS_LANGID_ARABIC_BAHRAIN                    0x3c01
478 #define TT_MS_LANGID_ARABIC_QATAR                      0x4001
479 #define TT_MS_LANGID_BULGARIAN_BULGARIA                0x0402
480 #define TT_MS_LANGID_CATALAN_SPAIN                     0x0403
481 #define TT_MS_LANGID_CHINESE_GENERAL                   0x0004
482 #define TT_MS_LANGID_CHINESE_TAIWAN                    0x0404
483 #define TT_MS_LANGID_CHINESE_PRC                       0x0804
484 #define TT_MS_LANGID_CHINESE_HONG_KONG                 0x0c04
485 #define TT_MS_LANGID_CHINESE_SINGAPORE                 0x1004
486
487 #if 1  /* this looks like the correct value */
488 #define TT_MS_LANGID_CHINESE_MACAU                     0x1404
489 #else  /* but beware, Microsoft may change its mind...
490           the most recent Word reference has the following: */
491 #define TT_MS_LANGID_CHINESE_MACAU  TT_MS_LANGID_CHINESE_HONG_KONG
492 #endif
493
494 #if 0  /* used only with .NET "cultures"; commented out */
495 #define TT_MS_LANGID_CHINESE_TRADITIONAL               0x7C04
496 #endif
497
498 #define TT_MS_LANGID_CZECH_CZECH_REPUBLIC              0x0405
499 #define TT_MS_LANGID_DANISH_DENMARK                    0x0406
500 #define TT_MS_LANGID_GERMAN_GERMANY                    0x0407
501 #define TT_MS_LANGID_GERMAN_SWITZERLAND                0x0807
502 #define TT_MS_LANGID_GERMAN_AUSTRIA                    0x0c07
503 #define TT_MS_LANGID_GERMAN_LUXEMBOURG                 0x1007
504 #define TT_MS_LANGID_GERMAN_LIECHTENSTEI               0x1407
505 #define TT_MS_LANGID_GREEK_GREECE                      0x0408
506
507   /* don't ask what this one means... It is commented out currently. */
508 #if 0
509 #define TT_MS_LANGID_GREEK_GREECE2                     0x2008
510 #endif
511
512 #define TT_MS_LANGID_ENGLISH_GENERAL                   0x0009
513 #define TT_MS_LANGID_ENGLISH_UNITED_STATES             0x0409
514 #define TT_MS_LANGID_ENGLISH_UNITED_KINGDOM            0x0809
515 #define TT_MS_LANGID_ENGLISH_AUSTRALIA                 0x0c09
516 #define TT_MS_LANGID_ENGLISH_CANADA                    0x1009
517 #define TT_MS_LANGID_ENGLISH_NEW_ZEALAND               0x1409
518 #define TT_MS_LANGID_ENGLISH_IRELAND                   0x1809
519 #define TT_MS_LANGID_ENGLISH_SOUTH_AFRICA              0x1c09
520 #define TT_MS_LANGID_ENGLISH_JAMAICA                   0x2009
521 #define TT_MS_LANGID_ENGLISH_CARIBBEAN                 0x2409
522 #define TT_MS_LANGID_ENGLISH_BELIZE                    0x2809
523 #define TT_MS_LANGID_ENGLISH_TRINIDAD                  0x2c09
524 #define TT_MS_LANGID_ENGLISH_ZIMBABWE                  0x3009
525 #define TT_MS_LANGID_ENGLISH_PHILIPPINES               0x3409
526 #define TT_MS_LANGID_ENGLISH_INDONESIA                 0x3809
527 #define TT_MS_LANGID_ENGLISH_HONG_KONG                 0x3c09
528 #define TT_MS_LANGID_ENGLISH_INDIA                     0x4009
529 #define TT_MS_LANGID_ENGLISH_MALAYSIA                  0x4409
530 #define TT_MS_LANGID_ENGLISH_SINGAPORE                 0x4809
531 #define TT_MS_LANGID_SPANISH_SPAIN_TRADITIONAL_SORT    0x040a
532 #define TT_MS_LANGID_SPANISH_MEXICO                    0x080a
533 #define TT_MS_LANGID_SPANISH_SPAIN_INTERNATIONAL_SORT  0x0c0a
534 #define TT_MS_LANGID_SPANISH_GUATEMALA                 0x100a
535 #define TT_MS_LANGID_SPANISH_COSTA_RICA                0x140a
536 #define TT_MS_LANGID_SPANISH_PANAMA                    0x180a
537 #define TT_MS_LANGID_SPANISH_DOMINICAN_REPUBLIC        0x1c0a
538 #define TT_MS_LANGID_SPANISH_VENEZUELA                 0x200a
539 #define TT_MS_LANGID_SPANISH_COLOMBIA                  0x240a
540 #define TT_MS_LANGID_SPANISH_PERU                      0x280a
541 #define TT_MS_LANGID_SPANISH_ARGENTINA                 0x2c0a
542 #define TT_MS_LANGID_SPANISH_ECUADOR                   0x300a
543 #define TT_MS_LANGID_SPANISH_CHILE                     0x340a
544 #define TT_MS_LANGID_SPANISH_URUGUAY                   0x380a
545 #define TT_MS_LANGID_SPANISH_PARAGUAY                  0x3c0a
546 #define TT_MS_LANGID_SPANISH_BOLIVIA                   0x400a
547 #define TT_MS_LANGID_SPANISH_EL_SALVADOR               0x440a
548 #define TT_MS_LANGID_SPANISH_HONDURAS                  0x480a
549 #define TT_MS_LANGID_SPANISH_NICARAGUA                 0x4c0a
550 #define TT_MS_LANGID_SPANISH_PUERTO_RICO               0x500a
551 #define TT_MS_LANGID_SPANISH_UNITED_STATES             0x540a
552   /* The following ID blatantly violate MS specs by using a */
553   /* sublanguage > 0x1F.                                    */
554 #define TT_MS_LANGID_SPANISH_LATIN_AMERICA             0xE40aU
555 #define TT_MS_LANGID_FINNISH_FINLAND                   0x040b
556 #define TT_MS_LANGID_FRENCH_FRANCE                     0x040c
557 #define TT_MS_LANGID_FRENCH_BELGIUM                    0x080c
558 #define TT_MS_LANGID_FRENCH_CANADA                     0x0c0c
559 #define TT_MS_LANGID_FRENCH_SWITZERLAND                0x100c
560 #define TT_MS_LANGID_FRENCH_LUXEMBOURG                 0x140c
561 #define TT_MS_LANGID_FRENCH_MONACO                     0x180c
562 #define TT_MS_LANGID_FRENCH_WEST_INDIES                0x1c0c
563 #define TT_MS_LANGID_FRENCH_REUNION                    0x200c
564 #define TT_MS_LANGID_FRENCH_CONGO                      0x240c
565   /* which was formerly: */
566 #define TT_MS_LANGID_FRENCH_ZAIRE  TT_MS_LANGID_FRENCH_CONGO
567 #define TT_MS_LANGID_FRENCH_SENEGAL                    0x280c
568 #define TT_MS_LANGID_FRENCH_CAMEROON                   0x2c0c
569 #define TT_MS_LANGID_FRENCH_COTE_D_IVOIRE              0x300c
570 #define TT_MS_LANGID_FRENCH_MALI                       0x340c
571 #define TT_MS_LANGID_FRENCH_MOROCCO                    0x380c
572 #define TT_MS_LANGID_FRENCH_HAITI                      0x3c0c
573   /* and another violation of the spec (see 0xE40aU) */
574 #define TT_MS_LANGID_FRENCH_NORTH_AFRICA               0xE40cU
575 #define TT_MS_LANGID_HEBREW_ISRAEL                     0x040d
576 #define TT_MS_LANGID_HUNGARIAN_HUNGARY                 0x040e
577 #define TT_MS_LANGID_ICELANDIC_ICELAND                 0x040f
578 #define TT_MS_LANGID_ITALIAN_ITALY                     0x0410
579 #define TT_MS_LANGID_ITALIAN_SWITZERLAND               0x0810
580 #define TT_MS_LANGID_JAPANESE_JAPAN                    0x0411
581 #define TT_MS_LANGID_KOREAN_EXTENDED_WANSUNG_KOREA     0x0412
582 #define TT_MS_LANGID_KOREAN_JOHAB_KOREA                0x0812
583 #define TT_MS_LANGID_DUTCH_NETHERLANDS                 0x0413
584 #define TT_MS_LANGID_DUTCH_BELGIUM                     0x0813
585 #define TT_MS_LANGID_NORWEGIAN_NORWAY_BOKMAL           0x0414
586 #define TT_MS_LANGID_NORWEGIAN_NORWAY_NYNORSK          0x0814
587 #define TT_MS_LANGID_POLISH_POLAND                     0x0415
588 #define TT_MS_LANGID_PORTUGUESE_BRAZIL                 0x0416
589 #define TT_MS_LANGID_PORTUGUESE_PORTUGAL               0x0816
590 #define TT_MS_LANGID_RHAETO_ROMANIC_SWITZERLAND        0x0417
591 #define TT_MS_LANGID_ROMANIAN_ROMANIA                  0x0418
592 #define TT_MS_LANGID_MOLDAVIAN_MOLDAVIA                0x0818
593 #define TT_MS_LANGID_RUSSIAN_RUSSIA                    0x0419
594 #define TT_MS_LANGID_RUSSIAN_MOLDAVIA                  0x0819
595 #define TT_MS_LANGID_CROATIAN_CROATIA                  0x041a
596 #define TT_MS_LANGID_SERBIAN_SERBIA_LATIN              0x081a
597 #define TT_MS_LANGID_SERBIAN_SERBIA_CYRILLIC           0x0c1a
598
599 #if 0  /* this used to be this value, but it looks like we were wrong */
600 #define TT_MS_LANGID_BOSNIAN_BOSNIA_HERZEGOVINA        0x101a
601 #else  /* current sources say */
602 #define TT_MS_LANGID_CROATIAN_BOSNIA_HERZEGOVINA       0x101a
603 #define TT_MS_LANGID_BOSNIAN_BOSNIA_HERZEGOVINA        0x141a
604        /* and XPsp2 Platform SDK added (2004-07-26) */
605        /* Names are shortened to be signifiant within 40 chars. */
606 #define TT_MS_LANGID_SERBIAN_BOSNIA_HERZ_LATIN         0x181a
607 #define TT_MS_LANGID_SERBIAN_BOSNIA_HERZ_CYRILLIC      0x181a
608 #endif
609
610 #define TT_MS_LANGID_SLOVAK_SLOVAKIA                   0x041b
611 #define TT_MS_LANGID_ALBANIAN_ALBANIA                  0x041c
612 #define TT_MS_LANGID_SWEDISH_SWEDEN                    0x041d
613 #define TT_MS_LANGID_SWEDISH_FINLAND                   0x081d
614 #define TT_MS_LANGID_THAI_THAILAND                     0x041e
615 #define TT_MS_LANGID_TURKISH_TURKEY                    0x041f
616 #define TT_MS_LANGID_URDU_PAKISTAN                     0x0420
617 #define TT_MS_LANGID_URDU_INDIA                        0x0820
618 #define TT_MS_LANGID_INDONESIAN_INDONESIA              0x0421
619 #define TT_MS_LANGID_UKRAINIAN_UKRAINE                 0x0422
620 #define TT_MS_LANGID_BELARUSIAN_BELARUS                0x0423
621 #define TT_MS_LANGID_SLOVENE_SLOVENIA                  0x0424
622 #define TT_MS_LANGID_ESTONIAN_ESTONIA                  0x0425
623 #define TT_MS_LANGID_LATVIAN_LATVIA                    0x0426
624 #define TT_MS_LANGID_LITHUANIAN_LITHUANIA              0x0427
625 #define TT_MS_LANGID_CLASSIC_LITHUANIAN_LITHUANIA      0x0827
626 #define TT_MS_LANGID_TAJIK_TAJIKISTAN                  0x0428
627 #define TT_MS_LANGID_FARSI_IRAN                        0x0429
628 #define TT_MS_LANGID_VIETNAMESE_VIET_NAM               0x042a
629 #define TT_MS_LANGID_ARMENIAN_ARMENIA                  0x042b
630 #define TT_MS_LANGID_AZERI_AZERBAIJAN_LATIN            0x042c
631 #define TT_MS_LANGID_AZERI_AZERBAIJAN_CYRILLIC         0x082c
632 #define TT_MS_LANGID_BASQUE_SPAIN                      0x042d
633 #define TT_MS_LANGID_SORBIAN_GERMANY                   0x042e
634 #define TT_MS_LANGID_MACEDONIAN_MACEDONIA              0x042f
635 #define TT_MS_LANGID_SUTU_SOUTH_AFRICA                 0x0430
636 #define TT_MS_LANGID_TSONGA_SOUTH_AFRICA               0x0431
637 #define TT_MS_LANGID_TSWANA_SOUTH_AFRICA               0x0432
638 #define TT_MS_LANGID_VENDA_SOUTH_AFRICA                0x0433
639 #define TT_MS_LANGID_XHOSA_SOUTH_AFRICA                0x0434
640 #define TT_MS_LANGID_ZULU_SOUTH_AFRICA                 0x0435
641 #define TT_MS_LANGID_AFRIKAANS_SOUTH_AFRICA            0x0436
642 #define TT_MS_LANGID_GEORGIAN_GEORGIA                  0x0437
643 #define TT_MS_LANGID_FAEROESE_FAEROE_ISLANDS           0x0438
644 #define TT_MS_LANGID_HINDI_INDIA                       0x0439
645 #define TT_MS_LANGID_MALTESE_MALTA                     0x043a
646   /* Added by XPsp2 Platform SDK (2004-07-26) */
647 #define TT_MS_LANGID_SAMI_NORTHERN_NORWAY              0x043b
648 #define TT_MS_LANGID_SAMI_NORTHERN_SWEDEN              0x083b
649 #define TT_MS_LANGID_SAMI_NORTHERN_FINLAND             0x0C3b
650 #define TT_MS_LANGID_SAMI_LULE_NORWAY                  0x103b
651 #define TT_MS_LANGID_SAMI_LULE_SWEDEN                  0x143b
652 #define TT_MS_LANGID_SAMI_SOUTHERN_NORWAY              0x183b
653 #define TT_MS_LANGID_SAMI_SOUTHERN_SWEDEN              0x1C3b
654 #define TT_MS_LANGID_SAMI_SKOLT_FINLAND                0x203b
655 #define TT_MS_LANGID_SAMI_INARI_FINLAND                0x243b
656   /* ... and we also keep our old identifier... */
657 #define TT_MS_LANGID_SAAMI_LAPONIA                     0x043b
658
659 #if 0 /* this seems to be a previous invertion */
660 #define TT_MS_LANGID_IRISH_GAELIC_IRELAND              0x043c
661 #define TT_MS_LANGID_SCOTTISH_GAELIC_UNITED_KINGDOM    0x083c
662 #else
663 #define TT_MS_LANGID_SCOTTISH_GAELIC_UNITED_KINGDOM    0x083c
664 #define TT_MS_LANGID_IRISH_GAELIC_IRELAND              0x043c
665 #endif
666
667 #define TT_MS_LANGID_YIDDISH_GERMANY                   0x043d
668 #define TT_MS_LANGID_MALAY_MALAYSIA                    0x043e
669 #define TT_MS_LANGID_MALAY_BRUNEI_DARUSSALAM           0x083e
670 #define TT_MS_LANGID_KAZAK_KAZAKSTAN                   0x043f
671 #define TT_MS_LANGID_KIRGHIZ_KIRGHIZSTAN /* Cyrillic*/ 0x0440
672   /* alias declared in Windows 2000 */
673 #define TT_MS_LANGID_KIRGHIZ_KIRGHIZ_REPUBLIC \
674           TT_MS_LANGID_KIRGHIZ_KIRGHIZSTAN
675
676 #define TT_MS_LANGID_SWAHILI_KENYA                     0x0441
677 #define TT_MS_LANGID_TURKMEN_TURKMENISTAN              0x0442
678 #define TT_MS_LANGID_UZBEK_UZBEKISTAN_LATIN            0x0443
679 #define TT_MS_LANGID_UZBEK_UZBEKISTAN_CYRILLIC         0x0843
680 #define TT_MS_LANGID_TATAR_TATARSTAN                   0x0444
681 #define TT_MS_LANGID_BENGALI_INDIA                     0x0445
682 #define TT_MS_LANGID_BENGALI_BANGLADESH                0x0845
683 #define TT_MS_LANGID_PUNJABI_INDIA                     0x0446
684 #define TT_MS_LANGID_PUNJABI_ARABIC_PAKISTAN           0x0846
685 #define TT_MS_LANGID_GUJARATI_INDIA                    0x0447
686 #define TT_MS_LANGID_ORIYA_INDIA                       0x0448
687 #define TT_MS_LANGID_TAMIL_INDIA                       0x0449
688 #define TT_MS_LANGID_TELUGU_INDIA                      0x044a
689 #define TT_MS_LANGID_KANNADA_INDIA                     0x044b
690 #define TT_MS_LANGID_MALAYALAM_INDIA                   0x044c
691 #define TT_MS_LANGID_ASSAMESE_INDIA                    0x044d
692 #define TT_MS_LANGID_MARATHI_INDIA                     0x044e
693 #define TT_MS_LANGID_SANSKRIT_INDIA                    0x044f
694 #define TT_MS_LANGID_MONGOLIAN_MONGOLIA /* Cyrillic */ 0x0450
695 #define TT_MS_LANGID_MONGOLIAN_MONGOLIA_MONGOLIAN      0x0850
696 #define TT_MS_LANGID_TIBETAN_CHINA                     0x0451
697 #define TT_MS_LANGID_DZONGHKA_BHUTAN                   0x0851
698
699 #if 0
700   /* the following used to be defined */
701 #define TT_MS_LANGID_TIBETAN_BHUTAN                    0x0451
702   /* ... but it was changed; */
703 #else
704   /* So we will continue to #define it, but with the correct value */
705 #define TT_MS_LANGID_TIBETAN_BHUTAN   TT_MS_LANGID_DZONGHKA_BHUTAN
706 #endif
707
708 #define TT_MS_LANGID_WELSH_WALES                       0x0452
709 #define TT_MS_LANGID_KHMER_CAMBODIA                    0x0453
710 #define TT_MS_LANGID_LAO_LAOS                          0x0454
711 #define TT_MS_LANGID_BURMESE_MYANMAR                   0x0455
712 #define TT_MS_LANGID_GALICIAN_SPAIN                    0x0456
713 #define TT_MS_LANGID_KONKANI_INDIA                     0x0457
714 #define TT_MS_LANGID_MANIPURI_INDIA  /* Bengali */     0x0458
715 #define TT_MS_LANGID_SINDHI_INDIA /* Arabic */         0x0459
716 #define TT_MS_LANGID_SINDHI_PAKISTAN                   0x0859
717   /* Missing a LCID for Sindhi in Devanagari script */
718 #define TT_MS_LANGID_SYRIAC_SYRIA                      0x045a
719 #define TT_MS_LANGID_SINHALESE_SRI_LANKA               0x045b
720 #define TT_MS_LANGID_CHEROKEE_UNITED_STATES            0x045c
721 #define TT_MS_LANGID_INUKTITUT_CANADA                  0x045d
722 #define TT_MS_LANGID_AMHARIC_ETHIOPIA                  0x045e
723 #define TT_MS_LANGID_TAMAZIGHT_MOROCCO /* Arabic */    0x045f
724 #define TT_MS_LANGID_TAMAZIGHT_MOROCCO_LATIN           0x085f
725   /* Missing a LCID for Tifinagh script */
726 #define TT_MS_LANGID_KASHMIRI_PAKISTAN /* Arabic */    0x0460
727   /* Spelled this way by XPsp2 Platform SDK (2004-07-26) */
728   /* script is yet unclear... might be Arabic, Nagari or Sharada */
729 #define TT_MS_LANGID_KASHMIRI_SASIA                    0x0860
730   /* ... and aliased (by MS) for compatibility reasons. */
731 #define TT_MS_LANGID_KASHMIRI_INDIA TT_MS_LANGID_KASHMIRI_SASIA
732 #define TT_MS_LANGID_NEPALI_NEPAL                      0x0461
733 #define TT_MS_LANGID_NEPALI_INDIA                      0x0861
734 #define TT_MS_LANGID_FRISIAN_NETHERLANDS               0x0462
735 #define TT_MS_LANGID_PASHTO_AFGHANISTAN                0x0463
736 #define TT_MS_LANGID_FILIPINO_PHILIPPINES              0x0464
737 #define TT_MS_LANGID_DHIVEHI_MALDIVES                  0x0465
738   /* alias declared in Windows 2000 */
739 #define TT_MS_LANGID_DIVEHI_MALDIVES  TT_MS_LANGID_DHIVEHI_MALDIVES
740 #define TT_MS_LANGID_EDO_NIGERIA                       0x0466
741 #define TT_MS_LANGID_FULFULDE_NIGERIA                  0x0467
742 #define TT_MS_LANGID_HAUSA_NIGERIA                     0x0468
743 #define TT_MS_LANGID_IBIBIO_NIGERIA                    0x0469
744 #define TT_MS_LANGID_YORUBA_NIGERIA                    0x046a
745 #define TT_MS_LANGID_QUECHUA_BOLIVIA                   0x046b
746 #define TT_MS_LANGID_QUECHUA_ECUADOR                   0x086b
747 #define TT_MS_LANGID_QUECHUA_PERU                      0x0c6b
748 #define TT_MS_LANGID_SEPEDI_SOUTH_AFRICA               0x046c
749   /* Also spelled by XPsp2 Platform SDK (2004-07-26) */
750 #define TT_MS_LANGID_SOTHO_SOUTHERN_SOUTH_AFRICA \
751           TT_MS_LANGID_SEPEDI_SOUTH_AFRICA
752   /* language codes 0x046d, 0x046e and 0x046f are (still) unknown. */
753 #define TT_MS_LANGID_IGBO_NIGERIA                      0x0470
754 #define TT_MS_LANGID_KANURI_NIGERIA                    0x0471
755 #define TT_MS_LANGID_OROMO_ETHIOPIA                    0x0472
756 #define TT_MS_LANGID_TIGRIGNA_ETHIOPIA                 0x0473
757 #define TT_MS_LANGID_TIGRIGNA_ERYTHREA                 0x0873
758   /* also spelled in the `Passport SDK' list as: */
759 #define TT_MS_LANGID_TIGRIGNA_ERYTREA  TT_MS_LANGID_TIGRIGNA_ERYTHREA
760 #define TT_MS_LANGID_GUARANI_PARAGUAY                  0x0474
761 #define TT_MS_LANGID_HAWAIIAN_UNITED_STATES            0x0475
762 #define TT_MS_LANGID_LATIN                             0x0476
763 #define TT_MS_LANGID_SOMALI_SOMALIA                    0x0477
764   /* Note: Yi does not have a (proper) ISO 639-2 code, since it is mostly */
765   /*       not written (but OTOH the peculiar writing system is worth     */
766   /*       studying).                                                     */
767 #define TT_MS_LANGID_YI_CHINA                          0x0478
768 #define TT_MS_LANGID_PAPIAMENTU_NETHERLANDS_ANTILLES   0x0479
769   /* language codes from 0x047a to 0x047f are (still) unknown. */
770 #define TT_MS_LANGID_UIGHUR_CHINA                      0x0480
771 #define TT_MS_LANGID_MAORI_NEW_ZEALAND                 0x0481
772
773 #if 0  /* not deemed useful for fonts */
774 #define TT_MS_LANGID_HUMAN_INTERFACE_DEVICE            0x04ff
775 #endif
776
777
778   /*************************************************************************/
779   /*                                                                       */
780   /* Possible values of the `name' identifier field in the name records of */
781   /* the TTF `name' table.  These values are platform independent.         */
782   /*                                                                       */
783 #define TT_NAME_ID_COPYRIGHT            0
784 #define TT_NAME_ID_FONT_FAMILY          1
785 #define TT_NAME_ID_FONT_SUBFAMILY       2
786 #define TT_NAME_ID_UNIQUE_ID            3
787 #define TT_NAME_ID_FULL_NAME            4
788 #define TT_NAME_ID_VERSION_STRING       5
789 #define TT_NAME_ID_PS_NAME              6
790 #define TT_NAME_ID_TRADEMARK            7
791
792   /* the following values are from the OpenType spec */
793 #define TT_NAME_ID_MANUFACTURER         8
794 #define TT_NAME_ID_DESIGNER             9
795 #define TT_NAME_ID_DESCRIPTION          10
796 #define TT_NAME_ID_VENDOR_URL           11
797 #define TT_NAME_ID_DESIGNER_URL         12
798 #define TT_NAME_ID_LICENSE              13
799 #define TT_NAME_ID_LICENSE_URL          14
800   /* number 15 is reserved */
801 #define TT_NAME_ID_PREFERRED_FAMILY     16
802 #define TT_NAME_ID_PREFERRED_SUBFAMILY  17
803 #define TT_NAME_ID_MAC_FULL_NAME        18
804
805   /* The following code is new as of 2000-01-21 */
806 #define TT_NAME_ID_SAMPLE_TEXT          19
807
808   /* This is new in OpenType 1.3 */
809 #define TT_NAME_ID_CID_FINDFONT_NAME    20
810
811
812   /*************************************************************************/
813   /*                                                                       */
814   /* Bit mask values for the Unicode Ranges from the TTF `OS2 ' table.     */
815   /*                                                                       */
816   /* Updated 02-Jul-2000.                                                  */
817   /*                                                                       */
818
819   /* General Scripts Area */
820
821   /* Bit  0   Basic Latin */
822 #define TT_UCR_BASIC_LATIN                     (1L <<  0) /* U+0020-U+007E */
823   /* Bit  1   C1 Controls and Latin-1 Supplement */
824 #define TT_UCR_LATIN1_SUPPLEMENT               (1L <<  1) /* U+0080-U+00FF */
825   /* Bit  2   Latin Extended-A */
826 #define TT_UCR_LATIN_EXTENDED_A                (1L <<  2) /* U+0100-U+017F */
827   /* Bit  3   Latin Extended-B */
828 #define TT_UCR_LATIN_EXTENDED_B                (1L <<  3) /* U+0180-U+024F */
829   /* Bit  4   IPA Extensions */
830 #define TT_UCR_IPA_EXTENSIONS                  (1L <<  4) /* U+0250-U+02AF */
831   /* Bit  5   Spacing Modifier Letters */
832 #define TT_UCR_SPACING_MODIFIER                (1L <<  5) /* U+02B0-U+02FF */
833   /* Bit  6   Combining Diacritical Marks */
834 #define TT_UCR_COMBINING_DIACRITICS            (1L <<  6) /* U+0300-U+036F */
835   /* Bit  7   Greek and Coptic */
836 #define TT_UCR_GREEK                           (1L <<  7) /* U+0370-U+03FF */
837   /* Bit  8 is reserved (was: Greek Symbols and Coptic) */
838   /* Bit  9   Cyrillic               + */
839   /*          Cyrillic Supplementary   */
840 #define TT_UCR_CYRILLIC                        (1L <<  9) /* U+0400-U+04FF */
841                                                           /* U+0500-U+052F */
842   /* Bit 10   Armenian */
843 #define TT_UCR_ARMENIAN                        (1L << 10) /* U+0530-U+058F */
844   /* Bit 11   Hebrew */
845 #define TT_UCR_HEBREW                          (1L << 11) /* U+0590-U+05FF */
846   /* Bit 12 is reserved (was: Hebrew Extended) */
847   /* Bit 13   Arabic */
848 #define TT_UCR_ARABIC                          (1L << 13) /* U+0600-U+06FF */
849   /* Bit 14 is reserved (was: Arabic Extended) */
850   /* Bit 15   Devanagari */
851 #define TT_UCR_DEVANAGARI                      (1L << 15) /* U+0900-U+097F */
852   /* Bit 16   Bengali */
853 #define TT_UCR_BENGALI                         (1L << 16) /* U+0980-U+09FF */
854   /* Bit 17   Gurmukhi */
855 #define TT_UCR_GURMUKHI                        (1L << 17) /* U+0A00-U+0A7F */
856   /* Bit 18   Gujarati */
857 #define TT_UCR_GUJARATI                        (1L << 18) /* U+0A80-U+0AFF */
858   /* Bit 19   Oriya */
859 #define TT_UCR_ORIYA                           (1L << 19) /* U+0B00-U+0B7F */
860   /* Bit 20   Tamil */
861 #define TT_UCR_TAMIL                           (1L << 20) /* U+0B80-U+0BFF */
862   /* Bit 21   Telugu */
863 #define TT_UCR_TELUGU                          (1L << 21) /* U+0C00-U+0C7F */
864   /* Bit 22   Kannada */
865 #define TT_UCR_KANNADA                         (1L << 22) /* U+0C80-U+0CFF */
866   /* Bit 23   Malayalam */
867 #define TT_UCR_MALAYALAM                       (1L << 23) /* U+0D00-U+0D7F */
868   /* Bit 24   Thai */
869 #define TT_UCR_THAI                            (1L << 24) /* U+0E00-U+0E7F */
870   /* Bit 25   Lao */
871 #define TT_UCR_LAO                             (1L << 25) /* U+0E80-U+0EFF */
872   /* Bit 26   Georgian */
873 #define TT_UCR_GEORGIAN                        (1L << 26) /* U+10A0-U+10FF */
874   /* Bit 27 is reserved (was Georgian Extended) */
875   /* Bit 28   Hangul Jamo */
876 #define TT_UCR_HANGUL_JAMO                     (1L << 28) /* U+1100-U+11FF */
877   /* Bit 29   Latin Extended Additional */
878 #define TT_UCR_LATIN_EXTENDED_ADDITIONAL       (1L << 29) /* U+1E00-U+1EFF */
879   /* Bit 30   Greek Extended */
880 #define TT_UCR_GREEK_EXTENDED                  (1L << 30) /* U+1F00-U+1FFF */
881
882   /* Symbols Area */
883
884   /* Bit 31   General Punctuation */
885 #define TT_UCR_GENERAL_PUNCTUATION             (1L << 31) /* U+2000-U+206F */
886   /* Bit 32   Superscripts And Subscripts */
887 #define TT_UCR_SUPERSCRIPTS_SUBSCRIPTS         (1L <<  0) /* U+2070-U+209F */
888   /* Bit 33   Currency Symbols */
889 #define TT_UCR_CURRENCY_SYMBOLS                (1L <<  1) /* U+20A0-U+20CF */
890   /* Bit 34   Combining Diacritical Marks For Symbols */
891 #define TT_UCR_COMBINING_DIACRITICS_SYMB       (1L <<  2) /* U+20D0-U+20FF */
892   /* Bit 35   Letterlike Symbols */
893 #define TT_UCR_LETTERLIKE_SYMBOLS              (1L <<  3) /* U+2100-U+214F */
894   /* Bit 36   Number Forms */
895 #define TT_UCR_NUMBER_FORMS                    (1L <<  4) /* U+2150-U+218F */
896   /* Bit 37   Arrows                + */
897   /*          Supplemental Arrows-A + */
898   /*          Supplemental Arrows-B   */
899 #define TT_UCR_ARROWS                          (1L <<  5) /* U+2190-U+21FF */
900                                                           /* U+27F0-U+27FF */
901                                                           /* U+2900-U+297F */
902   /* Bit 38   Mathematical Operators               + */
903   /*          Supplemental Mathematical Operators  + */
904   /*          Miscellaneous Mathematical Symbols-A + */
905   /*          Miscellaneous Mathematical Symbols-B   */
906 #define TT_UCR_MATHEMATICAL_OPERATORS          (1L <<  6) /* U+2200-U+22FF */
907                                                           /* U+2A00-U+2AFF */
908                                                           /* U+27C0-U+27EF */
909                                                           /* U+2980-U+29FF */
910   /* Bit 39 Miscellaneous Technical */
911 #define TT_UCR_MISCELLANEOUS_TECHNICAL         (1L <<  7) /* U+2300-U+23FF */
912   /* Bit 40   Control Pictures */
913 #define TT_UCR_CONTROL_PICTURES                (1L <<  8) /* U+2400-U+243F */
914   /* Bit 41   Optical Character Recognition */
915 #define TT_UCR_OCR                             (1L <<  9) /* U+2440-U+245F */
916   /* Bit 42   Enclosed Alphanumerics */
917 #define TT_UCR_ENCLOSED_ALPHANUMERICS          (1L << 10) /* U+2460-U+24FF */
918   /* Bit 43   Box Drawing */
919 #define TT_UCR_BOX_DRAWING                     (1L << 11) /* U+2500-U+257F */
920   /* Bit 44   Block Elements */
921 #define TT_UCR_BLOCK_ELEMENTS                  (1L << 12) /* U+2580-U+259F */
922   /* Bit 45   Geometric Shapes */
923 #define TT_UCR_GEOMETRIC_SHAPES                (1L << 13) /* U+25A0-U+25FF */
924   /* Bit 46   Miscellaneous Symbols */
925 #define TT_UCR_MISCELLANEOUS_SYMBOLS           (1L << 14) /* U+2600-U+26FF */
926   /* Bit 47   Dingbats */
927 #define TT_UCR_DINGBATS                        (1L << 15) /* U+2700-U+27BF */
928
929   /* CJK Phonetics and Symbols Area */
930
931   /* Bit 48   CJK Symbols and Punctuation */
932 #define TT_UCR_CJK_SYMBOLS                     (1L << 16) /* U+3000-U+303F */
933   /* Bit 49   Hiragana */
934 #define TT_UCR_HIRAGANA                        (1L << 17) /* U+3040-U+309F */
935   /* Bit 50   Katakana                     + */
936   /*          Katakana Phonetic Extensions   */
937 #define TT_UCR_KATAKANA                        (1L << 18) /* U+30A0-U+30FF */
938                                                           /* U+31F0-U+31FF */
939   /* Bit 51   Bopomofo          + */
940   /*          Bopomofo Extended   */
941 #define TT_UCR_BOPOMOFO                        (1L << 19) /* U+3100-U+312F */
942                                                           /* U+31A0-U+31BF */
943   /* Bit 52   Hangul Compatibility Jamo */
944 #define TT_UCR_HANGUL_COMPATIBILITY_JAMO       (1L << 20) /* U+3130-U+318F */
945   /* Bit 53   Kanbun */
946 #define TT_UCR_CJK_MISC                        (1L << 21) /* U+3190-U+319F */
947 #define TT_UCR_KANBUN  TT_UCR_CJK_MISC
948   /* Bit 54   Enclosed CJK Letters and Months */
949 #define TT_UCR_ENCLOSED_CJK_LETTERS_MONTHS     (1L << 22) /* U+3200-U+32FF */
950   /* Bit 55   CJK Compatibility */
951 #define TT_UCR_CJK_COMPATIBILITY               (1L << 23) /* U+3300-U+33FF */
952
953   /* Hangul Syllables Area */
954
955   /* Bit 56   Hangul */
956 #define TT_UCR_HANGUL                          (1L << 24) /* U+AC00-U+D7A3 */
957
958   /* Surrogates Area */
959
960   /* Bit 57   High Surrogates             + */
961   /*          High Private Use Surrogates + */
962   /*          Low Surrogates                */
963 #define TT_UCR_SURROGATES                      (1L << 25) /* U+D800-U+DB7F */
964                                                           /* U+DB80-U+DBFF */
965                                                           /* U+DC00-U+DFFF */
966   /* According to OpenType specs v.1.3+, setting bit 57 implies that there */
967   /* is at least one codepoint beyond the Basic Multilingual Plane that is */
968   /* supported by this font.  So it really means:            >= U+10000    */
969
970   /* Bit 58 is reserved for Unicode SubRanges */
971
972   /* CJK Ideographs Area */
973
974   /* Bit 59   CJK Unified Ideographs             + */
975   /*          CJK Radicals Supplement            + */
976   /*          Kangxi Radicals                    + */
977   /*          Ideographic Description Characters + */
978   /*          CJK Unified Ideographs Extension A   */
979   /*          CJK Unified Ideographs Extension A + */
980   /*          CJK Unified Ideographs Extension B + */
981   /*          Kanbun                               */
982 #define TT_UCR_CJK_UNIFIED_IDEOGRAPHS          (1L << 27) /* U+4E00-U+9FFF */
983                                                           /* U+2E80-U+2EFF */
984                                                           /* U+2F00-U+2FDF */
985                                                           /* U+2FF0-U+2FFF */
986                                                           /* U+3400-U+4DB5 */
987                                                           /*U+20000-U+2A6DF*/
988                                                           /* U+3190-U+319F */
989
990   /* Private Use Area */
991
992   /* Bit 60   Private Use */
993 #define TT_UCR_PRIVATE_USE                     (1L << 28) /* U+E000-U+F8FF */
994
995   /* Compatibility Area and Specials */
996
997   /* Bit 61   CJK Compatibility Ideographs            + */
998   /*          CJK Compatibility Ideographs Supplement   */
999 #define TT_UCR_CJK_COMPATIBILITY_IDEOGRAPHS    (1L << 29) /* U+F900-U+FAFF */
1000                                                           /*U+2F800-U+2FA1F*/
1001   /* Bit 62   Alphabetic Presentation Forms */
1002 #define TT_UCR_ALPHABETIC_PRESENTATION_FORMS   (1L << 30) /* U+FB00-U+FB4F */
1003   /* Bit 63   Arabic Presentation Forms-A */
1004 #define TT_UCR_ARABIC_PRESENTATIONS_A          (1L << 31) /* U+FB50-U+FDFF */
1005   /* Bit 64   Combining Half Marks */
1006 #define TT_UCR_COMBINING_HALF_MARKS            (1L <<  0) /* U+FE20-U+FE2F */
1007   /* Bit 65   CJK Compatibility Forms */
1008 #define TT_UCR_CJK_COMPATIBILITY_FORMS         (1L <<  1) /* U+FE30-U+FE4F */
1009   /* Bit 66   Small Form Variants */
1010 #define TT_UCR_SMALL_FORM_VARIANTS             (1L <<  2) /* U+FE50-U+FE6F */
1011   /* Bit 67   Arabic Presentation Forms-B */
1012 #define TT_UCR_ARABIC_PRESENTATIONS_B          (1L <<  3) /* U+FE70-U+FEFE */
1013   /* Bit 68   Halfwidth and Fullwidth Forms */
1014 #define TT_UCR_HALFWIDTH_FULLWIDTH_FORMS       (1L <<  4) /* U+FF00-U+FFEF */
1015   /* Bit 69   Specials */
1016 #define TT_UCR_SPECIALS                        (1L <<  5) /* U+FFF0-U+FFFD */
1017   /* Bit 70   Tibetan */
1018 #define TT_UCR_TIBETAN                         (1L <<  6) /* U+0F00-U+0FFF */
1019   /* Bit 71   Syriac */
1020 #define TT_UCR_SYRIAC                          (1L <<  7) /* U+0700-U+074F */
1021   /* Bit 72   Thaana */
1022 #define TT_UCR_THAANA                          (1L <<  8) /* U+0780-U+07BF */
1023   /* Bit 73   Sinhala */
1024 #define TT_UCR_SINHALA                         (1L <<  9) /* U+0D80-U+0DFF */
1025   /* Bit 74   Myanmar */
1026 #define TT_UCR_MYANMAR                         (1L << 10) /* U+1000-U+109F */
1027   /* Bit 75   Ethiopic */
1028 #define TT_UCR_ETHIOPIC                        (1L << 11) /* U+1200-U+137F */
1029   /* Bit 76   Cherokee */
1030 #define TT_UCR_CHEROKEE                        (1L << 12) /* U+13A0-U+13FF */
1031   /* Bit 77   Unified Canadian Aboriginal Syllabics */
1032 #define TT_UCR_CANADIAN_ABORIGINAL_SYLLABICS   (1L << 13) /* U+1400-U+167F */
1033   /* Bit 78   Ogham */
1034 #define TT_UCR_OGHAM                           (1L << 14) /* U+1680-U+169F */
1035   /* Bit 79   Runic */
1036 #define TT_UCR_RUNIC                           (1L << 15) /* U+16A0-U+16FF */
1037   /* Bit 80   Khmer */
1038 #define TT_UCR_KHMER                           (1L << 16) /* U+1780-U+17FF */
1039   /* Bit 81   Mongolian */
1040 #define TT_UCR_MONGOLIAN                       (1L << 17) /* U+1800-U+18AF */
1041   /* Bit 82   Braille Patterns */
1042 #define TT_UCR_BRAILLE                         (1L << 18) /* U+2800-U+28FF */
1043   /* Bit 83   Yi Syllables + */
1044   /*          Yi Radicals    */
1045 #define TT_UCR_YI                              (1L << 19) /* U+A000-U+A48F */
1046                                                           /* U+A490-U+A4CF */
1047   /* Bit 84   Tagalog  + */
1048   /*          Hanunoo  + */
1049   /*          Buhid    + */
1050   /*          Tagbanwa   */
1051 #define TT_UCR_PHILIPPINE                      (1L << 20) /* U+1700-U+171F */
1052                                                           /* U+1720-U+173F */
1053                                                           /* U+1740-U+175F */
1054                                                           /* U+1760-U+177F */
1055   /* Bit 85   Old Italic */
1056 #define TT_UCR_OLD_ITALIC                      (1L << 21) /*U+10300-U+1032F*/
1057   /* Bit 86   Gothic */
1058 #define TT_UCR_GOTHIC                          (1L << 22) /*U+10330-U+1034F*/
1059   /* Bit 87   Deseret */
1060 #define TT_UCR_DESERET                         (1L << 23) /*U+10400-U+1044F*/
1061   /* Bit 88   Byzantine Musical Symbols + */
1062   /*          Musical Symbols             */
1063 #define TT_UCR_MUSICAL_SYMBOLS                 (1L << 24) /*U+1D000-U+1D0FF*/
1064                                                           /*U+1D100-U+1D1FF*/
1065   /* Bit 89   Mathematical Alphanumeric Symbols */
1066 #define TT_UCR_MATH_ALPHANUMERIC_SYMBOLS       (1L << 25) /*U+1D400-U+1D7FF*/
1067   /* Bit 90   Private Use (plane 15) + */
1068   /*          Private Use (plane 16)   */
1069 #define TT_UCR_PRIVATE_USE_SUPPLEMENTARY       (1L << 26) /*U+F0000-U+FFFFD*/
1070                                                         /*U+100000-U+10FFFD*/
1071   /* Bit 91   Variation Selectors */
1072 #define TT_UCR_VARIATION_SELECTORS             (1L << 27) /* U+FE00-U+FE0F */
1073   /* Bit 92   Tags */
1074 #define TT_UCR_TAGS                            (1L << 28) /*U+E0000-U+E007F*/
1075
1076
1077   /*************************************************************************/
1078   /*                                                                       */
1079   /* Some compilers have a very limited length of identifiers.             */
1080   /*                                                                       */
1081 #if defined( __TURBOC__ ) && __TURBOC__ < 0x0410 || defined( __PACIFIC__ )
1082 #define HAVE_LIMIT_ON_IDENTS
1083 #endif
1084
1085
1086 #ifndef HAVE_LIMIT_ON_IDENTS
1087
1088
1089   /*************************************************************************/
1090   /*                                                                       */
1091   /* Here some alias #defines in order to be clearer.                      */
1092   /*                                                                       */
1093   /* These are not always #defined to stay within the 31 character limit   */
1094   /* which some compilers have.                                            */
1095   /*                                                                       */
1096   /* Credits go to Dave Hoo <dhoo@flash.net> for pointing out that modern  */
1097   /* Borland compilers (read: from BC++ 3.1 on) can increase this limit.   */
1098   /* If you get a warning with such a compiler, use the -i40 switch.       */
1099   /*                                                                       */
1100 #define TT_UCR_ARABIC_PRESENTATION_FORMS_A      \
1101          TT_UCR_ARABIC_PRESENTATIONS_A
1102 #define TT_UCR_ARABIC_PRESENTATION_FORMS_B      \
1103          TT_UCR_ARABIC_PRESENTATIONS_B
1104
1105 #define TT_UCR_COMBINING_DIACRITICAL_MARKS      \
1106          TT_UCR_COMBINING_DIACRITICS
1107 #define TT_UCR_COMBINING_DIACRITICAL_MARKS_SYMB \
1108          TT_UCR_COMBINING_DIACRITICS_SYMB
1109
1110
1111 #endif /* !HAVE_LIMIT_ON_IDENTS */
1112
1113
1114 FT_END_HEADER
1115
1116 #endif /* __TTNAMEID_H__ */
1117
1118
1119 /* END */