Struct read_fonts::layout::gpos::ComponentRecord
source · [−]pub struct ComponentRecord<'a> {
pub ligature_anchor_offsets: &'a [BigEndian<Nullable<Offset16>>],
}Expand description
Part of MarkLigPosFormat1
Fields
ligature_anchor_offsets: &'a [BigEndian<Nullable<Offset16>>]Array of offsets (one per class) to Anchor tables. Offsets are from beginning of LigatureAttach table, ordered by class (offsets may be NULL).
Implementations
sourceimpl<'a> ComponentRecord<'a>
impl<'a> ComponentRecord<'a>
sourcepub fn ligature_anchor_offsets(&self) -> &'a [BigEndian<Nullable<Offset16>>]
pub fn ligature_anchor_offsets(&self) -> &'a [BigEndian<Nullable<Offset16>>]
Array of offsets (one per class) to Anchor tables. Offsets are from beginning of LigatureAttach table, ordered by class (offsets may be NULL).
sourcepub fn ligature_anchors(
&self,
data: FontData<'a>
) -> impl Iterator<Item = Option<Result<AnchorTable<'a>, ReadError>>> + 'a
pub fn ligature_anchors(
&self,
data: FontData<'a>
) -> impl Iterator<Item = Option<Result<AnchorTable<'a>, ReadError>>> + 'a
Attempt to resolve ligature_anchor_offsets.
Trait Implementations
sourceimpl<'a> Clone for ComponentRecord<'a>
impl<'a> Clone for ComponentRecord<'a>
sourcefn clone(&self) -> ComponentRecord<'a>
fn clone(&self) -> ComponentRecord<'a>
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl ComputeSize for ComponentRecord<'_>
impl ComputeSize for ComponentRecord<'_>
sourcefn compute_size(args: &u16) -> usize
fn compute_size(args: &u16) -> usize
Compute the number of bytes required to represent this type.
sourceimpl<'a> Debug for ComponentRecord<'a>
impl<'a> Debug for ComponentRecord<'a>
sourceimpl<'a> FontReadWithArgs<'a> for ComponentRecord<'a>
impl<'a> FontReadWithArgs<'a> for ComponentRecord<'a>
sourceimpl ReadArgs for ComponentRecord<'_>
impl ReadArgs for ComponentRecord<'_>
sourceimpl<'a> SomeRecord<'a> for ComponentRecord<'a>
impl<'a> SomeRecord<'a> for ComponentRecord<'a>
fn traverse(self, data: FontData<'a>) -> RecordResolver<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for ComponentRecord<'a>
impl<'a> Send for ComponentRecord<'a>
impl<'a> Sync for ComponentRecord<'a>
impl<'a> Unpin for ComponentRecord<'a>
impl<'a> UnwindSafe for ComponentRecord<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more