pub struct RasterMetrics {
pub width: u16,
pub height: u16,
pub bearing_x: i16,
pub bearing_y: i16,
}Expand description
Metadata for a rasterized glyph (no pixel data).
Returned by rasterization to communicate bitmap dimensions and bearing offsets.
Fields§
§width: u16Width of the rasterized glyph (pixels).
height: u16Height of the rasterized glyph (pixels).
bearing_x: i16Horizontal bearing (offset from glyph origin to left edge of bitmap).
bearing_y: i16Vertical bearing (offset from glyph origin to top edge of bitmap).
Trait Implementations§
Source§impl Clone for RasterMetrics
impl Clone for RasterMetrics
Source§fn clone(&self) -> RasterMetrics
fn clone(&self) -> RasterMetrics
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RasterMetrics
impl Debug for RasterMetrics
impl Copy for RasterMetrics
Auto Trait Implementations§
impl Freeze for RasterMetrics
impl RefUnwindSafe for RasterMetrics
impl Send for RasterMetrics
impl Sync for RasterMetrics
impl Unpin for RasterMetrics
impl UnsafeUnpin for RasterMetrics
impl UnwindSafe for RasterMetrics
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