pub struct FontStore { /* private fields */ }Implementations§
Source§impl FontStore
impl FontStore
pub fn new() -> Self
pub fn register_font(&mut self, registration: FontRegistration) -> Result<()>
pub fn register_family( &mut self, registration: FontFamilyRegistration, ) -> Result<()>
pub fn get_font(&self, descriptor: &FontDescriptor) -> Result<RegisteredFont>
pub async fn load(&self, descriptor: &FontDescriptor) -> Result<LoadedFont>
pub fn register_emoji_source(&mut self, source: EmojiSource)
pub fn emoji_source(&self) -> Option<&EmojiSource>
pub fn resolve_emoji_url(&self, emoji: &str) -> Option<String>
pub fn register_hyphenation_callback<F>(&mut self, callback: F)
pub fn hyphenate(&self, word: &str) -> Vec<String>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FontStore
impl !RefUnwindSafe for FontStore
impl Send for FontStore
impl Sync for FontStore
impl Unpin for FontStore
impl UnsafeUnpin for FontStore
impl !UnwindSafe for FontStore
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