Struct write_fonts::tables::gvar::Gvar
source · pub struct Gvar {
pub axis_count: u16,
pub shared_tuples: OffsetMarker<SharedTuples, WIDTH_32>,
pub glyph_variation_data_offsets: Vec<GlyphVariationData>,
}Expand description
The ‘gvar’ header
Fields§
§axis_count: u16The number of variation axes for this font. This must be the same number as axisCount in the ‘fvar’ table.
Offset from the start of this table to the shared tuple records.
glyph_variation_data_offsets: Vec<GlyphVariationData>Offsets from the start of the GlyphVariationData array to each GlyphVariationData table.
Implementations§
source§impl Gvar
impl Gvar
sourcepub fn new(variations: Vec<GlyphVariations>) -> Result<Self, GvarInputError>
pub fn new(variations: Vec<GlyphVariations>) -> Result<Self, GvarInputError>
Construct a gvar table from a vector of per-glyph variations.
Variations must be present for each glyph, but may be empty.
Trait Implementations§
source§impl FontWrite for Gvar
impl FontWrite for Gvar
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 Gvar
impl Send for Gvar
impl Sync for Gvar
impl Unpin for Gvar
impl UnwindSafe for Gvar
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.