Trait fonts::font_cache_thread::FontSource
source · pub trait FontSource: Clone {
// Required methods
fn find_matching_font_templates(
&self,
descriptor_to_match: Option<&FontDescriptor>,
font_family_name: &SingleFontFamily,
) -> Vec<FontTemplateRef>;
fn get_system_font_instance(
&self,
font_identifier: FontIdentifier,
size: Au,
flags: FontInstanceFlags,
) -> FontInstanceKey;
fn get_web_font(&self, data: Arc<Vec<u8>>, index: u32) -> FontKey;
fn get_web_font_instance(
&self,
font_key: FontKey,
size: f32,
flags: FontInstanceFlags,
) -> FontInstanceKey;
}
Required Methods§
fn find_matching_font_templates( &self, descriptor_to_match: Option<&FontDescriptor>, font_family_name: &SingleFontFamily, ) -> Vec<FontTemplateRef>
fn get_system_font_instance( &self, font_identifier: FontIdentifier, size: Au, flags: FontInstanceFlags, ) -> FontInstanceKey
fn get_web_font(&self, data: Arc<Vec<u8>>, index: u32) -> FontKey
fn get_web_font_instance( &self, font_key: FontKey, size: f32, flags: FontInstanceFlags, ) -> FontInstanceKey
Object Safety§
This trait is not object safe.