1*2d1272b8SAndroid Build Coastguard Worker /* 2*2d1272b8SAndroid Build Coastguard Worker * Copyright © 2010,2012 Google, Inc. 3*2d1272b8SAndroid Build Coastguard Worker * 4*2d1272b8SAndroid Build Coastguard Worker * This is part of HarfBuzz, a text shaping library. 5*2d1272b8SAndroid Build Coastguard Worker * 6*2d1272b8SAndroid Build Coastguard Worker * Permission is hereby granted, without written agreement and without 7*2d1272b8SAndroid Build Coastguard Worker * license or royalty fees, to use, copy, modify, and distribute this 8*2d1272b8SAndroid Build Coastguard Worker * software and its documentation for any purpose, provided that the 9*2d1272b8SAndroid Build Coastguard Worker * above copyright notice and the following two paragraphs appear in 10*2d1272b8SAndroid Build Coastguard Worker * all copies of this software. 11*2d1272b8SAndroid Build Coastguard Worker * 12*2d1272b8SAndroid Build Coastguard Worker * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR 13*2d1272b8SAndroid Build Coastguard Worker * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES 14*2d1272b8SAndroid Build Coastguard Worker * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN 15*2d1272b8SAndroid Build Coastguard Worker * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH 16*2d1272b8SAndroid Build Coastguard Worker * DAMAGE. 17*2d1272b8SAndroid Build Coastguard Worker * 18*2d1272b8SAndroid Build Coastguard Worker * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, 19*2d1272b8SAndroid Build Coastguard Worker * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND 20*2d1272b8SAndroid Build Coastguard Worker * FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS 21*2d1272b8SAndroid Build Coastguard Worker * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO 22*2d1272b8SAndroid Build Coastguard Worker * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. 23*2d1272b8SAndroid Build Coastguard Worker * 24*2d1272b8SAndroid Build Coastguard Worker * Google Author(s): Behdad Esfahbod 25*2d1272b8SAndroid Build Coastguard Worker */ 26*2d1272b8SAndroid Build Coastguard Worker 27*2d1272b8SAndroid Build Coastguard Worker #include "hb.hh" 28*2d1272b8SAndroid Build Coastguard Worker 29*2d1272b8SAndroid Build Coastguard Worker #ifndef HB_NO_OT_SHAPE 30*2d1272b8SAndroid Build Coastguard Worker 31*2d1272b8SAndroid Build Coastguard Worker #include "hb-ot-shaper.hh" 32*2d1272b8SAndroid Build Coastguard Worker 33*2d1272b8SAndroid Build Coastguard Worker 34*2d1272b8SAndroid Build Coastguard Worker const hb_ot_shaper_t _hb_ot_shaper_default = 35*2d1272b8SAndroid Build Coastguard Worker { 36*2d1272b8SAndroid Build Coastguard Worker nullptr, /* collect_features */ 37*2d1272b8SAndroid Build Coastguard Worker nullptr, /* override_features */ 38*2d1272b8SAndroid Build Coastguard Worker nullptr, /* data_create */ 39*2d1272b8SAndroid Build Coastguard Worker nullptr, /* data_destroy */ 40*2d1272b8SAndroid Build Coastguard Worker nullptr, /* preprocess_text */ 41*2d1272b8SAndroid Build Coastguard Worker nullptr, /* postprocess_glyphs */ 42*2d1272b8SAndroid Build Coastguard Worker nullptr, /* decompose */ 43*2d1272b8SAndroid Build Coastguard Worker nullptr, /* compose */ 44*2d1272b8SAndroid Build Coastguard Worker nullptr, /* setup_masks */ 45*2d1272b8SAndroid Build Coastguard Worker nullptr, /* reorder_marks */ 46*2d1272b8SAndroid Build Coastguard Worker HB_TAG_NONE, /* gpos_tag */ 47*2d1272b8SAndroid Build Coastguard Worker HB_OT_SHAPE_NORMALIZATION_MODE_DEFAULT, 48*2d1272b8SAndroid Build Coastguard Worker HB_OT_SHAPE_ZERO_WIDTH_MARKS_BY_GDEF_LATE, 49*2d1272b8SAndroid Build Coastguard Worker true, /* fallback_position */ 50*2d1272b8SAndroid Build Coastguard Worker }; 51*2d1272b8SAndroid Build Coastguard Worker 52*2d1272b8SAndroid Build Coastguard Worker #ifndef HB_NO_AAT_SHAPE 53*2d1272b8SAndroid Build Coastguard Worker /* Same as default but no mark advance zeroing / fallback positioning. 54*2d1272b8SAndroid Build Coastguard Worker * Dumbest shaper ever, basically. */ 55*2d1272b8SAndroid Build Coastguard Worker const hb_ot_shaper_t _hb_ot_shaper_dumber = 56*2d1272b8SAndroid Build Coastguard Worker { 57*2d1272b8SAndroid Build Coastguard Worker nullptr, /* collect_features */ 58*2d1272b8SAndroid Build Coastguard Worker nullptr, /* override_features */ 59*2d1272b8SAndroid Build Coastguard Worker nullptr, /* data_create */ 60*2d1272b8SAndroid Build Coastguard Worker nullptr, /* data_destroy */ 61*2d1272b8SAndroid Build Coastguard Worker nullptr, /* preprocess_text */ 62*2d1272b8SAndroid Build Coastguard Worker nullptr, /* postprocess_glyphs */ 63*2d1272b8SAndroid Build Coastguard Worker nullptr, /* decompose */ 64*2d1272b8SAndroid Build Coastguard Worker nullptr, /* compose */ 65*2d1272b8SAndroid Build Coastguard Worker nullptr, /* setup_masks */ 66*2d1272b8SAndroid Build Coastguard Worker nullptr, /* reorder_marks */ 67*2d1272b8SAndroid Build Coastguard Worker HB_TAG_NONE, /* gpos_tag */ 68*2d1272b8SAndroid Build Coastguard Worker HB_OT_SHAPE_NORMALIZATION_MODE_DEFAULT, 69*2d1272b8SAndroid Build Coastguard Worker HB_OT_SHAPE_ZERO_WIDTH_MARKS_NONE, 70*2d1272b8SAndroid Build Coastguard Worker false, /* fallback_position */ 71*2d1272b8SAndroid Build Coastguard Worker }; 72*2d1272b8SAndroid Build Coastguard Worker #endif 73*2d1272b8SAndroid Build Coastguard Worker 74*2d1272b8SAndroid Build Coastguard Worker 75*2d1272b8SAndroid Build Coastguard Worker #endif 76