Skip to main content

OtTables

Struct OtTables 

Source
pub struct OtTables<'a> {
    pub gsub: Option<GsubTable<'a>>,
    pub gpos: Option<GposTable<'a>>,
    pub gdef: GdefTable<'a>,
    pub gdef_glyph_props_cache: &'a hb_cache_core_t<KEY_BITS, VALUE_BITS, CACHE_SIZE, <() as SelectAtomic<STORAGE_BITS>>::Type>,
    pub gdef_mark_set_digests: &'a [hb_set_digest_t],
    pub coords: &'a [F2Dot14],
    pub var_store: Option<ItemVariationStore<'a>>,
    pub feature_variations: [Option<u32>; 2],
}

Fields§

§gsub: Option<GsubTable<'a>>§gpos: Option<GposTable<'a>>§gdef: GdefTable<'a>§gdef_glyph_props_cache: &'a hb_cache_core_t<KEY_BITS, VALUE_BITS, CACHE_SIZE, <() as SelectAtomic<STORAGE_BITS>>::Type>§gdef_mark_set_digests: &'a [hb_set_digest_t]§coords: &'a [F2Dot14]§var_store: Option<ItemVariationStore<'a>>§feature_variations: [Option<u32>; 2]

Implementations§

Source§

impl<'a> OtTables<'a>

Source

pub fn new( font: &FontRef<'a>, cache: &'a OtCache, table_offsets: &TableRanges, coords: &'a [F2Dot14], feature_variations: [Option<u32>; 2], ) -> Self

Source

pub fn from_tables( font: &impl TableProvider<'a>, cache: &'a OtCache, coords: &'a [F2Dot14], feature_variations: [Option<u32>; 2], ) -> Self

Source

pub fn has_glyph_classes(&self) -> bool

Source

pub fn glyph_class(&self, glyph_id: u32) -> u16

Source

pub fn glyph_mark_attachment_class(&self, glyph_id: u32) -> u16

Source

pub(crate) fn glyph_props(&self, glyph: GlyphId) -> u16

Source

pub fn is_mark_glyph_gdef(&self, glyph_id: u32, set_index: u16) -> bool

Source

pub fn is_mark_glyph(&self, glyph_id: u32, set_index: u16) -> bool

Source

pub fn table_data(&self, table_index: TableIndex) -> Option<&'a [u8]>

Source

pub fn table_data_and_lookup( &self, table_index: TableIndex, lookup_index: u16, ) -> Option<(&'a [u8], &'a LookupInfo)>

Source

pub(super) fn resolve_anchor(&self, anchor: &AnchorTable<'_>) -> (f32, f32)

Trait Implementations§

Source§

impl<'a> Clone for OtTables<'a>

Source§

fn clone(&self) -> OtTables<'a>

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

Auto Trait Implementations§

§

impl<'a> Freeze for OtTables<'a>

§

impl<'a> RefUnwindSafe for OtTables<'a>

§

impl<'a> Send for OtTables<'a>

§

impl<'a> Sync for OtTables<'a>

§

impl<'a> Unpin for OtTables<'a>

§

impl<'a> UnsafeUnpin for OtTables<'a>

§

impl<'a> UnwindSafe for OtTables<'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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.