Struct tailwind_css::FontSystem
source · 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 copy 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 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