/** * Returns the FontBox font associated with the given FontInfo. */ public BaseFont GetFont(FontInfo info) { return(cache.TryGetValue(info, out BaseFont reference) ? reference : null); }
/** * Adds the given FontBox font to the cache. */ public void AddFont(FontInfo info, BaseFont font) { cache[info] = font; }