1 /* ttfautohint-coverages.h */
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.
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')
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')
45 /* XXX: Only digits are in this coverage, however, both normal style */
46 /* and oldstyle representation forms are possible. */
47 COVERAGE(denominators
, DENOMINATORS
,
49 dnom
, 'd', 'n', 'o', 'm')
53 /* XXX: It's not possible to define blue zone characters in advance. */
54 COVERAGE(fractions
, FRACTIONS
,
56 frac
, 'f', 'r', 'a', 'c')
60 /* XXX: Only digits are in this coverage, however, both normal style */
61 /* and oldstyle representation forms are possible. */
62 COVERAGE(numerators
, NUMERATORS
,
64 numr
, 'n', 'u', 'm', 'r')
67 COVERAGE(ordinals
, ORDINALS
,
69 ordn
, 'o', 'r', 'd', 'n')
71 COVERAGE(petite_capitals
, PETITE_CAPITALS
,
73 pcap
, 'p', 'c', 'a', 'p')
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
,
85 smcp
, 's', 'm', 'c', 'p')
87 COVERAGE(subscript
, SUBSCRIPT
,
89 subs
, 's', 'u', 'b', 's')
91 COVERAGE(superscript
, SUPERSCRIPT
,
93 sups
, 's', 'u', 'p', 's')
95 COVERAGE(titling
, TITLING
,
97 titl
, 't', 'i', 't', 'l')
100 /* to be always excluded */
101 COVERAGE(nalt
, 'n', 'a', 'l', 't'); /* Alternate Annotation Forms (?) */
102 COVERAGE(ornm
, 'o', 'r', 'n', 'm'); /* Ornaments (?) */
106 /* end of ttfautohint-coverages.h */