pub struct SystemFontResolver;Expand description
System font fallback cascade resolver across Linux, macOS, and Windows.
Implementations§
Source§impl SystemFontResolver
impl SystemFontResolver
Sourcepub fn default_chain_for_generic(family: GenericFontFamily) -> Vec<String>
pub fn default_chain_for_generic(family: GenericFontFamily) -> Vec<String>
Resolves default system font chain for generic families on the current OS.
Sourcepub fn chain_for_platform(
family: GenericFontFamily,
platform: OsPlatform,
) -> Vec<String>
pub fn chain_for_platform( family: GenericFontFamily, platform: OsPlatform, ) -> Vec<String>
Resolves system font chain for a specific OS platform.
Sourcepub fn parse_font_family_cascade(css_value: &str) -> Vec<String>
pub fn parse_font_family_cascade(css_value: &str) -> Vec<String>
Parses a CSS font-family property value and returns an ordered cascade of resolved font names.
Trait Implementations§
Source§impl Clone for SystemFontResolver
impl Clone for SystemFontResolver
Auto Trait Implementations§
impl Forget for SystemFontResolver
impl Freeze for SystemFontResolver
impl Move for SystemFontResolver
impl RefUnwindSafe for SystemFontResolver
impl Send for SystemFontResolver
impl Sync for SystemFontResolver
impl Unpin for SystemFontResolver
impl UnsafeUnpin for SystemFontResolver
impl UnwindSafe for SystemFontResolver
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