2 // System.Drawing.FontFamily.cs
5 // Dennis Hayes (dennish@Raytek.com)
6 // Alexandre Pigolkine (pigolkine@gmx.de)
8 // (C) 2002/2003 Ximian, Inc
11 using System.Drawing.Text;
13 namespace System.Drawing {
15 public sealed class FontFamily : MarshalByRefObject, IDisposable {
17 static FontFamily genericMonospace;
18 static FontFamily genericSansSerif;
19 static FontFamily genericSerif;
23 public FontFamily(GenericFontFamilies genericFamily) {
26 public FontFamily(string familyName) {
30 public FontFamily(string familyName, FontCollection collection) {
40 public static FontFamily GenericMonospace {
42 if( genericMonospace == null) {
43 genericMonospace = new FontFamily(GenericFontFamilies.Monospace);
45 return genericMonospace;
49 public static FontFamily GenericSansSerif {
51 if( genericSansSerif == null) {
52 genericSansSerif = new FontFamily(GenericFontFamilies.SansSerif);
54 return genericSansSerif;
58 public static FontFamily GenericSerif {
60 if( genericSerif == null) {
61 genericSerif = new FontFamily(GenericFontFamilies.Serif);
67 public int GetCellAscent (FontStyle style) {
68 throw new NotImplementedException ();
71 public int GetCellDescent (FontStyle style) {
72 throw new NotImplementedException ();
75 public int GetEmHeight (FontStyle style) {
76 throw new NotImplementedException ();
79 public int GetLineSpacing (FontStyle style) {
80 throw new NotImplementedException ();
83 public bool IsStyleAvailable (FontStyle style){
84 throw new NotImplementedException ();
87 public void Dispose() {