pub struct GlyphMetrics {
pub xmin: i32,
pub ymin: i32,
pub width: usize,
pub height: usize,
pub advance_width: f32,
}Expand description
Rasterized glyph metrics — deliberately the SAME shape/field names
fontdue::Metrics had (D127 rasterizer migration, 2026-08-03): every
consumer (canvas.rs’s CPU blit and GPU-atlas paths) reads .width/
.height/.xmin/.ymin/.advance_width off this — keeping the shape
identical meant the whole blit/atlas pipeline needed ZERO changes for
the fontdue -> swash swap, only this file (glyph PRODUCTION) changed.
Fields§
§xmin: i32§ymin: i32§width: usize§height: usize§advance_width: f32Trait Implementations§
Source§impl Clone for GlyphMetrics
impl Clone for GlyphMetrics
Source§fn clone(&self) -> GlyphMetrics
fn clone(&self) -> GlyphMetrics
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 moreimpl Copy for GlyphMetrics
Source§impl Debug for GlyphMetrics
impl Debug for GlyphMetrics
Source§impl Default for GlyphMetrics
impl Default for GlyphMetrics
Source§fn default() -> GlyphMetrics
fn default() -> GlyphMetrics
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for GlyphMetrics
impl RefUnwindSafe for GlyphMetrics
impl Send for GlyphMetrics
impl Sync for GlyphMetrics
impl Unpin for GlyphMetrics
impl UnsafeUnpin for GlyphMetrics
impl UnwindSafe for GlyphMetrics
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