pub struct MonospaceFonts {
pub advance: f32,
}Expand description
A font source that pretends every glyph is the same width.
For tests, and for laying out without a real backend. Each character is
advance times the font size wide; the line box is 1.25 times the font
size high unless the style says otherwise.
Fields§
§advance: f32Trait Implementations§
Source§impl Clone for MonospaceFonts
impl Clone for MonospaceFonts
Source§fn clone(&self) -> MonospaceFonts
fn clone(&self) -> MonospaceFonts
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 MonospaceFonts
impl Debug for MonospaceFonts
Source§impl Default for MonospaceFonts
impl Default for MonospaceFonts
Source§impl Fonts for MonospaceFonts
impl Fonts for MonospaceFonts
Auto Trait Implementations§
impl Freeze for MonospaceFonts
impl RefUnwindSafe for MonospaceFonts
impl Send for MonospaceFonts
impl Sync for MonospaceFonts
impl Unpin for MonospaceFonts
impl UnsafeUnpin for MonospaceFonts
impl UnwindSafe for MonospaceFonts
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