pub struct GlyphBitmap {
pub width: u32,
pub height: u32,
pub left: i32,
pub top: i32,
pub coverage: Vec<u8>,
}Expand description
A rasterized glyph: 8-bit coverage, row-major, width × height.
Fields§
§width: u32Width in pixels.
height: u32Height in pixels.
left: i32Offset of the bitmap’s left edge from the pen position.
top: i32Offset of the bitmap’s top edge from the baseline (negative = above).
coverage: Vec<u8>Coverage, 0..=255.
Trait Implementations§
Source§impl Clone for GlyphBitmap
impl Clone for GlyphBitmap
Source§impl Debug for GlyphBitmap
impl Debug for GlyphBitmap
Source§impl PartialEq for GlyphBitmap
impl PartialEq for GlyphBitmap
impl StructuralPartialEq for GlyphBitmap
Auto Trait Implementations§
impl Forget for GlyphBitmap
impl Freeze for GlyphBitmap
impl Move for GlyphBitmap
impl RefUnwindSafe for GlyphBitmap
impl Send for GlyphBitmap
impl Sync for GlyphBitmap
impl Unpin for GlyphBitmap
impl UnsafeUnpin for GlyphBitmap
impl UnwindSafe for GlyphBitmap
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