Struct write_fonts::tables::fvar::InstanceRecord
source · pub struct InstanceRecord {
pub subfamily_name_id: NameId,
pub flags: u16,
pub coordinates: Vec<Fixed>,
pub post_script_name_id: Option<NameId>,
}Expand description
The InstanceRecord
Fields§
§subfamily_name_id: NameIdThe name ID for entries in the ‘name’ table that provide subfamily names for this instance.
flags: u16Reserved for future use — set to 0.
coordinates: Vec<Fixed>The coordinates array for this instance.
post_script_name_id: Option<NameId>Optional. The name ID for entries in the ‘name’ table that provide PostScript names for this instance.
Trait Implementations§
source§impl Clone for InstanceRecord
impl Clone for InstanceRecord
source§fn clone(&self) -> InstanceRecord
fn clone(&self) -> InstanceRecord
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 InstanceRecord
impl Debug for InstanceRecord
source§impl Default for InstanceRecord
impl Default for InstanceRecord
source§fn default() -> InstanceRecord
fn default() -> InstanceRecord
Returns the “default value” for a type. Read more
source§impl FontWrite for InstanceRecord
impl FontWrite for InstanceRecord
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§impl<'a> FromObjRef<InstanceRecord<'a>> for InstanceRecord
impl<'a> FromObjRef<InstanceRecord<'a>> for InstanceRecord
source§fn from_obj_ref(from: &InstanceRecord<'a>, _data: FontData<'_>) -> Self
fn from_obj_ref(from: &InstanceRecord<'a>, _data: FontData<'_>) -> Self
Convert
from to an instance of Self, using the provided data to resolve offsets.source§impl PartialEq<InstanceRecord> for InstanceRecord
impl PartialEq<InstanceRecord> for InstanceRecord
source§fn eq(&self, other: &InstanceRecord) -> bool
fn eq(&self, other: &InstanceRecord) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Validate for InstanceRecord
impl Validate for InstanceRecord
source§fn validate_impl(&self, _ctx: &mut ValidationCtx)
fn validate_impl(&self, _ctx: &mut ValidationCtx)
Validate this table. Read more
impl Eq for InstanceRecord
impl StructuralEq for InstanceRecord
impl StructuralPartialEq for InstanceRecord
Auto Trait Implementations§
impl RefUnwindSafe for InstanceRecord
impl Send for InstanceRecord
impl Sync for InstanceRecord
impl Unpin for InstanceRecord
impl UnwindSafe for InstanceRecord
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.