Lines Matching refs:plan
91 hb_ot_shape_planner_t::compile (hb_ot_shape_plan_t &plan, in compile() argument
94 plan.props = props; in compile()
95 plan.shaper = shaper; in compile()
96 map.compile (plan.map, key); in compile()
98 aat_map.compile (plan.aat_map); in compile()
100 plan.frac_mask = plan.map.get_1_mask (HB_TAG ('f','r','a','c')); in compile()
101 plan.numr_mask = plan.map.get_1_mask (HB_TAG ('n','u','m','r')); in compile()
102 plan.dnom_mask = plan.map.get_1_mask (HB_TAG ('d','n','o','m')); in compile()
103 plan.has_frac = plan.frac_mask || (plan.numr_mask && plan.dnom_mask); in compile()
104 plan.rtlm_mask = plan.map.get_1_mask (HB_TAG ('r','t','l','m')); in compile()
107 plan.kern_mask = plan.map.get_mask (kern_tag); in compile()
108 plan.trak_mask = plan.map.get_mask (HB_TAG ('t','r','a','k')); in compile()
110 plan.requested_kerning = !!plan.kern_mask; in compile()
111 plan.requested_tracking = !!plan.trak_mask; in compile()
112 bool has_gpos_kern = plan.map.get_feature_index (1, kern_tag) != HB_OT_LAYOUT_NO_FEATURE_INDEX; in compile()
113 bool disable_gpos = plan.shaper->gpos_tag && in compile()
114 plan.shaper->gpos_tag != plan.map.chosen_script[1]; in compile()
121 plan.fallback_glyph_classes = true; in compile()
127 plan.apply_morx = apply_morx; in compile()
134 plan.apply_kerx = true; in compile()
136 plan.apply_gpos = true; in compile()
138 plan.apply_kerx = true; in compile()
140 if (!plan.apply_kerx && !has_gpos_kern) in compile()
144 plan.apply_kerx = true; in compile()
146 plan.apply_kern = true; in compile()
149 plan.zero_marks = script_zero_marks && in compile()
150 !plan.apply_kerx && in compile()
151 (!plan.apply_kern || !hb_ot_layout_has_machine_kerning (face)); in compile()
152 plan.has_gpos_mark = !!plan.map.get_1_mask (HB_TAG ('m','a','r','k')); in compile()
154 plan.adjust_mark_positioning_when_zeroing = !plan.apply_gpos && in compile()
155 !plan.apply_kerx && in compile()
156 (!plan.apply_kern || !hb_ot_layout_has_cross_kerning (face)); in compile()
158 plan.fallback_mark_positioning = plan.adjust_mark_positioning_when_zeroing && in compile()
162 plan.apply_trak = plan.requested_tracking && hb_aat_layout_has_tracking (face); in compile()
378 hb_ot_shape_plan_t *plan; member
521 hb_mask_t rtlm_mask = c->plan->rtlm_mask; in hb_ot_mirror_chars()
538 !c->plan->has_frac) in hb_ot_shape_setup_masks_fraction()
546 pre_mask = c->plan->numr_mask | c->plan->frac_mask; in hb_ot_shape_setup_masks_fraction()
547 post_mask = c->plan->frac_mask | c->plan->dnom_mask; in hb_ot_shape_setup_masks_fraction()
551 pre_mask = c->plan->frac_mask | c->plan->dnom_mask; in hb_ot_shape_setup_masks_fraction()
552 post_mask = c->plan->numr_mask | c->plan->frac_mask; in hb_ot_shape_setup_masks_fraction()
575 info[i].mask |= c->plan->frac_mask; in hb_ot_shape_setup_masks_fraction()
587 hb_ot_map_t *map = &c->plan->map; in hb_ot_shape_initialize_masks()
597 hb_ot_map_t *map = &c->plan->map; in hb_ot_shape_setup_masks()
602 if (c->plan->shaper->setup_masks) in hb_ot_shape_setup_masks()
603 c->plan->shaper->setup_masks (c->plan, buffer, c->font); in hb_ot_shape_setup_masks()
707 _hb_ot_shape_normalize (c->plan, buffer, c->font); in hb_ot_substitute_default()
712 if (c->plan->fallback_mark_positioning) in hb_ot_substitute_default()
713 _hb_ot_shape_fallback_mark_position_recategorize_marks (c->plan, c->font, buffer); in hb_ot_substitute_default()
727 if (c->plan->fallback_glyph_classes) in hb_ot_substitute_complex()
730 c->plan->substitute (c->font, buffer); in hb_ot_substitute_complex()
747 if (c->plan->apply_morx) in hb_ot_substitute_post()
750 if (c->plan->shaper->postprocess_glyphs) in hb_ot_substitute_post()
751 c->plan->shaper->postprocess_glyphs (c->plan, c->buffer, c->font); in hb_ot_substitute_post()
818 _hb_ot_shape_fallback_spaces (c->plan, c->font, c->buffer); in hb_ot_position_default()
837 bool adjust_offsets_when_zeroing = c->plan->adjust_mark_positioning_when_zeroing && in hb_ot_position_complex()
851 if (c->plan->zero_marks) in hb_ot_position_complex()
852 switch (c->plan->shaper->zero_width_marks) in hb_ot_position_complex()
864 c->plan->position (c->font, c->buffer); in hb_ot_position_complex()
866 if (c->plan->zero_marks) in hb_ot_position_complex()
867 switch (c->plan->shaper->zero_width_marks) in hb_ot_position_complex()
882 if (c->plan->apply_morx) in hb_ot_position_complex()
893 if (c->plan->fallback_mark_positioning) in hb_ot_position_complex()
894 _hb_ot_shape_fallback_mark_position (c->plan, c->font, c->buffer); in hb_ot_position_complex()
971 if (c->plan->shaper->preprocess_text) in hb_ot_shape_internal()
972 c->plan->shaper->preprocess_text (c->plan, c->buffer, c->font); in hb_ot_shape_internal()