pub(crate) type CanvasFontContext = FontContext<FontCacheThread>;

Aliased Type§

struct CanvasFontContext {
    font_source: FontCacheThread,
    font_cache: HashMap<FontCacheKey, Option<Rc<RefCell<Font>, Global>>, RandomState>,
    font_template_cache: HashMap<FontTemplateCacheKey, Option<FontTemplateAndWebRenderFontKey>, RandomState>,
    font_group_cache: HashMap<FontGroupCacheKey, Rc<RefCell<FontGroup>, Global>, BuildHasherDefault<FnvHasher>>,
    epoch: usize,
}

Fields§

§font_source: FontCacheThread§font_cache: HashMap<FontCacheKey, Option<Rc<RefCell<Font>, Global>>, RandomState>§font_template_cache: HashMap<FontTemplateCacheKey, Option<FontTemplateAndWebRenderFontKey>, RandomState>§font_group_cache: HashMap<FontGroupCacheKey, Rc<RefCell<FontGroup>, Global>, BuildHasherDefault<FnvHasher>>§epoch: usize