Fix OTS warning about `maxp.maxSizeOfInstructions`.
[ttfautohint.git] / lib / ttfautohint-coverages.h
blob53892367ae37b8ed7fceab94bb0d0701e029b38b
1 /* ttfautohint-coverages.h */
3 /*
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.
15 /* originally file `afcover.h' (2014-01-09) from FreeType */
18 /* This header file can be included multiple times. */
19 /* Define `COVERAGE' as needed. */
23 * Add new coverages here. The first and second arguments are the coverage
24 * name in lowercase and uppercase, respectively, followed by a description
25 * string. The last five arguments are a four-character identifier and its
26 * four characters defining the corresponding OpenType feature.
29 #if 0
30 /* XXX: It's not possible to define blue zone characters in advance. */
31 COVERAGE(alternative_fractions, ALTERNATIVE_FRACTIONS,
32 "alternative fractions",
33 afrc, 'a', 'f', 'r', 'c')
34 #endif
36 COVERAGE(petite_capitals_from_capitals, PETITE_CAPITALS_FROM_CAPITALS,
37 "petite capitals from capitals",
38 c2cp, 'c', '2', 'c', 'p')
40 COVERAGE(small_capitals_from_capitals, SMALL_CAPITALS_FROM_CAPITALS,
41 "small capitals from capitals",
42 c2sc, 'c', '2', 's', 'c')
44 #if 0
45 /* XXX: Only digits are in this coverage, however, both normal style */
46 /* and oldstyle representation forms are possible. */
47 COVERAGE(denominators, DENOMINATORS,
48 "denominators",
49 dnom, 'd', 'n', 'o', 'm')
50 #endif
52 #if 0
53 /* XXX: It's not possible to define blue zone characters in advance. */
54 COVERAGE(fractions, FRACTIONS,
55 "fractions",
56 frac, 'f', 'r', 'a', 'c')
57 #endif
59 #if 0
60 /* XXX: Only digits are in this coverage, however, both normal style */
61 /* and oldstyle representation forms are possible. */
62 COVERAGE(numerators, NUMERATORS,
63 "numerators",
64 numr, 'n', 'u', 'm', 'r')
65 #endif
67 COVERAGE(ordinals, ORDINALS,
68 "ordinals",
69 ordn, 'o', 'r', 'd', 'n')
71 COVERAGE(petite_capitals, PETITE_CAPITALS,
72 "petite capitals",
73 pcap, 'p', 'c', 'a', 'p')
75 COVERAGE(ruby, RUBY,
76 "ruby",
77 ruby, 'r', 'u', 'b', 'y')
79 COVERAGE(scientific_inferiors, SCIENTIFIC_INFERIORS,
80 "scientific inferiors",
81 sinf, 's', 'i', 'n', 'f')
83 COVERAGE(small_capitals, SMALL_CAPITALS,
84 "small capitals",
85 smcp, 's', 'm', 'c', 'p')
87 COVERAGE(subscript, SUBSCRIPT,
88 "subscript",
89 subs, 's', 'u', 'b', 's')
91 COVERAGE(superscript, SUPERSCRIPT,
92 "superscript",
93 sups, 's', 'u', 'p', 's')
95 COVERAGE(titling, TITLING,
96 "titling",
97 titl, 't', 'i', 't', 'l')
99 #if 0
100 /* to be always excluded */
101 COVERAGE(nalt, 'n', 'a', 'l', 't'); /* Alternate Annotation Forms (?) */
102 COVERAGE(ornm, 'o', 'r', 'n', 'm'); /* Ornaments (?) */
103 #endif
106 /* end of ttfautohint-coverages.h */