Trait fonts::FontContextWebFontMethods

source ·
pub trait FontContextWebFontMethods {
    // Required methods
    fn add_all_web_fonts_from_stylesheet(
        &self,
        stylesheet: &DocumentStyleSheet,
        guard: &SharedRwLockReadGuard<'_>,
        device: &Device,
        finished_callback: WebFontLoadFinishedCallback,
        synchronous: bool,
    ) -> usize;
    fn process_next_web_font_source(
        &self,
        web_font_download_state: WebFontDownloadState,
    );
    fn remove_all_web_fonts_from_stylesheet(
        &self,
        stylesheet: &DocumentStyleSheet,
    );
    fn collect_unused_webrender_resources(
        &self,
        all: bool,
    ) -> (Vec<FontKey>, Vec<FontInstanceKey>);
}

Required Methods§

Implementations on Foreign Types§

source§

impl<S: FontSource + Send + 'static> FontContextWebFontMethods for Arc<FontContext<S>>

Implementors§