pub trait LayoutTableExt {
    // Required methods
    fn select_script(
        &self,
        script_tags: &[hb_tag_t],
    ) -> Option<(bool, ScriptIndex, hb_tag_t)>;
    fn select_script_language(
        &self,
        script_index: ScriptIndex,
        lang_tags: &[hb_tag_t],
    ) -> Option<LanguageIndex>;
    fn get_required_language_feature(
        &self,
        script_index: ScriptIndex,
        lang_index: Option<LanguageIndex>,
    ) -> Option<(FeatureIndex, hb_tag_t)>;
    fn find_language_feature(
        &self,
        script_index: ScriptIndex,
        lang_index: Option<LanguageIndex>,
        feature_tag: hb_tag_t,
    ) -> Option<FeatureIndex>;
}Required Methods§
fn select_script( &self, script_tags: &[hb_tag_t], ) -> Option<(bool, ScriptIndex, hb_tag_t)>
fn select_script_language( &self, script_index: ScriptIndex, lang_tags: &[hb_tag_t], ) -> Option<LanguageIndex>
fn get_required_language_feature( &self, script_index: ScriptIndex, lang_index: Option<LanguageIndex>, ) -> Option<(FeatureIndex, hb_tag_t)>
fn find_language_feature( &self, script_index: ScriptIndex, lang_index: Option<LanguageIndex>, feature_tag: hb_tag_t, ) -> Option<FeatureIndex>
Implementations on Foreign Types§
Source§impl LayoutTableExt for LayoutTable<'_>
 
impl LayoutTableExt for LayoutTable<'_>
Source§fn select_script(
    &self,
    script_tags: &[hb_tag_t],
) -> Option<(bool, ScriptIndex, hb_tag_t)>
 
fn select_script( &self, script_tags: &[hb_tag_t], ) -> Option<(bool, ScriptIndex, hb_tag_t)>
Returns true + index and tag of the first found script tag in the given GSUB or GPOS table or false + index and tag if falling back to a default script.
Source§fn select_script_language(
    &self,
    script_index: ScriptIndex,
    lang_tags: &[hb_tag_t],
) -> Option<LanguageIndex>
 
fn select_script_language( &self, script_index: ScriptIndex, lang_tags: &[hb_tag_t], ) -> Option<LanguageIndex>
Returns the index of the first found language tag in the given GSUB or GPOS table, underneath the specified script index.
Source§fn get_required_language_feature(
    &self,
    script_index: ScriptIndex,
    lang_index: Option<LanguageIndex>,
) -> Option<(FeatureIndex, hb_tag_t)>
 
fn get_required_language_feature( &self, script_index: ScriptIndex, lang_index: Option<LanguageIndex>, ) -> Option<(FeatureIndex, hb_tag_t)>
Returns the index and tag of a required feature in the given GSUB or GPOS table, underneath the specified script and language.
Source§fn find_language_feature(
    &self,
    script_index: ScriptIndex,
    lang_index: Option<LanguageIndex>,
    feature_tag: hb_tag_t,
) -> Option<FeatureIndex>
 
fn find_language_feature( &self, script_index: ScriptIndex, lang_index: Option<LanguageIndex>, feature_tag: hb_tag_t, ) -> Option<FeatureIndex>
Returns the index of a given feature tag in the given GSUB or GPOS table, underneath the specified script and language.