Skip to main content

LayoutTable

Enum LayoutTable 

Source
pub enum LayoutTable<'a> {
    Gsub(Gsub<'a>),
    Gpos(Gpos<'a>),
}

Variants§

§

Gsub(Gsub<'a>)

§

Gpos(Gpos<'a>)

Implementations§

Source§

impl<'a> LayoutTable<'a>

Source

fn script_list(&self) -> Option<ScriptList<'a>>

Source

fn feature_list(&self) -> Option<FeatureList<'a>>

Source

fn feature_variations(&self) -> Option<FeatureVariations<'a>>

Source

fn script(&self, index: u16) -> Option<Script<'a>>

Source

fn langsys_index(&self, script_index: u16, tag: hb_tag_t) -> Option<u16>

Source

fn langsys( &self, script_index: u16, langsys_index: Option<u16>, ) -> Option<LangSys<'a>>

Source

pub(crate) fn feature(&self, index: u16) -> Option<Feature<'a>>

Source

fn feature_tag(&self, index: u16) -> Option<hb_tag_t>

Source

pub(crate) fn feature_variation_index(&self, coords: &[F2Dot14]) -> Option<u32>

Source

pub(crate) fn feature_substitution( &self, variation_index: u32, feature_index: u16, ) -> Option<Feature<'a>>

Source

pub(crate) fn feature_index(&self, tag: hb_tag_t) -> Option<u16>

Source

pub(crate) fn lookup_count(&self) -> u16

Source

pub(crate) fn select_script( &self, script_tags: &[hb_tag_t], ) -> Option<(bool, u16, 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

pub(crate) fn select_script_language( &self, script_index: u16, lang_tags: &[hb_tag_t], ) -> Option<u16>

Returns the index of the first found language tag in the given GSUB or GPOS table, underneath the specified script index.

Source

pub(crate) fn get_required_language_feature( &self, script_index: u16, lang_index: Option<u16>, ) -> Option<(u16, 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

pub(crate) fn find_language_feature( &self, script_index: u16, lang_index: Option<u16>, feature_tag: hb_tag_t, ) -> Option<u16>

Returns the index of a given feature tag in the given GSUB or GPOS table, underneath the specified script and language.

Auto Trait Implementations§

§

impl<'a> Freeze for LayoutTable<'a>

§

impl<'a> RefUnwindSafe for LayoutTable<'a>

§

impl<'a> Send for LayoutTable<'a>

§

impl<'a> Sync for LayoutTable<'a>

§

impl<'a> Unpin for LayoutTable<'a>

§

impl<'a> UnsafeUnpin for LayoutTable<'a>

§

impl<'a> UnwindSafe for LayoutTable<'a>

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> 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.