2019-06-19 22:36:14 +00:00
|
|
|
/*
|
|
|
|
* Copyright © 2007,2008,2009 Red Hat, Inc.
|
|
|
|
* Copyright © 2012,2013 Google, Inc.
|
|
|
|
* Copyright © 2019, Facebook Inc.
|
|
|
|
*
|
|
|
|
* This is part of HarfBuzz, a text shaping library.
|
|
|
|
*
|
|
|
|
* Permission is hereby granted, without written agreement and without
|
|
|
|
* license or royalty fees, to use, copy, modify, and distribute this
|
|
|
|
* software and its documentation for any purpose, provided that the
|
|
|
|
* above copyright notice and the following two paragraphs appear in
|
|
|
|
* all copies of this software.
|
|
|
|
*
|
|
|
|
* IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
|
|
|
|
* DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
|
|
|
|
* ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
|
|
|
|
* IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
|
|
|
|
* DAMAGE.
|
|
|
|
*
|
|
|
|
* THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
|
|
|
|
* BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
|
|
|
* FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS
|
|
|
|
* ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
|
|
|
|
* PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
|
|
|
|
*
|
|
|
|
* Red Hat Author(s): Behdad Esfahbod
|
|
|
|
* Google Author(s): Behdad Esfahbod
|
|
|
|
* Facebook Author(s): Behdad Esfahbod
|
|
|
|
*/
|
|
|
|
|
2019-06-19 22:50:13 +00:00
|
|
|
#ifndef HB_OT_FACE_TABLE_LIST_HH
|
|
|
|
#define HB_OT_FACE_TABLE_LIST_HH
|
|
|
|
#endif /* HB_OT_FACE_TABLE_LIST_HH */ /* Dummy header guards */
|
2019-06-19 22:36:14 +00:00
|
|
|
|
|
|
|
#ifndef HB_OT_ACCELERATOR
|
|
|
|
#define HB_OT_ACCELERATOR(Namespace, Type) HB_OT_TABLE (Namespace, Type)
|
|
|
|
#define _HB_OT_ACCELERATOR_UNDEF
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
/* This lists font tables that the hb_face_t will contain and lazily
|
|
|
|
* load. Don't add a table unless it's used though. This is not
|
|
|
|
* exactly free. */
|
|
|
|
|
|
|
|
/* v--- Add new tables in the right place here. */
|
|
|
|
|
|
|
|
|
|
|
|
/* OpenType fundamentals. */
|
|
|
|
HB_OT_TABLE (OT, head)
|
2019-06-20 03:07:02 +00:00
|
|
|
#if !defined(HB_NO_FACE_COLLECT_UNICODES) || !defined(HB_NO_OT_FONT)
|
2019-06-19 22:36:14 +00:00
|
|
|
HB_OT_ACCELERATOR (OT, cmap)
|
2019-06-20 03:07:02 +00:00
|
|
|
#endif
|
2018-11-20 19:56:46 +00:00
|
|
|
HB_OT_TABLE (OT, hhea)
|
2019-06-19 22:36:14 +00:00
|
|
|
HB_OT_ACCELERATOR (OT, hmtx)
|
|
|
|
HB_OT_TABLE (OT, OS2)
|
2019-07-20 09:33:36 +00:00
|
|
|
#if !defined(HB_NO_OT_FONT_GLYPH_NAMES) || !defined(HB_NO_METRICS)
|
2019-06-20 01:49:52 +00:00
|
|
|
HB_OT_ACCELERATOR (OT, post)
|
2019-07-20 09:33:36 +00:00
|
|
|
#endif
|
2019-06-20 01:33:29 +00:00
|
|
|
#ifndef HB_NO_NAME
|
|
|
|
HB_OT_ACCELERATOR (OT, name)
|
|
|
|
#endif
|
2019-06-20 01:36:35 +00:00
|
|
|
#ifndef HB_NO_STAT
|
2019-06-19 22:36:14 +00:00
|
|
|
HB_OT_TABLE (OT, STAT)
|
2019-06-20 01:36:35 +00:00
|
|
|
#endif
|
2019-07-22 19:05:08 +00:00
|
|
|
#ifndef HB_NO_META
|
|
|
|
HB_OT_ACCELERATOR (OT, meta)
|
|
|
|
#endif
|
2019-06-19 22:36:14 +00:00
|
|
|
|
|
|
|
/* Vertical layout. */
|
2018-11-20 19:56:46 +00:00
|
|
|
HB_OT_TABLE (OT, vhea)
|
2019-06-19 22:36:14 +00:00
|
|
|
HB_OT_ACCELERATOR (OT, vmtx)
|
|
|
|
|
|
|
|
/* TrueType outlines. */
|
|
|
|
HB_OT_ACCELERATOR (OT, glyf)
|
|
|
|
|
|
|
|
/* CFF outlines. */
|
|
|
|
#ifndef HB_NO_CFF
|
|
|
|
HB_OT_ACCELERATOR (OT, cff1)
|
|
|
|
HB_OT_ACCELERATOR (OT, cff2)
|
|
|
|
HB_OT_TABLE (OT, VORG)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* OpenType variations. */
|
2019-06-20 02:26:22 +00:00
|
|
|
#ifndef HB_NO_VAR
|
2019-06-19 22:36:14 +00:00
|
|
|
HB_OT_TABLE (OT, fvar)
|
|
|
|
HB_OT_TABLE (OT, avar)
|
2019-10-03 21:02:04 +00:00
|
|
|
HB_OT_ACCELERATOR (OT, gvar)
|
2019-06-19 22:36:14 +00:00
|
|
|
HB_OT_TABLE (OT, MVAR)
|
2019-06-20 02:26:22 +00:00
|
|
|
#endif
|
2019-06-19 22:36:14 +00:00
|
|
|
|
2019-06-19 23:24:51 +00:00
|
|
|
/* Legacy kern. */
|
|
|
|
#ifndef HB_NO_OT_KERN
|
|
|
|
HB_OT_TABLE (OT, kern)
|
|
|
|
#endif
|
|
|
|
|
2019-06-19 22:36:14 +00:00
|
|
|
/* OpenType shaping. */
|
2019-06-26 20:44:10 +00:00
|
|
|
#ifndef HB_NO_OT_LAYOUT
|
2019-06-19 22:36:14 +00:00
|
|
|
HB_OT_ACCELERATOR (OT, GDEF)
|
|
|
|
HB_OT_ACCELERATOR (OT, GSUB)
|
|
|
|
HB_OT_ACCELERATOR (OT, GPOS)
|
|
|
|
//HB_OT_TABLE (OT, JSTF)
|
2019-06-26 20:44:10 +00:00
|
|
|
#endif
|
2019-06-19 22:36:14 +00:00
|
|
|
|
2019-07-30 00:12:51 +00:00
|
|
|
/* OpenType baseline. */
|
|
|
|
#ifndef HB_NO_BASE
|
|
|
|
HB_OT_TABLE (OT, BASE)
|
|
|
|
#endif
|
|
|
|
|
2019-06-19 22:36:14 +00:00
|
|
|
/* AAT shaping. */
|
|
|
|
#ifndef HB_NO_AAT
|
|
|
|
HB_OT_TABLE (AAT, morx)
|
|
|
|
HB_OT_TABLE (AAT, mort)
|
|
|
|
HB_OT_TABLE (AAT, kerx)
|
|
|
|
HB_OT_TABLE (AAT, ankr)
|
|
|
|
HB_OT_TABLE (AAT, trak)
|
|
|
|
HB_OT_TABLE (AAT, lcar)
|
|
|
|
HB_OT_TABLE (AAT, ltag)
|
|
|
|
HB_OT_TABLE (AAT, feat)
|
2019-08-11 11:45:19 +00:00
|
|
|
// HB_OT_TABLE (AAT, opbd)
|
2019-06-19 22:36:14 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
/* OpenType color fonts. */
|
|
|
|
#ifndef HB_NO_COLOR
|
|
|
|
HB_OT_TABLE (OT, COLR)
|
|
|
|
HB_OT_TABLE (OT, CPAL)
|
|
|
|
HB_OT_ACCELERATOR (OT, CBDT)
|
|
|
|
HB_OT_ACCELERATOR (OT, sbix)
|
|
|
|
HB_OT_ACCELERATOR (OT, SVG)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* OpenType math. */
|
|
|
|
#ifndef HB_NO_MATH
|
|
|
|
HB_OT_TABLE (OT, MATH)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef _HB_OT_ACCELERATOR_UNDEF
|
|
|
|
#undef HB_OT_ACCELERATOR
|
|
|
|
#endif
|