Synchronize with FreeType.
[ttfautohint.git] / lib / ttfautohint-scripts.h
blobdfb9ca5cdf90abc27fe4643874f2159430ee9a57
1 /* ttfautohint-scripts.h */
3 /*
4 * Copyright (C) 2013-2015 by Werner Lemberg.
6 * This file is part of the ttfautohint library, and may only be used,
7 * modified, and distributed under the terms given in `COPYING'. By
8 * continuing to use, modify, or distribute this file you indicate that you
9 * have read `COPYING' and understand and accept it fully.
11 * The file `COPYING' mentioned in the previous paragraph is distributed
12 * with the ttfautohint library.
16 /* originally file `afscript.h' (2013-Aug-05) from FreeType */
19 /* The following part can be included multiple times. */
20 /* Define `SCRIPT' as needed. */
24 * Add new scripts here. The first and second arguments are the
25 * script name in lowercase and uppercase, respectively, followed
26 * by a description string. Then comes the corresponding HarfBuzz
27 * script name tag, followed by the default characters (to derive
28 * the standard width of stems).
30 * Note that fallback scripts only have a default style, thus we
31 * use `HB_SCRIPT_INVALID' as the HarfBuzz script name tag for
32 * them.
35 SCRIPT(arab, ARAB,
36 "Arabic",
37 HB_SCRIPT_ARABIC,
38 "\xD9\x84 \xD8\xAD \xD9\x80") /* ل ح ـ */
40 SCRIPT(cyrl, CYRL,
41 "Cyrillic",
42 HB_SCRIPT_CYRILLIC,
43 "\xD0\xBE \xD0\x9E") /* о О */
45 SCRIPT(deva, DEVA,
46 "Devanagari",
47 HB_SCRIPT_DEVANAGARI,
48 "\xE0\xA4\xA0 \xE0\xA4\xB5 \xE0\xA4\x9F") /* ठ व ट */
50 SCRIPT(grek, GREK,
51 "Greek",
52 HB_SCRIPT_GREEK,
53 "\xCE\xBF \xCE\x9F") /* ο Ο */
55 SCRIPT(hebr, HEBR,
56 "Hebrew",
57 HB_SCRIPT_HEBREW,
58 "\xD7\x9D") /* ם */
60 /* only digit zero has a simple shape in the Khmer script */
61 SCRIPT(khmr, KHMR,
62 "Khmer",
63 HB_SCRIPT_KHMER,
64 "\xE1\x9F\xA0") /* ០ */
66 SCRIPT(khms, KHMS,
67 "Khmer Symbols",
68 HB_SCRIPT_INVALID,
69 "\xE1\xA7\xA1 \xE1\xA7\xAA") /* ᧡ ᧪ */
71 /* only digit zero has a simple shape in the Lao script */
72 SCRIPT(lao, LAO,
73 "Lao",
74 HB_SCRIPT_LAO,
75 "\xE0\xBB\x90") /* ໐ */
77 SCRIPT(latn, LATN,
78 "Latin",
79 HB_SCRIPT_LATIN,
80 "o O 0")
82 SCRIPT(latb, LATB,
83 "Latin Subscript Fallback",
84 HB_SCRIPT_INVALID,
85 "\xE2\x82\x92 \xE2\x82\x80") /* ₒ ₀ */
87 SCRIPT(latp, LATP,
88 "Latin Superscript Fallback",
89 HB_SCRIPT_INVALID,
90 "\xE1\xB5\x92 \xE1\xB4\xBC \xE2\x81\xB0") /* ᵒ ᴼ ⁰ */
92 /* there are no simple forms for letters; we thus use two digit shapes */
93 SCRIPT(telu, TELU,
94 "Telugu",
95 HB_SCRIPT_TELUGU,
96 "\xE0\xB1\xA6 \xE0\xB1\xA7") /* ౦ ౧ */
98 SCRIPT(thai, THAI,
99 "Thai",
100 HB_SCRIPT_THAI,
101 "\xE0\xB8\xB2 \xE0\xB9\x85 \xE0\xB9\x90") /* า ๅ ๐ */
103 SCRIPT(none, NONE,
104 "no script",
105 HB_SCRIPT_INVALID,
108 /* end of ttfautohint-scripts.h */