Struct cosmic_text::FontSystem
source · pub struct FontSystem(_);
Expand description
Access system fonts
Implementations
sourceimpl FontSystem
impl FontSystem
sourcepub fn new() -> Self
pub fn new() -> Self
Create a new FontSystem
, that allows access to any installed system fonts
pub fn locale(&self) -> &str
pub fn db(&self) -> &Database
pub fn get_font<'a>(&'a self, id: ID) -> Option<Arc<Font<'a>>>
pub fn get_font_matches<'a>(&'a self, attrs: Attrs<'_>) -> Arc<FontMatches<'a>>
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more