pub enum FontFamily {
SansSerif,
Serif,
Monospace,
Named(&'static str),
}Expand description
A font family, as a style names it.
Copy, and Named holds a &'static str, so that a TextStyle stays Copy and can
be handed down a subtree by value like every other field. Family names come from
frus_text::add_font, which registers them for the life of the program, so a borrowed
name outliving the style is the normal case rather than a restriction.
Variants§
SansSerif
The application’s default sans-serif — what text gets when it says nothing.
Serif
A serif face, if the platform or the application has one.
Monospace
The registered monospaced family: code, keys, anything whose columns must line up.
Named(&'static str)
A family by name, as registered with frus_text::add_font.
Trait Implementations§
Source§impl Clone for FontFamily
impl Clone for FontFamily
Source§fn clone(&self) -> FontFamily
fn clone(&self) -> FontFamily
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 FontFamily
Source§impl Debug for FontFamily
impl Debug for FontFamily
impl Eq for FontFamily
Source§impl Hash for FontFamily
impl Hash for FontFamily
Source§impl PartialEq for FontFamily
impl PartialEq for FontFamily
impl StructuralPartialEq for FontFamily
Auto Trait Implementations§
impl Freeze for FontFamily
impl RefUnwindSafe for FontFamily
impl Send for FontFamily
impl Sync for FontFamily
impl Unpin for FontFamily
impl UnsafeUnpin for FontFamily
impl UnwindSafe for FontFamily
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