Struct write_fonts::tables::glyf::Transform
source · pub struct Transform {
pub xx: F2Dot14,
pub yx: F2Dot14,
pub xy: F2Dot14,
pub yy: F2Dot14,
}Expand description
Transform for a composite component.
Fields§
§xx: F2Dot14X scale factor.
yx: F2Dot14YX skew factor.
xy: F2Dot14XY skew factor.
yy: F2Dot14Y scale factor.
Implementations§
source§impl Transform
impl Transform
sourcepub fn compute_flags(&self) -> CompositeGlyphFlags
pub fn compute_flags(&self) -> CompositeGlyphFlags
Compute the flags that describe this transform
Trait Implementations§
source§impl FontWrite for Transform
impl FontWrite for Transform
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 PartialEq for Transform
impl PartialEq for Transform
impl Copy for Transform
impl Eq for Transform
impl StructuralPartialEq for Transform
Auto Trait Implementations§
impl RefUnwindSafe for Transform
impl Send for Transform
impl Sync for Transform
impl Unpin for Transform
impl UnwindSafe for Transform
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> 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.