pub struct CharMetrics {
pub width: i32,
pub height: i32,
pub depth: i32,
pub italic: i32,
pub index: u32,
}Expand description
Metrics of one character.
Fields§
§width: i32Width (sp).
height: i32Height (sp).
depth: i32Depth (sp).
italic: i32Italic correction (sp).
index: u32Glyph index in the font file (for the backend).
Trait Implementations§
Source§impl Clone for CharMetrics
impl Clone for CharMetrics
impl Copy for CharMetrics
Source§impl Debug for CharMetrics
impl Debug for CharMetrics
Source§impl Default for CharMetrics
impl Default for CharMetrics
impl Eq for CharMetrics
Source§impl PartialEq for CharMetrics
impl PartialEq for CharMetrics
impl StructuralPartialEq for CharMetrics
Auto Trait Implementations§
impl Freeze for CharMetrics
impl RefUnwindSafe for CharMetrics
impl Send for CharMetrics
impl Sync for CharMetrics
impl Unpin for CharMetrics
impl UnsafeUnpin for CharMetrics
impl UnwindSafe for CharMetrics
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