Lines Matching refs:OT
54 layout->gdef_blob = OT::Sanitizer<OT::GDEF>::sanitize (face->reference_table (HB_OT_TAG_GDEF)); in HB_SHAPER_DATA_ENSURE_DECLARE()
55 layout->gdef = OT::Sanitizer<OT::GDEF>::lock_instance (layout->gdef_blob); in HB_SHAPER_DATA_ENSURE_DECLARE()
57 layout->gsub_blob = OT::Sanitizer<OT::GSUB>::sanitize (face->reference_table (HB_OT_TAG_GSUB)); in HB_SHAPER_DATA_ENSURE_DECLARE()
58 layout->gsub = OT::Sanitizer<OT::GSUB>::lock_instance (layout->gsub_blob); in HB_SHAPER_DATA_ENSURE_DECLARE()
60 layout->gpos_blob = OT::Sanitizer<OT::GPOS>::sanitize (face->reference_table (HB_OT_TAG_GPOS)); in HB_SHAPER_DATA_ENSURE_DECLARE()
61 layout->gpos = OT::Sanitizer<OT::GPOS>::lock_instance (layout->gpos_blob); in HB_SHAPER_DATA_ENSURE_DECLARE()
88 layout->gdef = &OT::Null(OT::GDEF); in HB_SHAPER_DATA_ENSURE_DECLARE()
131 static inline const OT::GDEF&
134 if (unlikely (!hb_ot_shaper_face_data_ensure (face))) return OT::Null(OT::GDEF); in _get_gdef()
137 static inline const OT::GSUB&
140 if (unlikely (!hb_ot_shaper_face_data_ensure (face))) return OT::Null(OT::GSUB); in _get_gsub()
143 static inline const OT::GPOS&
146 if (unlikely (!hb_ot_shaper_face_data_ensure (face))) return OT::Null(OT::GPOS); in _get_gpos()
212 static const OT::GSUBGPOS&
219 default: return OT::Null(OT::GSUBGPOS); in get_gsubgpos_table()
231 const OT::GSUBGPOS &g = get_gsubgpos_table (face, table_tag); in hb_ot_layout_table_get_script_tags()
244 ASSERT_STATIC (OT::Index::NOT_FOUND_INDEX == HB_OT_LAYOUT_NO_SCRIPT_INDEX); in hb_ot_layout_table_find_script()
245 const OT::GSUBGPOS &g = get_gsubgpos_table (face, table_tag); in hb_ot_layout_table_find_script()
275 ASSERT_STATIC (OT::Index::NOT_FOUND_INDEX == HB_OT_LAYOUT_NO_SCRIPT_INDEX); in hb_ot_layout_table_choose_script()
276 const OT::GSUBGPOS &g = get_gsubgpos_table (face, table_tag); in hb_ot_layout_table_choose_script()
323 const OT::GSUBGPOS &g = get_gsubgpos_table (face, table_tag); in hb_ot_layout_table_get_feature_tags()
334 ASSERT_STATIC (OT::Index::NOT_FOUND_INDEX == HB_OT_LAYOUT_NO_FEATURE_INDEX); in hb_ot_layout_table_find_feature()
335 const OT::GSUBGPOS &g = get_gsubgpos_table (face, table_tag); in hb_ot_layout_table_find_feature()
359 const OT::Script &s = get_gsubgpos_table (face, table_tag).get_script (script_index); in hb_ot_layout_script_get_language_tags()
371 ASSERT_STATIC (OT::Index::NOT_FOUND_INDEX == HB_OT_LAYOUT_DEFAULT_LANGUAGE_INDEX); in hb_ot_layout_script_find_language()
372 const OT::Script &s = get_gsubgpos_table (face, table_tag).get_script (script_index); in hb_ot_layout_script_find_language()
413 const OT::GSUBGPOS &g = get_gsubgpos_table (face, table_tag); in hb_ot_layout_language_get_required_feature()
414 const OT::LangSys &l = g.get_script (script_index).get_lang_sys (language_index); in hb_ot_layout_language_get_required_feature()
432 const OT::GSUBGPOS &g = get_gsubgpos_table (face, table_tag); in hb_ot_layout_language_get_feature_indexes()
433 const OT::LangSys &l = g.get_script (script_index).get_lang_sys (language_index); in hb_ot_layout_language_get_feature_indexes()
447 const OT::GSUBGPOS &g = get_gsubgpos_table (face, table_tag); in hb_ot_layout_language_get_feature_tags()
448 const OT::LangSys &l = g.get_script (script_index).get_lang_sys (language_index); in hb_ot_layout_language_get_feature_tags()
471 ASSERT_STATIC (OT::Index::NOT_FOUND_INDEX == HB_OT_LAYOUT_NO_FEATURE_INDEX); in hb_ot_layout_language_find_feature()
472 const OT::GSUBGPOS &g = get_gsubgpos_table (face, table_tag); in hb_ot_layout_language_find_feature()
473 const OT::LangSys &l = g.get_script (script_index).get_lang_sys (language_index); in hb_ot_layout_language_find_feature()
502 const OT::GSUBGPOS &g = get_gsubgpos_table (face, table_tag); in hb_ot_layout_feature_get_lookups()
503 const OT::Feature &f = g.get_feature (feature_index); in hb_ot_layout_feature_get_lookups()
732 OT::hb_collect_glyphs_context_t c (face, in hb_ot_layout_lookup_collect_glyphs()
742 const OT::SubstLookup& l = hb_ot_layout_from_face (face)->gsub->get_lookup (lookup_index); in hb_ot_layout_lookup_collect_glyphs()
748 const OT::PosLookup& l = hb_ot_layout_from_face (face)->gpos->get_lookup (lookup_index); in hb_ot_layout_lookup_collect_glyphs()
763 return &_get_gsub (face) != &OT::Null(OT::GSUB); in hb_ot_layout_has_substitution()
790 OT::hb_would_apply_context_t c (face, glyphs, glyphs_length, (bool) zero_context); in hb_ot_layout_lookup_would_substitute_fast()
792 const OT::SubstLookup& l = hb_ot_layout_from_face (face)->gsub->get_lookup (lookup_index); in hb_ot_layout_lookup_would_substitute_fast()
800 OT::GSUB::substitute_start (font, buffer); in hb_ot_layout_substitute_start()
813 OT::hb_closure_context_t c (face, glyphs); in hb_ot_layout_lookup_substitute_closure()
815 const OT::SubstLookup& l = _get_gsub (face).get_lookup (lookup_index); in hb_ot_layout_lookup_substitute_closure()
827 return &_get_gpos (face) != &OT::Null(OT::GPOS); in hb_ot_layout_has_positioning()
833 OT::GPOS::position_start (font, buffer); in hb_ot_layout_position_start()
839 OT::GPOS::position_finish_advances (font, buffer); in hb_ot_layout_position_finish_advances()
845 OT::GPOS::position_finish_offsets (font, buffer); in hb_ot_layout_position_finish_offsets()
861 const OT::GPOS &gpos = _get_gpos (face); in hb_ot_layout_get_size_params()
869 const OT::Feature &f = gpos.get_feature (i); in hb_ot_layout_get_size_params()
870 const OT::FeatureParamsSize ¶ms = f.get_feature_params ().get_size_params (tag); in hb_ot_layout_get_size_params()
909 typedef OT::SubstLookup Lookup;
915 const OT::GSUB &table;
923 typedef OT::PosLookup Lookup;
929 const OT::GPOS &table;
935 OT::hb_dispatch_context_t<hb_get_subtables_context_t, hb_void_t, HB_DEBUG_APPLY>
938 static inline bool apply_to (const void *obj, OT::hb_apply_context_t *c) in apply_to()
944 typedef bool (*hb_apply_func_t) (const void *obj, OT::hb_apply_context_t *c);
954 inline bool apply (OT::hb_apply_context_t *c) const { return apply_func (obj, c); } in apply()
985 apply_forward (OT::hb_apply_context_t *c, in apply_forward()
1015 apply_backward (OT::hb_apply_context_t *c, in apply_backward()
1044 apply_string (OT::hb_apply_context_t *c, in apply_string()
1095 OT::hb_apply_context_t c (table_index, font, buffer); in apply()
1134 hb_ot_layout_substitute_lookup (OT::hb_apply_context_t *c, in hb_ot_layout_substitute_lookup()
1135 const OT::SubstLookup &lookup, in hb_ot_layout_substitute_lookup()