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>
impl<'a> OtTables<'a>
pub fn new( font: &FontRef<'a>, cache: &'a OtCache, table_offsets: &TableRanges, coords: &'a [F2Dot14], feature_variations: [Option<u32>; 2], ) -> Self
pub fn from_tables( font: &impl TableProvider<'a>, cache: &'a OtCache, coords: &'a [F2Dot14], feature_variations: [Option<u32>; 2], ) -> Self
pub fn has_glyph_classes(&self) -> bool
pub fn glyph_class(&self, glyph_id: u32) -> u16
pub fn glyph_mark_attachment_class(&self, glyph_id: u32) -> u16
pub(crate) fn glyph_props(&self, glyph: GlyphId) -> u16
pub fn is_mark_glyph_gdef(&self, glyph_id: u32, set_index: u16) -> bool
pub fn is_mark_glyph(&self, glyph_id: u32, set_index: u16) -> bool
pub fn table_data(&self, table_index: TableIndex) -> Option<&'a [u8]>
pub fn table_data_and_lookup( &self, table_index: TableIndex, lookup_index: u16, ) -> Option<(&'a [u8], &'a LookupInfo)>
pub(super) fn resolve_anchor(&self, anchor: &AnchorTable<'_>) -> (f32, f32)
Trait Implementations§
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> 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