4 * Copyright (C) 2014-2016 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 `afstyles.h' (2014-Jan-11) from FreeType */
18 /* heavily modified 2014 by Werner Lemberg <wl@gnu.org> */
21 /* The following part can be included multiple times. */
22 /* Define `STYLE' as needed. */
26 * Add new styles here. The first and second arguments are the
27 * style name in lowercase and uppercase, respectively, followed
28 * by a description string. The next arguments are the
29 * corresponding writing system, script, blue stringset, and
32 * Note that styles using `TA_COVERAGE_DEFAULT' should always
33 * come after styles with other coverages. Also note that
34 * fallback scripts only use `TA_COVERAGE_DEFAULT' for its
39 * STYLE(cyrl_dflt, CYRL_DFLT,
40 * "Cyrillic default style",
41 * TA_WRITING_SYSTEM_LATIN,
43 * TA_BLUE_STRINGSET_CYRL,
44 * TA_COVERAGE_DEFAULT)
48 #define STYLE_LATIN(s, S, f, F, ds, df, C) \
49 STYLE(s ## _ ## f, S ## _ ## F, \
51 TA_WRITING_SYSTEM_LATIN, \
53 TA_BLUE_STRINGSET_ ## S, \
56 #undef META_STYLE_LATIN
57 #define META_STYLE_LATIN(s, S, ds) \
58 STYLE_LATIN(s, S, c2cp, C2CP, ds, \
59 "petite capitals from capitals", \
60 PETITE_CAPITALS_FROM_CAPITALS) \
61 STYLE_LATIN(s, S, c2sc, C2SC, ds, \
62 "small capitals from capitals", \
63 SMALL_CAPITALS_FROM_CAPITALS) \
64 STYLE_LATIN(s, S, ordn, ORDN, ds, \
67 STYLE_LATIN(s, S, pcap, PCAP, ds, \
70 STYLE_LATIN(s, S, sinf, SINF, ds, \
71 "scientific inferiors", \
72 SCIENTIFIC_INFERIORS) \
73 STYLE_LATIN(s, S, smcp, SMCP, ds, \
76 STYLE_LATIN(s, S, subs, SUBS, ds, \
79 STYLE_LATIN(s, S, sups, SUPS, ds, \
82 STYLE_LATIN(s, S, titl, TITL, ds, \
85 STYLE_LATIN(s, S, dflt, DFLT, ds, \
90 STYLE(arab_dflt
, ARAB_DFLT
,
91 "Arabic default style",
92 TA_WRITING_SYSTEM_LATIN
,
94 TA_BLUE_STRINGSET_ARAB
,
97 STYLE(armn_dflt
, ARMN_DFLT
,
98 "Armenian default style",
99 TA_WRITING_SYSTEM_LATIN
,
101 TA_BLUE_STRINGSET_ARMN
,
104 STYLE(beng_dflt
, BENG_DFLT
,
105 "Bengali default style",
106 TA_WRITING_SYSTEM_LATIN
,
108 TA_BLUE_STRINGSET_BENG
,
111 STYLE(cher_dflt
, CHER_DFLT
,
112 "Cherokee default style",
113 TA_WRITING_SYSTEM_LATIN
,
115 TA_BLUE_STRINGSET_CHER
,
118 META_STYLE_LATIN(cyrl
, CYRL
, "Cyrillic")
120 STYLE(deva_dflt
, DEVA_DFLT
,
121 "Devanagari default style",
122 TA_WRITING_SYSTEM_LATIN
,
124 TA_BLUE_STRINGSET_DEVA
,
127 STYLE(ethi_dflt
, ETHI_DFLT
,
128 "Ethiopic default style",
129 TA_WRITING_SYSTEM_LATIN
,
131 TA_BLUE_STRINGSET_ETHI
,
134 STYLE(geor_dflt
, GEOR_DFLT
,
135 "Georgian (Mkhedruli) default style",
136 TA_WRITING_SYSTEM_LATIN
,
138 TA_BLUE_STRINGSET_GEOR
,
141 STYLE(geok_dflt
, GEOK_DFLT
,
142 "Georgian (Khutsuri) default style",
143 TA_WRITING_SYSTEM_LATIN
,
145 TA_BLUE_STRINGSET_GEOK
,
148 META_STYLE_LATIN(grek
, GREK
, "Greek")
150 STYLE(gujr_dflt
, GUJR_DFLT
,
151 "Gujarati default style",
152 TA_WRITING_SYSTEM_LATIN
,
154 TA_BLUE_STRINGSET_GUJR
,
157 STYLE(guru_dflt
, GURU_DFLT
,
158 "Gurmukhi default style",
159 TA_WRITING_SYSTEM_LATIN
,
161 TA_BLUE_STRINGSET_GURU
,
164 STYLE(hebr_dflt
, HEBR_DFLT
,
165 "Hebrew default style",
166 TA_WRITING_SYSTEM_LATIN
,
168 TA_BLUE_STRINGSET_HEBR
,
171 STYLE(knda_dflt
, KNDA_DFLT
,
172 "Kannada default style",
173 TA_WRITING_SYSTEM_LATIN
,
175 TA_BLUE_STRINGSET_KNDA
,
178 STYLE(khmr_dflt
, KHMR_DFLT
,
179 "Khmer default style",
180 TA_WRITING_SYSTEM_LATIN
,
182 TA_BLUE_STRINGSET_KHMR
,
185 STYLE(khms_dflt
, KHMS_DFLT
,
186 "Khmer Symbols default style",
187 TA_WRITING_SYSTEM_LATIN
,
189 TA_BLUE_STRINGSET_KHMS
,
192 STYLE(lao_dflt
, LAO_DFLT
,
194 TA_WRITING_SYSTEM_LATIN
,
196 TA_BLUE_STRINGSET_LAO
,
199 META_STYLE_LATIN(latn
, LATN
, "Latin")
201 STYLE(latb_dflt
, LATB_DFLT
,
202 "Latin subscript fallback default style",
203 TA_WRITING_SYSTEM_LATIN
,
205 TA_BLUE_STRINGSET_LATB
,
208 STYLE(latp_dflt
, LATP_DFLT
,
209 "Latin superscript fallback default style",
210 TA_WRITING_SYSTEM_LATIN
,
212 TA_BLUE_STRINGSET_LATP
,
215 #ifdef FT_OPTION_AUTOFIT2
216 STYLE(ltn2_dflt
, LTN2_DFLT
,
217 "Latin 2 default style",
218 TA_WRITING_SYSTEM_LATIN2
,
220 TA_BLUE_STRINGSET_LATN
,
224 STYLE(mlym_dflt
, MLYM_DFLT
,
225 "Malayalam default style",
226 TA_WRITING_SYSTEM_LATIN
,
228 TA_BLUE_STRINGSET_MLYM
,
231 STYLE(mymr_dflt
, MYMR_DFLT
,
232 "Myanmar default style",
233 TA_WRITING_SYSTEM_LATIN
,
235 TA_BLUE_STRINGSET_MYMR
,
238 STYLE(sinh_dflt
, SINH_DFLT
,
239 "Sinhala default style",
240 TA_WRITING_SYSTEM_LATIN
,
242 TA_BLUE_STRINGSET_SINH
,
245 STYLE(taml_dflt
, TAML_DFLT
,
246 "Tamil default style",
247 TA_WRITING_SYSTEM_LATIN
,
249 TA_BLUE_STRINGSET_TAML
,
252 STYLE(telu_dflt
, TELU_DFLT
,
253 "Telugu default style",
254 TA_WRITING_SYSTEM_LATIN
,
256 TA_BLUE_STRINGSET_TELU
,
259 STYLE(thai_dflt
, THAI_DFLT
,
260 "Thai default style",
261 TA_WRITING_SYSTEM_LATIN
,
263 TA_BLUE_STRINGSET_THAI
,
266 STYLE(none_dflt
, NONE_DFLT
,
268 TA_WRITING_SYSTEM_LATIN
,
270 TA_BLUE_STRINGSET_NONE
,
273 /* end of tastyles.h */