pub struct NativeSystemFont { /* private fields */ }Expand description
Cross-platform native system font provider backed by direct OS font APIs.
Implementations§
Source§impl NativeSystemFont
Construction and mode helpers for NativeSystemFont.
impl NativeSystemFont
Construction and mode helpers for NativeSystemFont.
Sourcepub fn system() -> Self
pub fn system() -> Self
Creates a NativeSystemFont probing the active operating system’s native font engine.
§Returns
Self- Native OS font provider with automatic deterministic fallback.
Sourcepub fn deterministic() -> Self
pub fn deterministic() -> Self
Creates a deterministic cross-platform font provider guaranteeing identical pixels on every OS.
§Returns
Self- Deterministic bitmap/stroke font provider.
Sourcepub fn thread_fallback_font_loads() -> usize
pub fn thread_fallback_font_loads() -> usize
Returns the number of lazy native fallback font loads (such as CJK or symbol cascades) performed on the current thread.
§Returns
usize- Cumulative lazy fallback font load count on this thread.
Source§impl NativeSystemFont
impl NativeSystemFont
pub fn get_info(&self) -> &SystemFontInfo
pub fn get_deterministic_only(&self) -> bool
Trait Implementations§
Source§impl Clone for NativeSystemFont
impl Clone for NativeSystemFont
Source§impl Debug for NativeSystemFont
impl Debug for NativeSystemFont
Source§impl Default for NativeSystemFont
Default NativeSystemFont uses deterministic cross-platform rasterization.
impl Default for NativeSystemFont
Default NativeSystemFont uses deterministic cross-platform rasterization.
Source§impl SystemFontProvider for NativeSystemFont
SystemFontProvider implementation delegating to OS native APIs with deterministic fallback.
impl SystemFontProvider for NativeSystemFont
SystemFontProvider implementation delegating to OS native APIs with deterministic fallback.
Source§fn font_info(&self) -> SystemFontInfo
fn font_info(&self) -> SystemFontInfo
Auto Trait Implementations§
impl Forget for NativeSystemFont
impl Freeze for NativeSystemFont
impl Move for NativeSystemFont
impl RefUnwindSafe for NativeSystemFont
impl Send for NativeSystemFontwhere
RawVecInner: Send,
impl Sync for NativeSystemFontwhere
RawVecInner: Sync,
impl Unpin for NativeSystemFont
impl UnsafeUnpin for NativeSystemFont
impl UnwindSafe for NativeSystemFontwhere
RawVecInner: UnwindSafe,
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