Struct write_fonts::tables::avar::Avar
source · pub struct Avar {
pub version: MajorMinor,
pub axis_segment_maps: Vec<SegmentMaps>,
}Expand description
The avar (Axis Variations) table
Fields§
§version: MajorMinorMajor version number of the axis variations table — set to 1. Minor version number of the axis variations table — set to 0.
axis_segment_maps: Vec<SegmentMaps>The segment maps array — one segment map for each axis, in the order of axes specified in the ‘fvar’ table.
Implementations§
source§impl Avar
impl Avar
sourcepub fn new(version: MajorMinor, axis_segment_maps: Vec<SegmentMaps>) -> Self
pub fn new(version: MajorMinor, axis_segment_maps: Vec<SegmentMaps>) -> Self
Construct a new Avar
Trait Implementations§
source§impl FontWrite for Avar
impl FontWrite for Avar
source§fn write_into(&self, writer: &mut TableWriter)
fn write_into(&self, writer: &mut TableWriter)
Write our data and information about offsets into this TableWriter.
Auto Trait Implementations§
impl RefUnwindSafe for Avar
impl Send for Avar
impl Sync for Avar
impl Unpin for Avar
impl UnwindSafe for Avar
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
source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere U: FromObjRef<T>,
source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.