pub struct RasterizedGlyph { /* private fields */ }Expand description
Grayscale coverage at physical-pixel resolution, relative to baseline zero. Coverage is linear alpha (0..255), not an sRGB intensity or premultiplied RGB.
Implementations§
Source§impl RasterizedGlyph
impl RasterizedGlyph
Sourcepub const fn width(&self) -> u32
pub const fn width(&self) -> u32
Physical bitmap width; zero for an empty outline such as a space.
Sourcepub const fn height(&self) -> u32
pub const fn height(&self) -> u32
Physical bitmap height; zero for an empty outline such as a space.
Sourcepub const fn bearing_x(&self) -> i32
pub const fn bearing_x(&self) -> i32
Left bitmap edge relative to the physical baseline origin; may be negative.
Sourcepub const fn bearing_y(&self) -> i32
pub const fn bearing_y(&self) -> i32
Top bitmap edge relative to the physical baseline origin, positive downward.
Sourcepub fn allocation_bytes(&self) -> usize
pub fn allocation_bytes(&self) -> usize
Owned coverage Vec capacity in bytes.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RasterizedGlyph
impl RefUnwindSafe for RasterizedGlyph
impl Send for RasterizedGlyph
impl Sync for RasterizedGlyph
impl Unpin for RasterizedGlyph
impl UnsafeUnpin for RasterizedGlyph
impl UnwindSafe for RasterizedGlyph
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