[gsubgpos] Move some member initialization

This commit is contained in:
Behdad Esfahbod 2022-05-29 10:32:59 -06:00
parent 0bb4c1f021
commit 97aa1ce6ba
1 changed files with 10 additions and 23 deletions

View File

@ -631,27 +631,23 @@ struct hb_ot_apply_context_t :
VariationStore::cache_t *var_store_cache; VariationStore::cache_t *var_store_cache;
hb_direction_t direction; hb_direction_t direction;
hb_mask_t lookup_mask; hb_mask_t lookup_mask = 1;
unsigned int lookup_index; unsigned int lookup_index = (unsigned) -1;
unsigned int lookup_props; unsigned int lookup_props = 0;
unsigned int nesting_level_left; unsigned int nesting_level_left = HB_MAX_NESTING_LEVEL;
bool has_glyph_classes; bool has_glyph_classes;
bool auto_zwnj; bool auto_zwnj = true;
bool auto_zwj; bool auto_zwj = true;
bool per_syllable; bool per_syllable = false;
bool random; bool random = false;
uint32_t random_state = 1;
uint32_t random_state;
hb_ot_apply_context_t (unsigned int table_index_, hb_ot_apply_context_t (unsigned int table_index_,
hb_font_t *font_, hb_font_t *font_,
hb_buffer_t *buffer_) : hb_buffer_t *buffer_) :
iter_input (), iter_context (),
table_index (table_index_), table_index (table_index_),
font (font_), face (font->face), buffer (buffer_), font (font_), face (font->face), buffer (buffer_),
recurse_func (nullptr),
gdef ( gdef (
#ifndef HB_NO_OT_LAYOUT #ifndef HB_NO_OT_LAYOUT
*face->table.GDEF->table *face->table.GDEF->table
@ -668,16 +664,7 @@ struct hb_ot_apply_context_t :
#endif #endif
), ),
direction (buffer_->props.direction), direction (buffer_->props.direction),
lookup_mask (1), has_glyph_classes (gdef.has_glyph_classes ())
lookup_index ((unsigned int) -1),
lookup_props (0),
nesting_level_left (HB_MAX_NESTING_LEVEL),
has_glyph_classes (gdef.has_glyph_classes ()),
auto_zwnj (true),
auto_zwj (true),
per_syllable (false),
random (false),
random_state (1)
{ init_iters (); } { init_iters (); }
~hb_ot_apply_context_t () ~hb_ot_apply_context_t ()