pub struct FontMetrics {
pub line_height: u32,
pub ascent: u32,
pub space_width: u32,
}Expand description
Font metrics the layout engine needs before it measures anything.
Fields§
§line_height: u32Distance from one baseline to the next.
ascent: u32Baseline offset from the top of the line box.
space_width: u32Width of a space, used for the indent column’s minimum.
Trait Implementations§
Source§impl Clone for FontMetrics
impl Clone for FontMetrics
impl Copy for FontMetrics
Source§impl Debug for FontMetrics
impl Debug for FontMetrics
Source§impl Default for FontMetrics
impl Default for FontMetrics
Source§impl PartialEq for FontMetrics
impl PartialEq for FontMetrics
impl StructuralPartialEq for FontMetrics
Auto Trait Implementations§
impl Freeze for FontMetrics
impl RefUnwindSafe for FontMetrics
impl Send for FontMetrics
impl Sync for FontMetrics
impl Unpin for FontMetrics
impl UnsafeUnpin for FontMetrics
impl UnwindSafe for FontMetrics
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