4 * Copyright (C) 2014 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.
37 * STYLE(cyrl_dflt, CYRL_DFLT,
38 * "Cyrillic default style",
39 * TA_WRITING_SYSTEM_LATIN,
41 * TA_BLUE_STRINGSET_CYRL,
42 * TA_COVERAGE_DEFAULT)
46 #define STYLE_LATIN(s, S, f, F, ds, df, C) \
47 STYLE(s ## _ ## f, S ## _ ## F, \
49 TA_WRITING_SYSTEM_LATIN, \
51 TA_BLUE_STRINGSET_ ## S, \
54 #undef META_STYLE_LATIN
55 #define META_STYLE_LATIN(s, S, ds) \
56 STYLE_LATIN(s, S, c2cp, C2CP, ds, \
57 "petite capticals from capitals", \
58 PETITE_CAPITALS_FROM_CAPITALS) \
59 STYLE_LATIN(s, S, c2sc, C2SC, ds, \
60 "small capticals from capitals", \
61 SMALL_CAPITALS_FROM_CAPITALS) \
62 STYLE_LATIN(s, S, ordn, ORDN, ds, \
65 STYLE_LATIN(s, S, pcap, PCAP, ds, \
68 STYLE_LATIN(s, S, sinf, SINF, ds, \
69 "scientific inferiors", \
70 SCIENTIFIC_INFERIORS) \
71 STYLE_LATIN(s, S, smcp, SMCP, ds, \
74 STYLE_LATIN(s, S, subs, SUBS, ds, \
77 STYLE_LATIN(s, S, sups, SUPS, ds, \
80 STYLE_LATIN(s, S, titl, TITL, ds, \
83 STYLE_LATIN(s, S, dflt, DFLT, ds, \
87 META_STYLE_LATIN(cyrl
, CYRL
, "Cyrillic")
89 STYLE(deva_dflt
, DEVA_DFLT
,
90 "Devanagari default style",
91 TA_WRITING_SYSTEM_LATIN
,
93 TA_BLUE_STRINGSET_DEVA
,
96 META_STYLE_LATIN(grek
, GREK
, "Greek")
98 STYLE(hebr_dflt
, HEBR_DFLT
,
99 "Hebrew default style",
100 TA_WRITING_SYSTEM_LATIN
,
102 TA_BLUE_STRINGSET_HEBR
,
105 META_STYLE_LATIN(latn
, LATN
, "Latin")
107 #ifdef FT_OPTION_AUTOFIT2
108 STYLE(ltn2_dflt
, LTN2_DFLT
,
109 "Latin 2 default style",
110 TA_WRITING_SYSTEM_LATIN2
,
112 TA_BLUE_STRINGSET_LATN
,
116 STYLE(none_dflt
, NONE_DFLT
,
118 TA_WRITING_SYSTEM_DUMMY
,
120 (TA_Blue_Stringset
)0,
123 /* end of tastyles.h */