Praeclarum.Graphics.Font.BoldUserFixedPitchFontOfSize C# (CSharp) Method

BoldUserFixedPitchFontOfSize() public static method

public static BoldUserFixedPitchFontOfSize ( int size ) : Font
size int
return Font
		public static Font BoldUserFixedPitchFontOfSize (int size) {
			if (size >= _boldUserFixedPitchFonts.Length) {
				return new Font ("Monospace", FontOptions.Bold, size);
			}
			else {
				var f = _boldUserFixedPitchFonts[size];
				if (f == null) {
					f = new Font ("Monospace", FontOptions.Bold, size);
					_boldUserFixedPitchFonts[size] = f;
				}
				return f;
			}
		}