pub struct FontSystem { /* private fields */ }Implementations§
Source§impl FontSystem
 
impl FontSystem
Source§impl FontSystem
 
impl FontSystem
pub fn get_size(&self, name: &str) -> FontSize
Sourcepub fn insert_size(
    &mut self,
    name: impl Into<String>,
    size: FontSize,
) -> Option<FontSize>
 
pub fn insert_size( &mut self, name: impl Into<String>, size: FontSize, ) -> Option<FontSize>
Insert a new font size
Sourcepub fn get_family(&self, name: &str) -> String
 
pub fn get_family(&self, name: &str) -> String
Get the named font family,
never fail, fallback to the serif, sans-serif, monospace
Sourcepub fn insert_family(
    &mut self,
    name: impl Into<String>,
    family: &str,
) -> Option<Vec<String>>
 
pub fn insert_family( &mut self, name: impl Into<String>, family: &str, ) -> Option<Vec<String>>
Insert a new font family
pub fn get_tracking(&self, name: &str) -> f32
Trait Implementations§
Source§impl Clone for FontSystem
 
impl Clone for FontSystem
Source§fn clone(&self) -> FontSystem
 
fn clone(&self) -> FontSystem
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 FontSystem
 
impl Debug for FontSystem
Source§impl Default for FontSystem
 
impl Default for FontSystem
Source§fn default() -> FontSystem
 
fn default() -> FontSystem
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for FontSystem
impl RefUnwindSafe for FontSystem
impl Send for FontSystem
impl Sync for FontSystem
impl Unpin for FontSystem
impl UnwindSafe for FontSystem
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> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
Source§impl<T> IntoEither for T
 
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
 
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
 
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more