pub struct GlyphImage {
pub width: u32,
pub height: u32,
pub left: i32,
pub top: i32,
pub data: Vec<u8>,
}Expand description
A rasterized glyph: A8 coverage (or normalized distance for SDF), plus
the placement of the bitmap’s top-left relative to the glyph origin
(left right of origin, top above the baseline — swash conventions).
Fields§
§width: u32§height: u32§left: i32§top: i32§data: Vec<u8>Auto Trait Implementations§
impl Freeze for GlyphImage
impl RefUnwindSafe for GlyphImage
impl Send for GlyphImage
impl Sync for GlyphImage
impl Unpin for GlyphImage
impl UnsafeUnpin for GlyphImage
impl UnwindSafe for GlyphImage
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