2 * Copyright © 2007,2008,2009 Red Hat, Inc.
3 * Copyright © 2012,2013 Google, Inc.
4 * Copyright © 2019, Facebook Inc.
6 * This is part of HarfBuzz, a text shaping library.
8 * Permission is hereby granted, without written agreement and without
9 * license or royalty fees, to use, copy, modify, and distribute this
10 * software and its documentation for any purpose, provided that the
11 * above copyright notice and the following two paragraphs appear in
12 * all copies of this software.
14 * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
15 * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
16 * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
17 * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
20 * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
21 * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
22 * FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS
23 * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
24 * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
26 * Red Hat Author(s): Behdad Esfahbod
27 * Google Author(s): Behdad Esfahbod
28 * Facebook Author(s): Behdad Esfahbod
31 #ifndef HB_OT_FACE_TABLE_LIST_HH
32 #define HB_OT_FACE_TABLE_LIST_HH
33 #endif /* HB_OT_FACE_TABLE_LIST_HH */ /* Dummy header guards */
35 #ifndef HB_OT_CORE_TABLE
36 #define HB_OT_CORE_TABLE(Namespace, Type) HB_OT_TABLE (Namespace, Type)
37 #define _HB_OT_CORE_TABLE_UNDEF
40 #ifndef HB_OT_ACCELERATOR
41 #define HB_OT_ACCELERATOR(Namespace, Type) HB_OT_TABLE (Namespace, Type)
42 #define _HB_OT_ACCELERATOR_UNDEF
46 /* This lists font tables that the hb_face_t will contain and lazily
47 * load. Don't add a table unless it's used though. This is not
48 * exactly zero-cost. */
50 /* v--- Add new tables in the right place here. */
53 /* OpenType fundamentals. */
54 HB_OT_CORE_TABLE (OT
, head
)
55 HB_OT_CORE_TABLE (OT
, maxp
)
56 #if !defined(HB_NO_FACE_COLLECT_UNICODES) || !defined(HB_NO_OT_FONT)
57 HB_OT_ACCELERATOR (OT
, cmap
)
59 HB_OT_CORE_TABLE (OT
, hhea
)
60 HB_OT_ACCELERATOR (OT
, hmtx
)
61 HB_OT_CORE_TABLE (OT
, OS2
)
62 #if !defined(HB_NO_OT_FONT_GLYPH_NAMES) || !defined(HB_NO_METRICS) || !defined(HB_NO_STYLE)
63 HB_OT_ACCELERATOR (OT
, post
)
66 HB_OT_ACCELERATOR (OT
, name
)
69 HB_OT_CORE_TABLE (OT
, STAT
)
72 HB_OT_ACCELERATOR (OT
, meta
)
75 /* Vertical layout. */
76 #ifndef HB_NO_VERTICAL
77 HB_OT_CORE_TABLE (OT
, vhea
)
78 HB_OT_ACCELERATOR (OT
, vmtx
)
79 HB_OT_CORE_TABLE (OT
, VORG
)
82 /* TrueType outlines. */
83 HB_OT_CORE_TABLE (OT
, loca
) // Also used to determine number of glyphs
84 HB_OT_ACCELERATOR (OT
, glyf
)
88 HB_OT_ACCELERATOR (OT
, cff1
)
89 HB_OT_ACCELERATOR (OT
, cff2
)
92 /* OpenType variations. */
94 HB_OT_CORE_TABLE (OT
, fvar
)
95 HB_OT_CORE_TABLE (OT
, avar
)
96 HB_OT_CORE_TABLE (OT
, cvar
)
97 HB_OT_ACCELERATOR (OT
, gvar
)
98 HB_OT_CORE_TABLE (OT
, MVAR
)
102 #ifndef HB_NO_OT_KERN
103 HB_OT_CORE_TABLE (OT
, kern
)
106 /* OpenType shaping. */
107 #ifndef HB_NO_OT_LAYOUT
108 HB_OT_ACCELERATOR (OT
, GDEF
)
109 HB_OT_ACCELERATOR (OT
, GSUB
)
110 HB_OT_ACCELERATOR (OT
, GPOS
)
111 //HB_OT_CORE_TABLE (OT, JSTF)
114 /* OpenType baseline. */
116 HB_OT_CORE_TABLE (OT
, BASE
)
121 HB_OT_TABLE (AAT
, morx
)
122 HB_OT_TABLE (AAT
, mort
)
123 HB_OT_TABLE (AAT
, kerx
)
124 HB_OT_TABLE (AAT
, ankr
)
125 HB_OT_TABLE (AAT
, trak
)
126 HB_OT_TABLE (AAT
, ltag
)
127 HB_OT_TABLE (AAT
, feat
)
128 // HB_OT_TABLE (AAT, opbd)
131 /* OpenType color fonts. */
133 HB_OT_CORE_TABLE (OT
, COLR
)
134 HB_OT_CORE_TABLE (OT
, CPAL
)
135 HB_OT_ACCELERATOR (OT
, CBDT
)
136 HB_OT_ACCELERATOR (OT
, sbix
)
137 HB_OT_ACCELERATOR (OT
, SVG
)
142 HB_OT_CORE_TABLE (OT
, MATH
)
146 #ifdef _HB_OT_ACCELERATOR_UNDEF
147 #undef HB_OT_ACCELERATOR
150 #ifdef _HB_OT_CORE_TABLE_UNDEF
151 #undef HB_OT_CORE_TABLE