Struct write_fonts::tables::fvar::Fvar
source · pub struct Fvar {
pub version: MajorMinor,
pub axis_instance_arrays: OffsetMarker<AxisInstanceArrays>,
pub axis_count: u16,
pub instance_count: u16,
}Expand description
The fvar (Font Variations) table
Fields§
§version: MajorMinorMajor version number of the font variations table — set to 1. Minor version number of the font variations table — set to 0.
axis_instance_arrays: OffsetMarker<AxisInstanceArrays>Offset in bytes from the beginning of the table to the start of the VariationAxisRecord array. The InstanceRecord array directly follows.
axis_count: u16The number of variation axes in the font (the number of records in the axes array).
instance_count: u16The number of named instances defined in the font (the number of records in the instances array).
Implementations§
source§impl Fvar
impl Fvar
sourcepub fn new(
version: MajorMinor,
axis_instance_arrays: AxisInstanceArrays,
axis_count: u16,
instance_count: u16
) -> Self
pub fn new( version: MajorMinor, axis_instance_arrays: AxisInstanceArrays, axis_count: u16, instance_count: u16 ) -> Self
Construct a new Fvar
Trait Implementations§
source§impl FontWrite for Fvar
impl FontWrite for Fvar
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.
fn name(&self) -> &'static str
Auto Trait Implementations§
impl RefUnwindSafe for Fvar
impl Send for Fvar
impl Sync for Fvar
impl Unpin for Fvar
impl UnwindSafe for Fvar
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.