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