Trait webrender_api::BlobImageResources
source · pub trait BlobImageResources {
// Required methods
fn get_font_data(&self, key: FontKey) -> Option<FontTemplate>;
fn get_font_instance_data(
&self,
key: FontInstanceKey,
) -> Option<FontInstanceData>;
}
Expand description
The resources exposed by the resource cache available for use by the blob rasterizer.
Required Methods§
sourcefn get_font_data(&self, key: FontKey) -> Option<FontTemplate>
fn get_font_data(&self, key: FontKey) -> Option<FontTemplate>
Returns the FontTemplate
for the given key.
sourcefn get_font_instance_data(
&self,
key: FontInstanceKey,
) -> Option<FontInstanceData>
fn get_font_instance_data( &self, key: FontInstanceKey, ) -> Option<FontInstanceData>
Returns the FontInstanceData
for the given key, if found.