pub struct GlyphBitmap {
pub width: u32,
pub height: u32,
pub left: i32,
pub top: i32,
pub coverage: Vec<u8>,
}Expand description
An 8-bit coverage bitmap of one glyph, positioned relative to the pen.
Fields§
§width: u32Width in pixels; 0 for glyphs without ink (spaces).
height: u32Height in pixels; 0 for glyphs without ink.
left: i32Offset from the pen position to the bitmap’s left edge, in pixels.
top: i32Offset from the baseline to the bitmap’s top edge, in pixels (negative = above).
coverage: Vec<u8>Row-major coverage, width bytes per row, 0 (none) to 255 (full).
Trait Implementations§
Source§impl Clone for GlyphBitmap
impl Clone for GlyphBitmap
Source§impl Debug for GlyphBitmap
impl Debug for GlyphBitmap
Source§impl Default for GlyphBitmap
impl Default for GlyphBitmap
impl Eq for GlyphBitmap
Source§impl PartialEq for GlyphBitmap
impl PartialEq for GlyphBitmap
impl StructuralPartialEq for GlyphBitmap
Auto Trait Implementations§
impl Freeze 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