Struct write_fonts::tables::variations::TupleVariationHeader
source · pub struct TupleVariationHeader {
pub variation_data_size: u16,
pub tuple_index: TupleIndex,
pub peak_tuple: Vec<F2Dot14>,
pub intermediate_start_tuple: Vec<F2Dot14>,
pub intermediate_end_tuple: Vec<F2Dot14>,
}Expand description
Fields§
§variation_data_size: u16The size in bytes of the serialized data for this tuple variation table.
tuple_index: TupleIndexA packed field. The high 4 bits are flags (see below). The low 12 bits are an index into a shared tuple records array.
peak_tuple: Vec<F2Dot14>Peak tuple record for this tuple variation table — optional, determined by flags in the tupleIndex value. Note that this must always be included in the ‘cvar’ table.
intermediate_start_tuple: Vec<F2Dot14>Intermediate start tuple record for this tuple variation table — optional, determined by flags in the tupleIndex value.
intermediate_end_tuple: Vec<F2Dot14>Intermediate end tuple record for this tuple variation table — optional, determined by flags in the tupleIndex value.
Implementations§
Trait Implementations§
source§impl Clone for TupleVariationHeader
impl Clone for TupleVariationHeader
source§fn clone(&self) -> TupleVariationHeader
fn clone(&self) -> TupleVariationHeader
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for TupleVariationHeader
impl Debug for TupleVariationHeader
source§impl Default for TupleVariationHeader
impl Default for TupleVariationHeader
source§fn default() -> TupleVariationHeader
fn default() -> TupleVariationHeader
Returns the “default value” for a type. Read more
source§impl FontWrite for TupleVariationHeader
impl FontWrite for TupleVariationHeader
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
source§impl Validate for TupleVariationHeader
impl Validate for TupleVariationHeader
source§fn validate_impl(&self, _ctx: &mut ValidationCtx)
fn validate_impl(&self, _ctx: &mut ValidationCtx)
Validate this table. Read more
Auto Trait Implementations§
impl RefUnwindSafe for TupleVariationHeader
impl Send for TupleVariationHeader
impl Sync for TupleVariationHeader
impl Unpin for TupleVariationHeader
impl UnwindSafe for TupleVariationHeader
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.