hb-ot-map-private.hh revision 3e38c0f2886c38d2f0a9d80a97a36edf2479d2c7
14924affe0f0adf75f2a0e2137a71206b0576d63fBehdad Esfahbod/* 22409d5f8d7dd8b535ce5ea29e933f7db27d33793Behdad Esfahbod * Copyright © 2009,2010 Red Hat, Inc. 3f860366456d9e59b139a940da6d89c3c4fb9e96eBehdad Esfahbod * Copyright © 2010,2011,2012 Google, Inc. 44924affe0f0adf75f2a0e2137a71206b0576d63fBehdad Esfahbod * 54924affe0f0adf75f2a0e2137a71206b0576d63fBehdad Esfahbod * This is part of HarfBuzz, a text shaping library. 64924affe0f0adf75f2a0e2137a71206b0576d63fBehdad Esfahbod * 74924affe0f0adf75f2a0e2137a71206b0576d63fBehdad Esfahbod * Permission is hereby granted, without written agreement and without 84924affe0f0adf75f2a0e2137a71206b0576d63fBehdad Esfahbod * license or royalty fees, to use, copy, modify, and distribute this 94924affe0f0adf75f2a0e2137a71206b0576d63fBehdad Esfahbod * software and its documentation for any purpose, provided that the 104924affe0f0adf75f2a0e2137a71206b0576d63fBehdad Esfahbod * above copyright notice and the following two paragraphs appear in 114924affe0f0adf75f2a0e2137a71206b0576d63fBehdad Esfahbod * all copies of this software. 124924affe0f0adf75f2a0e2137a71206b0576d63fBehdad Esfahbod * 134924affe0f0adf75f2a0e2137a71206b0576d63fBehdad Esfahbod * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR 144924affe0f0adf75f2a0e2137a71206b0576d63fBehdad Esfahbod * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES 154924affe0f0adf75f2a0e2137a71206b0576d63fBehdad Esfahbod * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN 164924affe0f0adf75f2a0e2137a71206b0576d63fBehdad Esfahbod * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH 174924affe0f0adf75f2a0e2137a71206b0576d63fBehdad Esfahbod * DAMAGE. 184924affe0f0adf75f2a0e2137a71206b0576d63fBehdad Esfahbod * 194924affe0f0adf75f2a0e2137a71206b0576d63fBehdad Esfahbod * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, 204924affe0f0adf75f2a0e2137a71206b0576d63fBehdad Esfahbod * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND 214924affe0f0adf75f2a0e2137a71206b0576d63fBehdad Esfahbod * FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS 224924affe0f0adf75f2a0e2137a71206b0576d63fBehdad Esfahbod * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO 234924affe0f0adf75f2a0e2137a71206b0576d63fBehdad Esfahbod * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. 244924affe0f0adf75f2a0e2137a71206b0576d63fBehdad Esfahbod * 254924affe0f0adf75f2a0e2137a71206b0576d63fBehdad Esfahbod * Red Hat Author(s): Behdad Esfahbod 264924affe0f0adf75f2a0e2137a71206b0576d63fBehdad Esfahbod * Google Author(s): Behdad Esfahbod 274924affe0f0adf75f2a0e2137a71206b0576d63fBehdad Esfahbod */ 284924affe0f0adf75f2a0e2137a71206b0576d63fBehdad Esfahbod 294924affe0f0adf75f2a0e2137a71206b0576d63fBehdad Esfahbod#ifndef HB_OT_MAP_PRIVATE_HH 304924affe0f0adf75f2a0e2137a71206b0576d63fBehdad Esfahbod#define HB_OT_MAP_PRIVATE_HH 314924affe0f0adf75f2a0e2137a71206b0576d63fBehdad Esfahbod 32895fb5d364e7ae5d9d2e34b9f68b8651804369efBehdad Esfahbod#include "hb-buffer-private.hh" 334924affe0f0adf75f2a0e2137a71206b0576d63fBehdad Esfahbod 34f860366456d9e59b139a940da6d89c3c4fb9e96eBehdad Esfahbod#include "hb-ot-layout-private.hh" 354924affe0f0adf75f2a0e2137a71206b0576d63fBehdad Esfahbod 364924affe0f0adf75f2a0e2137a71206b0576d63fBehdad Esfahbod 374924affe0f0adf75f2a0e2137a71206b0576d63fBehdad Esfahbodstatic const hb_tag_t table_tags[2] = {HB_OT_TAG_GSUB, HB_OT_TAG_GPOS}; 384924affe0f0adf75f2a0e2137a71206b0576d63fBehdad Esfahbod 3990645fb24bcbb78183576d3641a99560d87e49f2Behdad Esfahbodstruct hb_ot_map_t 4090645fb24bcbb78183576d3641a99560d87e49f2Behdad Esfahbod{ 4190645fb24bcbb78183576d3641a99560d87e49f2Behdad Esfahbod friend struct hb_ot_map_builder_t; 424924affe0f0adf75f2a0e2137a71206b0576d63fBehdad Esfahbod 438f08c3275040870a645ef034a38d30c05c619f21Behdad Esfahbod public: 444924affe0f0adf75f2a0e2137a71206b0576d63fBehdad Esfahbod 45610e5e8f713bb2a68939b72cb2b801a7aaede4f9Behdad Esfahbod struct feature_map_t { 46610e5e8f713bb2a68939b72cb2b801a7aaede4f9Behdad Esfahbod hb_tag_t tag; /* should be first for our bsearch to work */ 47610e5e8f713bb2a68939b72cb2b801a7aaede4f9Behdad Esfahbod unsigned int index[2]; /* GSUB/GPOS */ 48610e5e8f713bb2a68939b72cb2b801a7aaede4f9Behdad Esfahbod unsigned int stage[2]; /* GSUB/GPOS */ 49610e5e8f713bb2a68939b72cb2b801a7aaede4f9Behdad Esfahbod unsigned int shift; 50610e5e8f713bb2a68939b72cb2b801a7aaede4f9Behdad Esfahbod hb_mask_t mask; 51610e5e8f713bb2a68939b72cb2b801a7aaede4f9Behdad Esfahbod hb_mask_t _1_mask; /* mask for value=1, for quick access */ 52610e5e8f713bb2a68939b72cb2b801a7aaede4f9Behdad Esfahbod 53610e5e8f713bb2a68939b72cb2b801a7aaede4f9Behdad Esfahbod static int cmp (const feature_map_t *a, const feature_map_t *b) 54610e5e8f713bb2a68939b72cb2b801a7aaede4f9Behdad Esfahbod { return a->tag < b->tag ? -1 : a->tag > b->tag ? 1 : 0; } 55610e5e8f713bb2a68939b72cb2b801a7aaede4f9Behdad Esfahbod }; 56610e5e8f713bb2a68939b72cb2b801a7aaede4f9Behdad Esfahbod 57610e5e8f713bb2a68939b72cb2b801a7aaede4f9Behdad Esfahbod struct lookup_map_t { 58610e5e8f713bb2a68939b72cb2b801a7aaede4f9Behdad Esfahbod unsigned int index; 59610e5e8f713bb2a68939b72cb2b801a7aaede4f9Behdad Esfahbod hb_mask_t mask; 60610e5e8f713bb2a68939b72cb2b801a7aaede4f9Behdad Esfahbod 61610e5e8f713bb2a68939b72cb2b801a7aaede4f9Behdad Esfahbod static int cmp (const lookup_map_t *a, const lookup_map_t *b) 62610e5e8f713bb2a68939b72cb2b801a7aaede4f9Behdad Esfahbod { return a->index < b->index ? -1 : a->index > b->index ? 1 : 0; } 63610e5e8f713bb2a68939b72cb2b801a7aaede4f9Behdad Esfahbod }; 64610e5e8f713bb2a68939b72cb2b801a7aaede4f9Behdad Esfahbod 653e38c0f2886c38d2f0a9d80a97a36edf2479d2c7Behdad Esfahbod typedef void (*pause_func_t) (const hb_ot_map_t *map, hb_font_t *font, hb_buffer_t *buffer); 66610e5e8f713bb2a68939b72cb2b801a7aaede4f9Behdad Esfahbod 67610e5e8f713bb2a68939b72cb2b801a7aaede4f9Behdad Esfahbod struct pause_map_t { 68610e5e8f713bb2a68939b72cb2b801a7aaede4f9Behdad Esfahbod unsigned int num_lookups; /* Cumulative */ 693e38c0f2886c38d2f0a9d80a97a36edf2479d2c7Behdad Esfahbod pause_func_t callback; 70610e5e8f713bb2a68939b72cb2b801a7aaede4f9Behdad Esfahbod }; 71610e5e8f713bb2a68939b72cb2b801a7aaede4f9Behdad Esfahbod 72610e5e8f713bb2a68939b72cb2b801a7aaede4f9Behdad Esfahbod 738336186a52813b53e90b4399dc462d55750e2d37Behdad Esfahbod hb_ot_map_t (void) { memset (this, 0, sizeof (*this)); } 748336186a52813b53e90b4399dc462d55750e2d37Behdad Esfahbod 7539dede9ffffe732f78cbd092ccb3b48d77ddd66dBehdad Esfahbod inline hb_mask_t get_global_mask (void) const { return global_mask; } 764924affe0f0adf75f2a0e2137a71206b0576d63fBehdad Esfahbod 77f055442716ec7543ed156d4789955b19c11a5255Behdad Esfahbod inline hb_mask_t get_mask (hb_tag_t feature_tag, unsigned int *shift = NULL) const { 78f055442716ec7543ed156d4789955b19c11a5255Behdad Esfahbod const feature_map_t *map = features.bsearch (&feature_tag); 798f08c3275040870a645ef034a38d30c05c619f21Behdad Esfahbod if (shift) *shift = map ? map->shift : 0; 808f08c3275040870a645ef034a38d30c05c619f21Behdad Esfahbod return map ? map->mask : 0; 814924affe0f0adf75f2a0e2137a71206b0576d63fBehdad Esfahbod } 824924affe0f0adf75f2a0e2137a71206b0576d63fBehdad Esfahbod 83f055442716ec7543ed156d4789955b19c11a5255Behdad Esfahbod inline hb_mask_t get_1_mask (hb_tag_t feature_tag) const { 84f055442716ec7543ed156d4789955b19c11a5255Behdad Esfahbod const feature_map_t *map = features.bsearch (&feature_tag); 8539dede9ffffe732f78cbd092ccb3b48d77ddd66dBehdad Esfahbod return map ? map->_1_mask : 0; 8639dede9ffffe732f78cbd092ccb3b48d77ddd66dBehdad Esfahbod } 8739dede9ffffe732f78cbd092ccb3b48d77ddd66dBehdad Esfahbod 88610e5e8f713bb2a68939b72cb2b801a7aaede4f9Behdad Esfahbod inline unsigned int get_feature_index (unsigned int table_index, hb_tag_t feature_tag) const { 89f055442716ec7543ed156d4789955b19c11a5255Behdad Esfahbod const feature_map_t *map = features.bsearch (&feature_tag); 90f055442716ec7543ed156d4789955b19c11a5255Behdad Esfahbod return map ? map->index[table_index] : HB_OT_LAYOUT_NO_FEATURE_INDEX; 91f055442716ec7543ed156d4789955b19c11a5255Behdad Esfahbod } 92f055442716ec7543ed156d4789955b19c11a5255Behdad Esfahbod 93610e5e8f713bb2a68939b72cb2b801a7aaede4f9Behdad Esfahbod inline unsigned int get_feature_stage (unsigned int table_index, hb_tag_t feature_tag) const { 94610e5e8f713bb2a68939b72cb2b801a7aaede4f9Behdad Esfahbod const feature_map_t *map = features.bsearch (&feature_tag); 95610e5e8f713bb2a68939b72cb2b801a7aaede4f9Behdad Esfahbod return map ? map->stage[table_index] : (unsigned int) -1; 96610e5e8f713bb2a68939b72cb2b801a7aaede4f9Behdad Esfahbod } 97610e5e8f713bb2a68939b72cb2b801a7aaede4f9Behdad Esfahbod 98610e5e8f713bb2a68939b72cb2b801a7aaede4f9Behdad Esfahbod inline void get_stage_lookups (unsigned int table_index, unsigned int stage, 99610e5e8f713bb2a68939b72cb2b801a7aaede4f9Behdad Esfahbod const struct lookup_map_t **plookups, unsigned int *lookup_count) const { 100610e5e8f713bb2a68939b72cb2b801a7aaede4f9Behdad Esfahbod if (unlikely (stage == (unsigned int) -1)) { 101610e5e8f713bb2a68939b72cb2b801a7aaede4f9Behdad Esfahbod *plookups = NULL; 102610e5e8f713bb2a68939b72cb2b801a7aaede4f9Behdad Esfahbod *lookup_count = 0; 103610e5e8f713bb2a68939b72cb2b801a7aaede4f9Behdad Esfahbod return; 104610e5e8f713bb2a68939b72cb2b801a7aaede4f9Behdad Esfahbod } 105610e5e8f713bb2a68939b72cb2b801a7aaede4f9Behdad Esfahbod assert (stage <= pauses[table_index].len); 106610e5e8f713bb2a68939b72cb2b801a7aaede4f9Behdad Esfahbod unsigned int start = stage ? pauses[table_index][stage - 1].num_lookups : 0; 107610e5e8f713bb2a68939b72cb2b801a7aaede4f9Behdad Esfahbod unsigned int end = stage < pauses[table_index].len ? pauses[table_index][stage].num_lookups : lookups[table_index].len; 108610e5e8f713bb2a68939b72cb2b801a7aaede4f9Behdad Esfahbod *plookups = &lookups[table_index][start]; 109610e5e8f713bb2a68939b72cb2b801a7aaede4f9Behdad Esfahbod *lookup_count = end - start; 110610e5e8f713bb2a68939b72cb2b801a7aaede4f9Behdad Esfahbod } 111610e5e8f713bb2a68939b72cb2b801a7aaede4f9Behdad Esfahbod 112f5bc2725cb892264ba223e0a49f7fd2c622a0730Behdad Esfahbod inline hb_tag_t get_chosen_script (unsigned int table_index) const 113f5bc2725cb892264ba223e0a49f7fd2c622a0730Behdad Esfahbod { return chosen_script[table_index]; } 114f5bc2725cb892264ba223e0a49f7fd2c622a0730Behdad Esfahbod 115f860366456d9e59b139a940da6d89c3c4fb9e96eBehdad Esfahbod HB_INTERNAL void substitute_closure (hb_face_t *face, hb_set_t *glyphs) const; 116afbcc24be01a64bdb5c05c63880269145fa1d3c8Behdad Esfahbod HB_INTERNAL void substitute (hb_font_t *font, hb_buffer_t *buffer) const; 117f860366456d9e59b139a940da6d89c3c4fb9e96eBehdad Esfahbod HB_INTERNAL void position (hb_font_t *font, hb_buffer_t *buffer) const; 1181827dc208c867e433a95237d1ed3fc7a73d1d9a7Behdad Esfahbod 1196a7ac79e26e85f6781186cf708a12825c0857324Behdad Esfahbod inline void finish (void) { 12090645fb24bcbb78183576d3641a99560d87e49f2Behdad Esfahbod features.finish (); 12190645fb24bcbb78183576d3641a99560d87e49f2Behdad Esfahbod lookups[0].finish (); 12290645fb24bcbb78183576d3641a99560d87e49f2Behdad Esfahbod lookups[1].finish (); 123b70c96dbe41d6512b80fe3d966a1942e1ef64a4bBehdad Esfahbod pauses[0].finish (); 124b70c96dbe41d6512b80fe3d966a1942e1ef64a4bBehdad Esfahbod pauses[1].finish (); 1256a7ac79e26e85f6781186cf708a12825c0857324Behdad Esfahbod } 1266a7ac79e26e85f6781186cf708a12825c0857324Behdad Esfahbod 12790645fb24bcbb78183576d3641a99560d87e49f2Behdad Esfahbod 128610e5e8f713bb2a68939b72cb2b801a7aaede4f9Behdad Esfahbod private: 129b70c96dbe41d6512b80fe3d966a1942e1ef64a4bBehdad Esfahbod 13090645fb24bcbb78183576d3641a99560d87e49f2Behdad Esfahbod HB_INTERNAL void add_lookups (hb_face_t *face, 13190645fb24bcbb78183576d3641a99560d87e49f2Behdad Esfahbod unsigned int table_index, 13290645fb24bcbb78183576d3641a99560d87e49f2Behdad Esfahbod unsigned int feature_index, 13390645fb24bcbb78183576d3641a99560d87e49f2Behdad Esfahbod hb_mask_t mask); 13490645fb24bcbb78183576d3641a99560d87e49f2Behdad Esfahbod 13590645fb24bcbb78183576d3641a99560d87e49f2Behdad Esfahbod hb_mask_t global_mask; 13690645fb24bcbb78183576d3641a99560d87e49f2Behdad Esfahbod 137c47a31fb4793b825f4be57e9cb1b10db352b9512Behdad Esfahbod hb_tag_t chosen_script[2]; 13890645fb24bcbb78183576d3641a99560d87e49f2Behdad Esfahbod hb_prealloced_array_t<feature_map_t, 8> features; 13990645fb24bcbb78183576d3641a99560d87e49f2Behdad Esfahbod hb_prealloced_array_t<lookup_map_t, 32> lookups[2]; /* GSUB/GPOS */ 140b70c96dbe41d6512b80fe3d966a1942e1ef64a4bBehdad Esfahbod hb_prealloced_array_t<pause_map_t, 1> pauses[2]; /* GSUB/GPOS */ 14190645fb24bcbb78183576d3641a99560d87e49f2Behdad Esfahbod}; 1424924affe0f0adf75f2a0e2137a71206b0576d63fBehdad Esfahbod 1434924affe0f0adf75f2a0e2137a71206b0576d63fBehdad Esfahbod 144f6d7a9bb4c19e605f1f16d9ca40adefba138c37eBehdad Esfahbodstruct hb_ot_map_builder_t 145f6d7a9bb4c19e605f1f16d9ca40adefba138c37eBehdad Esfahbod{ 146f6d7a9bb4c19e605f1f16d9ca40adefba138c37eBehdad Esfahbod public: 147f6d7a9bb4c19e605f1f16d9ca40adefba138c37eBehdad Esfahbod 1488336186a52813b53e90b4399dc462d55750e2d37Behdad Esfahbod hb_ot_map_builder_t (void) { memset (this, 0, sizeof (*this)); } 1498336186a52813b53e90b4399dc462d55750e2d37Behdad Esfahbod 150f6d7a9bb4c19e605f1f16d9ca40adefba138c37eBehdad Esfahbod HB_INTERNAL void add_feature (hb_tag_t tag, unsigned int value, bool global); 151f6d7a9bb4c19e605f1f16d9ca40adefba138c37eBehdad Esfahbod 152f6d7a9bb4c19e605f1f16d9ca40adefba138c37eBehdad Esfahbod inline void add_bool_feature (hb_tag_t tag, bool global = true) 153f6d7a9bb4c19e605f1f16d9ca40adefba138c37eBehdad Esfahbod { add_feature (tag, 1, global); } 154f6d7a9bb4c19e605f1f16d9ca40adefba138c37eBehdad Esfahbod 1553e38c0f2886c38d2f0a9d80a97a36edf2479d2c7Behdad Esfahbod inline void add_gsub_pause (hb_ot_map_t::pause_func_t pause_func) 1563e38c0f2886c38d2f0a9d80a97a36edf2479d2c7Behdad Esfahbod { add_pause (0, pause_func); } 1573e38c0f2886c38d2f0a9d80a97a36edf2479d2c7Behdad Esfahbod inline void add_gpos_pause (hb_ot_map_t::pause_func_t pause_func) 1583e38c0f2886c38d2f0a9d80a97a36edf2479d2c7Behdad Esfahbod { add_pause (1, pause_func); } 159b70c96dbe41d6512b80fe3d966a1942e1ef64a4bBehdad Esfahbod 160f6d7a9bb4c19e605f1f16d9ca40adefba138c37eBehdad Esfahbod HB_INTERNAL void compile (hb_face_t *face, 161f6d7a9bb4c19e605f1f16d9ca40adefba138c37eBehdad Esfahbod const hb_segment_properties_t *props, 162f6d7a9bb4c19e605f1f16d9ca40adefba138c37eBehdad Esfahbod struct hb_ot_map_t &m); 163f6d7a9bb4c19e605f1f16d9ca40adefba138c37eBehdad Esfahbod 164f6d7a9bb4c19e605f1f16d9ca40adefba138c37eBehdad Esfahbod inline void finish (void) { 165f6d7a9bb4c19e605f1f16d9ca40adefba138c37eBehdad Esfahbod feature_infos.finish (); 166b70c96dbe41d6512b80fe3d966a1942e1ef64a4bBehdad Esfahbod pauses[0].finish (); 167b70c96dbe41d6512b80fe3d966a1942e1ef64a4bBehdad Esfahbod pauses[1].finish (); 168f6d7a9bb4c19e605f1f16d9ca40adefba138c37eBehdad Esfahbod } 169f6d7a9bb4c19e605f1f16d9ca40adefba138c37eBehdad Esfahbod 170f6d7a9bb4c19e605f1f16d9ca40adefba138c37eBehdad Esfahbod private: 171f6d7a9bb4c19e605f1f16d9ca40adefba138c37eBehdad Esfahbod 172f6d7a9bb4c19e605f1f16d9ca40adefba138c37eBehdad Esfahbod struct feature_info_t { 173f6d7a9bb4c19e605f1f16d9ca40adefba138c37eBehdad Esfahbod hb_tag_t tag; 174f6d7a9bb4c19e605f1f16d9ca40adefba138c37eBehdad Esfahbod unsigned int seq; /* sequence#, used for stable sorting only */ 175f6d7a9bb4c19e605f1f16d9ca40adefba138c37eBehdad Esfahbod unsigned int max_value; 176f6d7a9bb4c19e605f1f16d9ca40adefba138c37eBehdad Esfahbod bool global; /* whether the feature applies value to every glyph in the buffer */ 177f6d7a9bb4c19e605f1f16d9ca40adefba138c37eBehdad Esfahbod unsigned int default_value; /* for non-global features, what should the unset glyphs take */ 178b70c96dbe41d6512b80fe3d966a1942e1ef64a4bBehdad Esfahbod unsigned int stage[2]; /* GSUB/GPOS */ 179f6d7a9bb4c19e605f1f16d9ca40adefba138c37eBehdad Esfahbod 180f6d7a9bb4c19e605f1f16d9ca40adefba138c37eBehdad Esfahbod static int cmp (const feature_info_t *a, const feature_info_t *b) 181f6d7a9bb4c19e605f1f16d9ca40adefba138c37eBehdad Esfahbod { return (a->tag != b->tag) ? (a->tag < b->tag ? -1 : 1) : (a->seq < b->seq ? -1 : 1); } 182f6d7a9bb4c19e605f1f16d9ca40adefba138c37eBehdad Esfahbod }; 183f6d7a9bb4c19e605f1f16d9ca40adefba138c37eBehdad Esfahbod 184b70c96dbe41d6512b80fe3d966a1942e1ef64a4bBehdad Esfahbod struct pause_info_t { 185b70c96dbe41d6512b80fe3d966a1942e1ef64a4bBehdad Esfahbod unsigned int stage; 1863e38c0f2886c38d2f0a9d80a97a36edf2479d2c7Behdad Esfahbod hb_ot_map_t::pause_func_t callback; 187b70c96dbe41d6512b80fe3d966a1942e1ef64a4bBehdad Esfahbod }; 188b70c96dbe41d6512b80fe3d966a1942e1ef64a4bBehdad Esfahbod 1893e38c0f2886c38d2f0a9d80a97a36edf2479d2c7Behdad Esfahbod HB_INTERNAL void add_pause (unsigned int table_index, hb_ot_map_t::pause_func_t pause_func); 190d8d0c480c85246a74d47dd5297019c7e39391ab0Behdad Esfahbod 191b70c96dbe41d6512b80fe3d966a1942e1ef64a4bBehdad Esfahbod unsigned int current_stage[2]; /* GSUB/GPOS */ 192b70c96dbe41d6512b80fe3d966a1942e1ef64a4bBehdad Esfahbod hb_prealloced_array_t<feature_info_t,16> feature_infos; 193b70c96dbe41d6512b80fe3d966a1942e1ef64a4bBehdad Esfahbod hb_prealloced_array_t<pause_info_t, 1> pauses[2]; /* GSUB/GPOS */ 194f6d7a9bb4c19e605f1f16d9ca40adefba138c37eBehdad Esfahbod}; 195f6d7a9bb4c19e605f1f16d9ca40adefba138c37eBehdad Esfahbod 196f6d7a9bb4c19e605f1f16d9ca40adefba138c37eBehdad Esfahbod 1974924affe0f0adf75f2a0e2137a71206b0576d63fBehdad Esfahbod 1984924affe0f0adf75f2a0e2137a71206b0576d63fBehdad Esfahbod#endif /* HB_OT_MAP_PRIVATE_HH */ 199