root/plot/Pybrary.Plot/FontDescription.cs

Revision 746, 0.7 kB (checked in by mfenniak, 2 years ago)

--

Line 
1 using System;
2 using System.Collections.Generic;
3 using System.Text;
4 using System.Drawing;
5
6 namespace Pybrary.Plot
7 {
8     public class FontDescription : BrushDescription
9     {
10         private string familyName = "Arial";
11         private FontStyle style = FontStyle.Regular;
12         private float size = 12;
13
14         public FontDescription(string familyName, float size, FontStyle style)
15             : base(Color.Black)
16         {
17             this.familyName = familyName;
18             this.size = size;
19             this.style = style;
20         }
21
22         public Font CreateFont()
23         {
24             return new Font(familyName, size, style);
25         }
26     }
27 }
Note: See TracBrowser for help on using the browser.