diff --git a/src/hb-aat-layout-common.hh b/src/hb-aat-layout-common.hh index 0b7ab48ff..6f8aae773 100644 --- a/src/hb-aat-layout-common.hh +++ b/src/hb-aat-layout-common.hh @@ -935,6 +935,14 @@ struct StateTableDriver machine (machine_), num_glyphs (face_->get_num_glyphs ()) {} + template + bool is_idempotent_on_all_out_of_bounds (context_t *c, hb_aat_apply_context_t *ac) + { + const auto entry = machine.get_entry (StateTableT::STATE_START_OF_TEXT, CLASS_OUT_OF_BOUNDS); + return !c->is_actionable (ac->buffer, this, entry) && + machine.new_state (entry.newState) == StateTableT::STATE_START_OF_TEXT; + } + template void drive (context_t *c, hb_aat_apply_context_t *ac) {