pub struct Settings {
pub default_font: Font,
pub default_text_size: Pixels,
pub metrics_hinting: bool,
}Expand description
The settings of a Renderer.
Fields§
§default_font: FontThe default Font to use.
default_text_size: PixelsThe default size of text.
By default, it will be set to 16.0.
metrics_hinting: boolWhether the Renderer should perform metrics hinting.
By default, it is enabled.
Trait Implementations§
impl Copy for Settings
impl StructuralPartialEq for Settings
Auto Trait Implementations§
impl Freeze for Settings
impl RefUnwindSafe for Settings
impl Send for Settings
impl Sync for Settings
impl Unpin for Settings
impl UnsafeUnpin for Settings
impl UnwindSafe for Settings
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