1
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
2
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
5
using System.Collections;
8
namespace ICSharpCode.Reports.Core.Globals
11
/// Description of FontCache.
13
public class FontCache:IDisposable
15
Hashtable Fonts=new Hashtable();
22
protected virtual Font GetFont(string family, float size, FontStyle style)
24
string s=family+size.ToString(System.Globalization.CultureInfo.InvariantCulture)+((int)style).ToString(System.Globalization.CultureInfo.InvariantCulture);
27
return (Font)Fonts[s];
28
Font f=new Font(family,size,style);
34
public void Dispose ()
40
public void Dispose(bool disposing)
42
foreach(Font f in Fonts.Values)