fonts

Trait FontContextWebFontMethods

Source
pub trait FontContextWebFontMethods {
    // Required methods
    fn add_all_web_fonts_from_stylesheet(
        &self,
        webview_id: WebViewId,
        stylesheet: &DocumentStyleSheet,
        guard: &SharedRwLockReadGuard<'_>,
        device: &Device,
        finished_callback: StylesheetWebFontLoadFinishedCallback,
    ) -> usize;
    fn load_web_font_for_script(
        &self,
        webview_id: Option<WebViewId>,
        source_list: SourceList,
        descriptors: CSSFontFaceDescriptors,
        finished_callback: ScriptWebFontLoadFinishedCallback,
    );
    fn add_template_to_font_context(
        &self,
        family_name: LowercaseFontFamilyName,
        font_template: FontTemplate,
    );
    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§