pub struct OtMap {
found_script: [bool; 2],
chosen_script: [Option<Tag>; 2],
global_mask: u32,
features: Vec<FeatureMap>,
lookups: [Vec<LookupMap>; 2],
stages: [Vec<StageMap>; 2],
feature_variations: [Option<u32>; 2],
lookup_coords: Option<Box<[F2Dot14]>>,
}Fields§
§found_script: [bool; 2]§chosen_script: [Option<Tag>; 2]§global_mask: u32§features: Vec<FeatureMap>§lookups: [Vec<LookupMap>; 2]§stages: [Vec<StageMap>; 2]§feature_variations: [Option<u32>; 2]§lookup_coords: Option<Box<[F2Dot14]>>The location lookup variations were resolved at, if the font has any.
Implementations§
Source§impl OtMap
impl OtMap
pub const MAX_BITS: u32 = 8
pub const MAX_VALUE: u32
pub fn found_script(&self, table_index: LayoutTableKind) -> bool
pub fn chosen_script(&self, table_index: LayoutTableKind) -> Option<Tag>
pub fn get_global_mask(&self) -> u32
pub fn get_mask(&self, feature_tag: Tag) -> (u32, u32)
pub fn get_1_mask(&self, feature_tag: Tag) -> u32
pub fn needs_fallback(&self, feature_tag: Tag) -> bool
pub fn get_feature_index( &self, table_index: LayoutTableKind, feature_tag: Tag, ) -> Option<u16>
pub fn get_feature_stage( &self, table_index: LayoutTableKind, feature_tag: Tag, ) -> Option<usize>
pub fn stages(&self, table_index: LayoutTableKind) -> &[StageMap]
pub fn lookup(&self, table_index: LayoutTableKind, index: usize) -> &LookupMap
pub fn stage_lookups( &self, table_index: LayoutTableKind, stage: usize, ) -> &[LookupMap]
pub fn stage_lookup_range( &self, table_index: LayoutTableKind, stage: usize, ) -> Range<usize> ⓘ
pub fn feature_variations(&self) -> &[Option<u32>; 2]
pub fn lookup_coords(&self) -> Option<&[F2Dot14]>
Auto Trait Implementations§
impl Freeze for OtMap
impl RefUnwindSafe for OtMap
impl Send for OtMap
impl Sync for OtMap
impl Unpin for OtMap
impl UnsafeUnpin for OtMap
impl UnwindSafe for OtMap
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