Skip to main content

OtMap

Struct OtMap 

Source
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

Source

pub const MAX_BITS: u32 = 8

Source

pub const MAX_VALUE: u32

Source

pub fn found_script(&self, table_index: LayoutTableKind) -> bool

Source

pub fn chosen_script(&self, table_index: LayoutTableKind) -> Option<Tag>

Source

pub fn get_global_mask(&self) -> u32

Source

pub fn get_mask(&self, feature_tag: Tag) -> (u32, u32)

Source

pub fn get_1_mask(&self, feature_tag: Tag) -> u32

Source

pub fn needs_fallback(&self, feature_tag: Tag) -> bool

Source

pub fn get_feature_index( &self, table_index: LayoutTableKind, feature_tag: Tag, ) -> Option<u16>

Source

pub fn get_feature_stage( &self, table_index: LayoutTableKind, feature_tag: Tag, ) -> Option<usize>

Source

pub fn stages(&self, table_index: LayoutTableKind) -> &[StageMap]

Source

pub fn lookup(&self, table_index: LayoutTableKind, index: usize) -> &LookupMap

Source

pub fn stage_lookups( &self, table_index: LayoutTableKind, stage: usize, ) -> &[LookupMap]

Source

pub fn stage_lookup_range( &self, table_index: LayoutTableKind, stage: usize, ) -> Range<usize> ⓘ

Source

pub fn feature_variations(&self) -> &[Option<u32>; 2]

Source

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.