Struct cosmic_text::FontSystem
source · [−]pub struct FontSystem<'a> {
pub locale: String,
pub db: Database,
pub font_cache: Mutex<HashMap<ID, Option<Arc<Font<'a>>>>>,
pub font_matches_cache: Mutex<HashMap<Attrs<'a>, Arc<FontMatches<'a>>>>,
}
Expand description
Access system fonts
Fields
locale: String
db: Database
font_cache: Mutex<HashMap<ID, Option<Arc<Font<'a>>>>>
font_matches_cache: Mutex<HashMap<Attrs<'a>, Arc<FontMatches<'a>>>>
Implementations
sourceimpl<'a> FontSystem<'a>
impl<'a> FontSystem<'a>
Auto Trait Implementations
impl<'a> !RefUnwindSafe for FontSystem<'a>
impl<'a> Send for FontSystem<'a>
impl<'a> Sync for FontSystem<'a>
impl<'a> Unpin for FontSystem<'a>
impl<'a> !UnwindSafe for FontSystem<'a>
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