Trait fonts::font_context::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 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 FontContextWebFontMethods for Arc<FontContext>

Implementors§