pub struct FontFamilyStack {
pub primary: &'static str,
pub fallbacks: &'static [&'static str],
}Expand description
An ordered, theme-owned font-family preference list.
Family names may be concrete installed families (for example, Segoe UI)
or CSS-compatible generic aliases such as ui-sans-serif, system-ui,
sans-serif, ui-serif, and ui-monospace. The text system resolves the
first available family for the active platform. An explicitly registered
FontHandle on TextStyle still takes precedence over this stack.
Fields§
§primary: &'static str§fallbacks: &'static [&'static str]Implementations§
Trait Implementations§
Source§impl Clone for FontFamilyStack
impl Clone for FontFamilyStack
impl Copy for FontFamilyStack
Source§impl Debug for FontFamilyStack
impl Debug for FontFamilyStack
impl Eq for FontFamilyStack
Source§impl Hash for FontFamilyStack
impl Hash for FontFamilyStack
Source§impl PartialEq for FontFamilyStack
impl PartialEq for FontFamilyStack
impl StructuralPartialEq for FontFamilyStack
Auto Trait Implementations§
impl Forget for FontFamilyStack
impl Freeze for FontFamilyStack
impl Move for FontFamilyStack
impl RefUnwindSafe for FontFamilyStack
impl Send for FontFamilyStack
impl Sync for FontFamilyStack
impl Unpin for FontFamilyStack
impl UnsafeUnpin for FontFamilyStack
impl UnwindSafe for FontFamilyStack
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