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.
source§fn table_type(&self) -> TableType
fn table_type(&self) -> TableType
The type of this table. Read more
source§impl Hash for TupleVariationHeader
impl Hash for TupleVariationHeader
source§impl Ord for TupleVariationHeader
impl Ord for TupleVariationHeader
source§fn cmp(&self, other: &TupleVariationHeader) -> Ordering
fn cmp(&self, other: &TupleVariationHeader) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for TupleVariationHeader
impl PartialEq for TupleVariationHeader
source§fn eq(&self, other: &TupleVariationHeader) -> bool
fn eq(&self, other: &TupleVariationHeader) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for TupleVariationHeader
impl PartialOrd for TupleVariationHeader
source§fn partial_cmp(&self, other: &TupleVariationHeader) -> Option<Ordering>
fn partial_cmp(&self, other: &TupleVariationHeader) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§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
impl Eq for TupleVariationHeader
impl StructuralPartialEq for TupleVariationHeader
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
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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.