4 * Copyright (C) 2014-2022 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(adlm_dflt
, ADLM_DFLT
,
91 "Adlam default style",
92 TA_WRITING_SYSTEM_LATIN
,
94 TA_BLUE_STRINGSET_ADLM
,
97 STYLE(arab_dflt
, ARAB_DFLT
,
98 "Arabic default style",
99 TA_WRITING_SYSTEM_LATIN
,
101 TA_BLUE_STRINGSET_ARAB
,
104 STYLE(armn_dflt
, ARMN_DFLT
,
105 "Armenian default style",
106 TA_WRITING_SYSTEM_LATIN
,
108 TA_BLUE_STRINGSET_ARMN
,
111 STYLE(avst_dflt
, AVST_DFLT
,
112 "Avestan default style",
113 TA_WRITING_SYSTEM_LATIN
,
115 TA_BLUE_STRINGSET_AVST
,
118 STYLE(bamu_dflt
, BAMU_DFLT
,
119 "Bamum default style",
120 TA_WRITING_SYSTEM_LATIN
,
122 TA_BLUE_STRINGSET_BAMU
,
125 STYLE(beng_dflt
, BENG_DFLT
,
126 "Bengali default style",
127 TA_WRITING_SYSTEM_LATIN
,
129 TA_BLUE_STRINGSET_BENG
,
132 STYLE(buhd_dflt
, BUHD_DFLT
,
133 "Buhid default style",
134 TA_WRITING_SYSTEM_LATIN
,
136 TA_BLUE_STRINGSET_BUHD
,
139 STYLE(cakm_dflt
, CAKM_DFLT
,
140 "Chakma default style",
141 TA_WRITING_SYSTEM_LATIN
,
143 TA_BLUE_STRINGSET_CAKM
,
146 STYLE(cans_dflt
, CANS_DFLT
,
147 "Canadian Syllabics default style",
148 TA_WRITING_SYSTEM_LATIN
,
150 TA_BLUE_STRINGSET_CANS
,
153 STYLE(cari_dflt
, CARI_DFLT
,
154 "Carian default style",
155 TA_WRITING_SYSTEM_LATIN
,
157 TA_BLUE_STRINGSET_CARI
,
160 STYLE(cher_dflt
, CHER_DFLT
,
161 "Cherokee default style",
162 TA_WRITING_SYSTEM_LATIN
,
164 TA_BLUE_STRINGSET_CHER
,
167 STYLE(copt_dflt
, COPT_DFLT
,
168 "Coptic default style",
169 TA_WRITING_SYSTEM_LATIN
,
171 TA_BLUE_STRINGSET_COPT
,
174 STYLE(cprt_dflt
, CPRT_DFLT
,
175 "Cypriot default style",
176 TA_WRITING_SYSTEM_LATIN
,
178 TA_BLUE_STRINGSET_CPRT
,
181 META_STYLE_LATIN(cyrl
, CYRL
, "Cyrillic")
183 STYLE(deva_dflt
, DEVA_DFLT
,
184 "Devanagari default style",
185 TA_WRITING_SYSTEM_LATIN
,
187 TA_BLUE_STRINGSET_DEVA
,
190 STYLE(dsrt_dflt
, DSRT_DFLT
,
191 "Deseret default style",
192 TA_WRITING_SYSTEM_LATIN
,
194 TA_BLUE_STRINGSET_DSRT
,
197 STYLE(ethi_dflt
, ETHI_DFLT
,
198 "Ethiopic default style",
199 TA_WRITING_SYSTEM_LATIN
,
201 TA_BLUE_STRINGSET_ETHI
,
204 STYLE(geor_dflt
, GEOR_DFLT
,
205 "Georgian (Mkhedruli) default style",
206 TA_WRITING_SYSTEM_LATIN
,
208 TA_BLUE_STRINGSET_GEOR
,
211 STYLE(geok_dflt
, GEOK_DFLT
,
212 "Georgian (Khutsuri) default style",
213 TA_WRITING_SYSTEM_LATIN
,
215 TA_BLUE_STRINGSET_GEOK
,
218 STYLE(glag_dflt
, GLAG_DFLT
,
219 "Glagolitic default style",
220 TA_WRITING_SYSTEM_LATIN
,
222 TA_BLUE_STRINGSET_GLAG
,
225 STYLE(goth_dflt
, GOTH_DFLT
,
226 "Gothic default style",
227 TA_WRITING_SYSTEM_LATIN
,
229 TA_BLUE_STRINGSET_GOTH
,
232 META_STYLE_LATIN(grek
, GREK
, "Greek")
234 STYLE(gujr_dflt
, GUJR_DFLT
,
235 "Gujarati default style",
236 TA_WRITING_SYSTEM_LATIN
,
238 TA_BLUE_STRINGSET_GUJR
,
241 STYLE(guru_dflt
, GURU_DFLT
,
242 "Gurmukhi default style",
243 TA_WRITING_SYSTEM_LATIN
,
245 TA_BLUE_STRINGSET_GURU
,
248 STYLE(hebr_dflt
, HEBR_DFLT
,
249 "Hebrew default style",
250 TA_WRITING_SYSTEM_LATIN
,
252 TA_BLUE_STRINGSET_HEBR
,
255 STYLE(hmnp_dflt
, HMNP_DFLT
,
256 "Nyiakeng Puachue Hmong default style",
257 TA_WRITING_SYSTEM_LATIN
,
259 TA_BLUE_STRINGSET_HMNP
,
262 STYLE(kali_dflt
, KALI_DFLT
,
263 "Kayah Li default style",
264 TA_WRITING_SYSTEM_LATIN
,
266 TA_BLUE_STRINGSET_KALI
,
269 STYLE(khmr_dflt
, KHMR_DFLT
,
270 "Khmer default style",
271 TA_WRITING_SYSTEM_LATIN
,
273 TA_BLUE_STRINGSET_KHMR
,
276 STYLE(khms_dflt
, KHMS_DFLT
,
277 "Khmer Symbols default style",
278 TA_WRITING_SYSTEM_LATIN
,
280 TA_BLUE_STRINGSET_KHMS
,
283 STYLE(knda_dflt
, KNDA_DFLT
,
284 "Kannada default style",
285 TA_WRITING_SYSTEM_LATIN
,
287 TA_BLUE_STRINGSET_KNDA
,
290 STYLE(lao_dflt
, LAO_DFLT
,
292 TA_WRITING_SYSTEM_LATIN
,
294 TA_BLUE_STRINGSET_LAO
,
297 META_STYLE_LATIN(latn
, LATN
, "Latin")
299 STYLE(latb_dflt
, LATB_DFLT
,
300 "Latin subscript fallback default style",
301 TA_WRITING_SYSTEM_LATIN
,
303 TA_BLUE_STRINGSET_LATB
,
306 STYLE(latp_dflt
, LATP_DFLT
,
307 "Latin superscript fallback default style",
308 TA_WRITING_SYSTEM_LATIN
,
310 TA_BLUE_STRINGSET_LATP
,
313 #ifdef FT_OPTION_AUTOFIT2
314 STYLE(ltn2_dflt
, LTN2_DFLT
,
315 "Latin 2 default style",
316 TA_WRITING_SYSTEM_LATIN2
,
318 TA_BLUE_STRINGSET_LATN
,
322 STYLE(lisu_dflt
, LISU_DFLT
,
323 "Lisu default style",
324 TA_WRITING_SYSTEM_LATIN
,
326 TA_BLUE_STRINGSET_LISU
,
329 STYLE(mlym_dflt
, MLYM_DFLT
,
330 "Malayalam default style",
331 TA_WRITING_SYSTEM_LATIN
,
333 TA_BLUE_STRINGSET_MLYM
,
336 STYLE(medf_dflt
, MEDF_DFLT
,
337 "Medefaidrin default style",
338 TA_WRITING_SYSTEM_LATIN
,
340 TA_BLUE_STRINGSET_MEDF
,
343 STYLE(mong_dflt
, MONG_DFLT
,
344 "Mongolian default style",
345 TA_WRITING_SYSTEM_LATIN
,
347 TA_BLUE_STRINGSET_MONG
,
350 STYLE(mymr_dflt
, MYMR_DFLT
,
351 "Myanmar default style",
352 TA_WRITING_SYSTEM_LATIN
,
354 TA_BLUE_STRINGSET_MYMR
,
357 STYLE(nkoo_dflt
, NKOO_DFLT
,
358 "N'Ko default style",
359 TA_WRITING_SYSTEM_LATIN
,
361 TA_BLUE_STRINGSET_NKOO
,
364 STYLE(olck_dflt
, OLCK_DFLT
,
365 "Ol Chiki default style",
366 TA_WRITING_SYSTEM_LATIN
,
368 TA_BLUE_STRINGSET_OLCK
,
371 STYLE(orkh_dflt
, ORKH_DFLT
,
372 "Old Turkic default style",
373 TA_WRITING_SYSTEM_LATIN
,
375 TA_BLUE_STRINGSET_ORKH
,
378 STYLE(osge_dflt
, OSGE_DFLT
,
379 "Osage default style",
380 TA_WRITING_SYSTEM_LATIN
,
382 TA_BLUE_STRINGSET_OSGE
,
385 STYLE(osma_dflt
, OSMA_DFLT
,
386 "Osmanya default style",
387 TA_WRITING_SYSTEM_LATIN
,
389 TA_BLUE_STRINGSET_OSMA
,
392 STYLE(rohg_dflt
, ROHG_DFLT
,
393 "Hanifi Rohingya default style",
394 TA_WRITING_SYSTEM_LATIN
,
396 TA_BLUE_STRINGSET_ROHG
,
399 STYLE(saur_dflt
, SAUR_DFLT
,
400 "Saurashtra default style",
401 TA_WRITING_SYSTEM_LATIN
,
403 TA_BLUE_STRINGSET_SAUR
,
406 STYLE(shaw_dflt
, SHAW_DFLT
,
407 "Shavian default style",
408 TA_WRITING_SYSTEM_LATIN
,
410 TA_BLUE_STRINGSET_SHAW
,
413 STYLE(sinh_dflt
, SINH_DFLT
,
414 "Sinhala default style",
415 TA_WRITING_SYSTEM_LATIN
,
417 TA_BLUE_STRINGSET_SINH
,
420 STYLE(sund_dflt
, SUND_DFLT
,
421 "Sundanese default style",
422 TA_WRITING_SYSTEM_LATIN
,
424 TA_BLUE_STRINGSET_SUND
,
427 STYLE(taml_dflt
, TAML_DFLT
,
428 "Tamil default style",
429 TA_WRITING_SYSTEM_LATIN
,
431 TA_BLUE_STRINGSET_TAML
,
434 STYLE(tavt_dflt
, TAVT_DFLT
,
435 "Tai Viet default style",
436 TA_WRITING_SYSTEM_LATIN
,
438 TA_BLUE_STRINGSET_TAVT
,
441 STYLE(telu_dflt
, TELU_DFLT
,
442 "Telugu default style",
443 TA_WRITING_SYSTEM_LATIN
,
445 TA_BLUE_STRINGSET_TELU
,
448 STYLE(tfng_dflt
, TFNG_DFLT
,
449 "Tifinagh default style",
450 TA_WRITING_SYSTEM_LATIN
,
452 TA_BLUE_STRINGSET_TFNG
,
455 STYLE(thai_dflt
, THAI_DFLT
,
456 "Thai default style",
457 TA_WRITING_SYSTEM_LATIN
,
459 TA_BLUE_STRINGSET_THAI
,
462 STYLE(vaii_dflt
, VAII_DFLT
,
464 TA_WRITING_SYSTEM_LATIN
,
466 TA_BLUE_STRINGSET_VAII
,
469 STYLE(yezi_dflt
, YEZI_DFLT
,
470 "Yezidi default style",
471 TA_WRITING_SYSTEM_LATIN
,
473 TA_BLUE_STRINGSET_YEZI
,
476 STYLE(none_dflt
, NONE_DFLT
,
478 TA_WRITING_SYSTEM_LATIN
,
480 TA_BLUE_STRINGSET_NONE
,
483 /* end of tastyles.h */