blob: 2f6f499eecea185aaa04184365b74c552538bf7d [file] [log] [blame]
Behdad Esfahbod3361c9a2011-07-07 22:35:17 -04001/*
Behdad Esfahbod9f9f04c2012-08-11 18:34:13 -04002 * Copyright © 2010,2012 Google, Inc.
Behdad Esfahbod3361c9a2011-07-07 22:35:17 -04003 *
4 * This is part of HarfBuzz, a text shaping library.
5 *
6 * Permission is hereby granted, without written agreement and without
7 * license or royalty fees, to use, copy, modify, and distribute this
8 * software and its documentation for any purpose, provided that the
9 * above copyright notice and the following two paragraphs appear in
10 * all copies of this software.
11 *
12 * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
13 * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
14 * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
15 * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
16 * DAMAGE.
17 *
18 * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
19 * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
20 * FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS
21 * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
22 * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
23 *
24 * Google Author(s): Behdad Esfahbod
25 */
26
Behdad Esfahbod7aad5362019-06-26 13:21:03 -070027#include "hb.hh"
28
29#ifndef HB_NO_OT_SHAPE
30
Behdad Esfahbod5bfb0b72022-06-03 02:56:41 -060031#include "hb-ot-shaper.hh"
Behdad Esfahbod3361c9a2011-07-07 22:35:17 -040032
Behdad Esfahbod3361c9a2011-07-07 22:35:17 -040033
Behdad Esfahbod44a7b3b2022-06-03 02:42:34 -060034const hb_ot_shaper_t _hb_ot_shaper_default =
Behdad Esfahbod3361c9a2011-07-07 22:35:17 -040035{
Behdad Esfahboddbdbfe32017-10-15 12:11:08 +020036 nullptr, /* collect_features */
37 nullptr, /* override_features */
38 nullptr, /* data_create */
39 nullptr, /* data_destroy */
40 nullptr, /* preprocess_text */
41 nullptr, /* postprocess_glyphs */
Behdad Esfahboddbdbfe32017-10-15 12:11:08 +020042 nullptr, /* decompose */
43 nullptr, /* compose */
44 nullptr, /* setup_masks */
Behdad Esfahboddbdbfe32017-10-15 12:11:08 +020045 nullptr, /* reorder_marks */
Behdad Esfahbodc2712ff2022-07-13 13:34:11 -060046 HB_TAG_NONE, /* gpos_tag */
47 HB_OT_SHAPE_NORMALIZATION_MODE_DEFAULT,
Behdad Esfahbodb3582a82016-02-10 18:10:15 +070048 HB_OT_SHAPE_ZERO_WIDTH_MARKS_BY_GDEF_LATE,
Behdad Esfahbod865745b2012-11-14 13:48:26 -080049 true, /* fallback_position */
Behdad Esfahbod693918e2012-07-30 21:08:51 -040050};
Behdad Esfahbod7aad5362019-06-26 13:21:03 -070051
Behdad Esfahbodf47cbad2019-12-09 18:10:34 -060052/* Same as default but no mark advance zeroing / fallback positioning.
53 * Dumbest shaper ever, basically. */
Behdad Esfahbod44a7b3b2022-06-03 02:42:34 -060054const hb_ot_shaper_t _hb_ot_shaper_dumber =
Behdad Esfahbodf47cbad2019-12-09 18:10:34 -060055{
56 nullptr, /* collect_features */
57 nullptr, /* override_features */
58 nullptr, /* data_create */
59 nullptr, /* data_destroy */
60 nullptr, /* preprocess_text */
61 nullptr, /* postprocess_glyphs */
Behdad Esfahbodf47cbad2019-12-09 18:10:34 -060062 nullptr, /* decompose */
63 nullptr, /* compose */
64 nullptr, /* setup_masks */
Behdad Esfahbodf47cbad2019-12-09 18:10:34 -060065 nullptr, /* reorder_marks */
Behdad Esfahbodc2712ff2022-07-13 13:34:11 -060066 HB_TAG_NONE, /* gpos_tag */
67 HB_OT_SHAPE_NORMALIZATION_MODE_DEFAULT,
Behdad Esfahbodf47cbad2019-12-09 18:10:34 -060068 HB_OT_SHAPE_ZERO_WIDTH_MARKS_NONE,
69 false, /* fallback_position */
70};
71
Behdad Esfahbod7aad5362019-06-26 13:21:03 -070072
73#endif