Skip to main content

build_font_cache_for_options

Function build_font_cache_for_options 

Source
pub fn build_font_cache_for_options(
    fonts: &BTreeMap<String, Vec<u8>>,
    families: Option<&[&str]>,
) -> Arc<FcFontCache>
Expand description

Build a font cache suitable for use with XmlRenderOptions::font_pool.

Deprecated: prefer build_font_pool which also shares parsed fonts. This function only builds the fontconfig metadata cache.