pub struct hb_ot_map_builder_t<'a> {
    face: &'a hb_font_t<'a>,
    found_script: [bool; 2],
    script_index: [Option<ScriptIndex>; 2],
    chosen_script: [Option<Tag>; 2],
    lang_index: [Option<LanguageIndex>; 2],
    current_stage: [usize; 2],
    feature_infos: Vec<feature_info_t>,
    stages: [Vec<stage_info_t>; 2],
    pub(crate) is_simple: bool,
}Fields§
§face: &'a hb_font_t<'a>§found_script: [bool; 2]§script_index: [Option<ScriptIndex>; 2]§chosen_script: [Option<Tag>; 2]§lang_index: [Option<LanguageIndex>; 2]§current_stage: [usize; 2]§feature_infos: Vec<feature_info_t>§stages: [Vec<stage_info_t>; 2]§is_simple: boolImplementations§
Source§impl<'a> hb_ot_map_builder_t<'a>
 
impl<'a> hb_ot_map_builder_t<'a>
pub fn new( face: &'a hb_font_t<'a>, script: Option<Script>, language: Option<&Language>, ) -> Self
pub fn chosen_script(&self, table_index: TableIndex) -> Option<hb_tag_t>
pub fn has_feature(&self, tag: hb_tag_t) -> bool
pub fn add_feature(&mut self, tag: hb_tag_t, flags: u32, value: u32)
pub fn enable_feature(&mut self, tag: hb_tag_t, flags: u32, value: u32)
pub fn disable_feature(&mut self, tag: hb_tag_t)
pub fn add_gsub_pause( &mut self, pause: Option<fn(&hb_ot_shape_plan_t, &hb_font_t<'_>, &mut hb_buffer_t) -> bool>, )
pub fn add_gpos_pause( &mut self, pause: Option<fn(&hb_ot_shape_plan_t, &hb_font_t<'_>, &mut hb_buffer_t) -> bool>, )
fn add_pause( &mut self, table_index: TableIndex, pause: Option<fn(&hb_ot_shape_plan_t, &hb_font_t<'_>, &mut hb_buffer_t) -> bool>, )
pub fn compile(&mut self) -> hb_ot_map_t
fn collect_feature_maps( &mut self, required_tag: [Option<hb_tag_t>; 2], ) -> (Vec<feature_map_t>, [usize; 2], u32)
fn dedup_feature_infos(&mut self)
fn collect_lookup_stages( &self, map_features: &[feature_map_t], required_feature_index: [Option<FeatureIndex>; 2], required_feature_stage: [usize; 2], ) -> ([Vec<lookup_map_t>; 2], [Vec<StageMap>; 2])
fn add_lookups( &self, lookups: &mut Vec<lookup_map_t>, table_index: TableIndex, feature_index: FeatureIndex, variation_index: Option<VariationIndex>, mask: u32, auto_zwnj: bool, auto_zwj: bool, random: bool, per_syllable: bool, ) -> Option<()>
Auto Trait Implementations§
impl<'a> Freeze for hb_ot_map_builder_t<'a>
impl<'a> RefUnwindSafe for hb_ot_map_builder_t<'a>
impl<'a> Send for hb_ot_map_builder_t<'a>
impl<'a> Sync for hb_ot_map_builder_t<'a>
impl<'a> Unpin for hb_ot_map_builder_t<'a>
impl<'a> UnwindSafe for hb_ot_map_builder_t<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more