#[repr(C)]pub enum FontFamily {
System = 0,
Rounded = 1,
Serif = 2,
Monospace = 3,
Custom = 4,
}Expand description
A cross-platform font family. System/Rounded/Serif/Monospace map to each platform’s
nearest system font design. Custom = the app’s mobiler.toml [fonts], synced into the shells
by the CLI (mobiler fonts sync, also run by build/dev): the display family for titles and
subtitles, the body family for the rest; a role without files falls back to the system font.
System ≈ the current look.
Variants§
Trait Implementations§
Source§impl Clone for FontFamily
impl Clone for FontFamily
impl Copy for FontFamily
Source§impl Debug for FontFamily
impl Debug for FontFamily
Source§impl<'de> Deserialize<'de> for FontFamily
impl<'de> Deserialize<'de> for FontFamily
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for FontFamily
Source§impl<'ʄ> Facet<'ʄ> for FontFamily
impl<'ʄ> Facet<'ʄ> for FontFamily
Source§impl PartialEq for FontFamily
impl PartialEq for FontFamily
Source§impl Serialize for FontFamily
impl Serialize 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