pub struct Component {
pub glyph: GlyphId,
pub flags: u16,
pub args: (i32, i32),
pub transform: [f32; 4],
}Expand description
One component of a composite glyph.
Fields§
§glyph: GlyphIdReferenced glyph.
flags: u16Raw flag word.
args: (i32, i32)Arguments: x/y offsets (font units) when
flags & ARGS_ARE_XY_VALUES, else point indices.
transform: [f32; 4]2x2 transform (a b c d): x' = a*x + c*y + e.
Implementations§
Trait Implementations§
impl Copy for Component
impl StructuralPartialEq for Component
Auto Trait Implementations§
impl Freeze for Component
impl RefUnwindSafe for Component
impl Send for Component
impl Sync for Component
impl Unpin for Component
impl UnsafeUnpin for Component
impl UnwindSafe for Component
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