pub struct FontManagerOptions {
pub default_family_name: Option<String>,
pub font_fallbacks: Option<Vec<FontFallback>>,
pub font_family_mappings: Option<HashMap<String, FontFamily>>,
}Expand description
Options to customize the behavior of the font manager.
Fields§
§default_family_name: Option<String>Gets or sets the default font family’s name.
font_fallbacks: Option<Vec<FontFallback>>Gets or sets the font fallbacks.
A fallback contains a family name and an optional UnicodeRange.
font_family_mappings: Option<HashMap<String, FontFamily>>Gets or sets the font family mappings.
A font family mapping is a dictionary that defines family names to be replaced by a different font family. Names are matched ignoring case.
Trait Implementations§
Source§impl Clone for FontManagerOptions
impl Clone for FontManagerOptions
Source§impl Debug for FontManagerOptions
impl Debug for FontManagerOptions
Auto Trait Implementations§
impl !Send for FontManagerOptions
impl !Sync for FontManagerOptions
impl Freeze for FontManagerOptions
impl RefUnwindSafe for FontManagerOptions
impl Unpin for FontManagerOptions
impl UnsafeUnpin for FontManagerOptions
impl UnwindSafe for FontManagerOptions
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
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more