pub enum FontFamilyDefaultsPolicy {
None,
FillIfEmpty,
FillIfEmptyFromCatalogPrefix {
max: usize,
},
FillIfEmptyWithCuratedCandidates,
}Variants§
None
FillIfEmpty
FillIfEmptyFromCatalogPrefix
If any UI family list is empty, seed it from the head of the current font catalog.
This is primarily intended for Web/WASM bootstrap, where system font discovery is not available and we need a deterministic, minimal fallback without exploding settings to “all fonts”.
FillIfEmptyWithCuratedCandidates
If any UI family list is empty, seed it with a small curated list of common UI families.
This is primarily intended for Web/WASM bootstrap.
Trait Implementations§
Source§impl Clone for FontFamilyDefaultsPolicy
impl Clone for FontFamilyDefaultsPolicy
Source§fn clone(&self) -> FontFamilyDefaultsPolicy
fn clone(&self) -> FontFamilyDefaultsPolicy
Returns a duplicate of the value. Read more
1.0.0 · 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 FontFamilyDefaultsPolicy
impl Debug for FontFamilyDefaultsPolicy
Source§impl PartialEq for FontFamilyDefaultsPolicy
impl PartialEq for FontFamilyDefaultsPolicy
impl Copy for FontFamilyDefaultsPolicy
impl Eq for FontFamilyDefaultsPolicy
impl StructuralPartialEq for FontFamilyDefaultsPolicy
Auto Trait Implementations§
impl Freeze for FontFamilyDefaultsPolicy
impl RefUnwindSafe for FontFamilyDefaultsPolicy
impl Send for FontFamilyDefaultsPolicy
impl Sync for FontFamilyDefaultsPolicy
impl Unpin for FontFamilyDefaultsPolicy
impl UnsafeUnpin for FontFamilyDefaultsPolicy
impl UnwindSafe for FontFamilyDefaultsPolicy
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