2003-11-13 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
[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
15         public sealed class FontFamily : MarshalByRefObject, IDisposable {
16                 
17                 static FontFamily genericMonospace;
18                 static FontFamily genericSansSerif;
19                 static FontFamily genericSerif;
20
21                 string name;
22                 
23                 public FontFamily(GenericFontFamilies genericFamily) {
24                 }
25                 
26                 public FontFamily(string familyName) {
27                         name = familyName;
28                 }
29                 
30                 public FontFamily(string familyName, FontCollection collection) {
31                         name = familyName;
32                 }
33                 
34                 public string Name {
35                         get {
36                                 return name;
37                         }
38                 }
39                 
40                 public static FontFamily GenericMonospace {
41                         get {
42                                 if( genericMonospace == null) {
43                                         genericMonospace = new FontFamily(GenericFontFamilies.Monospace);
44                                 }
45                                 return genericMonospace;
46                         }
47                 }
48                 
49                 public static FontFamily GenericSansSerif {
50                         get {
51                                 if( genericSansSerif == null) {
52                                         genericSansSerif = new FontFamily(GenericFontFamilies.SansSerif);
53                                 }
54                                 return genericSansSerif;
55                         }
56                 }
57                 
58                 public static FontFamily GenericSerif {
59                         get {
60                                 if( genericSerif == null) {
61                                         genericSerif = new FontFamily(GenericFontFamilies.Serif);
62                                 }
63                                 return genericSerif;
64                         }
65                 }
66                 
67                 public int GetCellAscent (FontStyle style) {
68                         throw new NotImplementedException ();
69                 }
70                 
71                 public int GetCellDescent (FontStyle style) {
72                         throw new NotImplementedException ();
73                 }
74                 
75                 public int GetEmHeight (FontStyle style) {
76                         throw new NotImplementedException ();
77                 }
78                 
79                 public int GetLineSpacing (FontStyle style) {
80                         throw new NotImplementedException ();
81                 }
82                 
83                 public bool IsStyleAvailable (FontStyle style){
84                         throw new NotImplementedException ();
85                 }
86                 
87                 public void Dispose() {
88                 }
89         }
90 }