implementation added
[mono.git] / mcs / class / System.Drawing / System.Drawing / FontFamily.cs
1 //
2 // System.Drawing.FontFamily.cs
3 //
4 // Author:
5 //   Dennis Hayes (dennish@Raytek.com)
6 //   Alexandre Pigolkine (pigolkine@gmx.de)
7 //
8 // (C) 2002/2003 Ximian, Inc
9 //
10 using System;
11 using System.Drawing.Text;
12
13 namespace System.Drawing {
14         /// <summary>
15         /// Summary description for FontFamily.
16         /// </summary>
17         public class FontFamily {
18         
19                 string name;
20                 static FontFamily genericMonospace = null;
21                 static FontFamily genericSansSerif = null;
22                 static FontFamily genericSerif = null;
23                 
24                 public FontFamily(GenericFontFamilies genericFamily) {
25                         throw new NotImplementedException();
26                 }
27                 
28                 public FontFamily(string familyName) {
29                         name = familyName;
30                 }
31                 
32                 public FontFamily(string familyName, FontCollection collection) {
33                         name = familyName;
34                 }
35                 
36                 public string Name {
37                         get {
38                                 return name;
39                         }
40                 }
41                 
42                 public static FontFamily GenericMonospace {
43                         get {
44                                 if( genericMonospace == null) {
45                                         genericMonospace = new FontFamily("GenericMonospace");
46                                 }
47                                 return genericMonospace;
48                         }
49                 }
50                 
51                 public static FontFamily GenericSansSerif {
52                         get {
53                                 if( genericSansSerif == null) {
54                                         genericSansSerif = new FontFamily("GenericSansSerif");
55                                 }
56                                 return genericSansSerif;
57                         }
58                 }
59                 
60                 public static FontFamily GenericSerif {
61                         get {
62                                 if( genericSerif == null) {
63                                         genericSerif = new FontFamily("GenericSerif");
64                                 }
65                                 return genericSerif;
66                         }
67                 }
68         }
69 }