blob: 97fb765a25e47b583ab7f6b061983767d9c41585 [file] [log] [blame]
Behdad Esfahbod631da9d2019-06-19 15:36:14 -07001/*
2 * Copyright © 2007,2008,2009 Red Hat, Inc.
3 * Copyright © 2012,2013 Google, Inc.
4 * Copyright © 2019, Facebook Inc.
5 *
6 * This is part of HarfBuzz, a text shaping library.
7 *
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.
13 *
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
18 * DAMAGE.
19 *
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.
25 *
26 * Red Hat Author(s): Behdad Esfahbod
27 * Google Author(s): Behdad Esfahbod
28 * Facebook Author(s): Behdad Esfahbod
29 */
30
Behdad Esfahbod2e3e9292019-06-19 15:50:13 -070031#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 */
Behdad Esfahbod631da9d2019-06-19 15:36:14 -070034
35#ifndef HB_OT_ACCELERATOR
36#define HB_OT_ACCELERATOR(Namespace, Type) HB_OT_TABLE (Namespace, Type)
37#define _HB_OT_ACCELERATOR_UNDEF
38#endif
39
40
41/* This lists font tables that the hb_face_t will contain and lazily
42 * load. Don't add a table unless it's used though. This is not
43 * exactly free. */
44
45/* v--- Add new tables in the right place here. */
46
47
48/* OpenType fundamentals. */
49HB_OT_TABLE (OT, head)
Behdad Esfahbod27de7c42019-06-19 20:07:02 -070050#if !defined(HB_NO_FACE_COLLECT_UNICODES) || !defined(HB_NO_OT_FONT)
Behdad Esfahbod631da9d2019-06-19 15:36:14 -070051HB_OT_ACCELERATOR (OT, cmap)
Behdad Esfahbod27de7c42019-06-19 20:07:02 -070052#endif
Ebrahim Byagowi87e62842018-11-20 23:26:46 +033053HB_OT_TABLE (OT, hhea)
Behdad Esfahbod631da9d2019-06-19 15:36:14 -070054HB_OT_ACCELERATOR (OT, hmtx)
Behdad Esfahbod631da9d2019-06-19 15:36:14 -070055HB_OT_TABLE (OT, OS2)
Ebrahim Byagowiac3518a2019-07-20 14:03:36 +043056#if !defined(HB_NO_OT_FONT_GLYPH_NAMES) || !defined(HB_NO_METRICS)
Behdad Esfahbod230adf22019-06-19 18:49:52 -070057HB_OT_ACCELERATOR (OT, post)
Ebrahim Byagowiac3518a2019-07-20 14:03:36 +043058#endif
Behdad Esfahbodffc2b8d2019-06-19 18:33:29 -070059#ifndef HB_NO_NAME
60HB_OT_ACCELERATOR (OT, name)
61#endif
Behdad Esfahboda5897462019-06-19 18:36:35 -070062#ifndef HB_NO_STAT
Behdad Esfahbod631da9d2019-06-19 15:36:14 -070063HB_OT_TABLE (OT, STAT)
Behdad Esfahboda5897462019-06-19 18:36:35 -070064#endif
Ebrahim Byagowi3ac03bd2019-07-22 23:35:08 +043065#ifndef HB_NO_META
66HB_OT_ACCELERATOR (OT, meta)
67#endif
Behdad Esfahbod631da9d2019-06-19 15:36:14 -070068
69/* Vertical layout. */
Ebrahim Byagowi87e62842018-11-20 23:26:46 +033070HB_OT_TABLE (OT, vhea)
Behdad Esfahbod631da9d2019-06-19 15:36:14 -070071HB_OT_ACCELERATOR (OT, vmtx)
72
73/* TrueType outlines. */
74HB_OT_ACCELERATOR (OT, glyf)
75
76/* CFF outlines. */
77#ifndef HB_NO_CFF
78HB_OT_ACCELERATOR (OT, cff1)
79HB_OT_ACCELERATOR (OT, cff2)
80HB_OT_TABLE (OT, VORG)
81#endif
82
83/* OpenType variations. */
Behdad Esfahboda8498732019-06-19 19:26:22 -070084#ifndef HB_NO_VAR
Behdad Esfahbod631da9d2019-06-19 15:36:14 -070085HB_OT_TABLE (OT, fvar)
86HB_OT_TABLE (OT, avar)
87HB_OT_TABLE (OT, MVAR)
Behdad Esfahboda8498732019-06-19 19:26:22 -070088#endif
Behdad Esfahbod631da9d2019-06-19 15:36:14 -070089
Behdad Esfahbod588697a2019-06-19 16:24:51 -070090/* Legacy kern. */
91#ifndef HB_NO_OT_KERN
92HB_OT_TABLE (OT, kern)
93#endif
94
Behdad Esfahbod631da9d2019-06-19 15:36:14 -070095/* OpenType shaping. */
Behdad Esfahbod7dcf8e12019-06-26 13:44:10 -070096#ifndef HB_NO_OT_LAYOUT
Behdad Esfahbod631da9d2019-06-19 15:36:14 -070097HB_OT_ACCELERATOR (OT, GDEF)
98HB_OT_ACCELERATOR (OT, GSUB)
99HB_OT_ACCELERATOR (OT, GPOS)
100//HB_OT_TABLE (OT, BASE)
101//HB_OT_TABLE (OT, JSTF)
Behdad Esfahbod7dcf8e12019-06-26 13:44:10 -0700102#endif
Behdad Esfahbod631da9d2019-06-19 15:36:14 -0700103
104/* AAT shaping. */
105#ifndef HB_NO_AAT
106HB_OT_TABLE (AAT, morx)
107HB_OT_TABLE (AAT, mort)
108HB_OT_TABLE (AAT, kerx)
109HB_OT_TABLE (AAT, ankr)
110HB_OT_TABLE (AAT, trak)
111HB_OT_TABLE (AAT, lcar)
112HB_OT_TABLE (AAT, ltag)
113HB_OT_TABLE (AAT, feat)
114#endif
115
116/* OpenType color fonts. */
117#ifndef HB_NO_COLOR
118HB_OT_TABLE (OT, COLR)
119HB_OT_TABLE (OT, CPAL)
120HB_OT_ACCELERATOR (OT, CBDT)
121HB_OT_ACCELERATOR (OT, sbix)
122HB_OT_ACCELERATOR (OT, SVG)
123#endif
124
125/* OpenType math. */
126#ifndef HB_NO_MATH
127HB_OT_TABLE (OT, MATH)
128#endif
129
130
131#ifdef _HB_OT_ACCELERATOR_UNDEF
132#undef HB_OT_ACCELERATOR
133#endif