[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dotgnu-pnet-commits] pnetlib/System.Drawing/Toolkit IToolkit.cs, 1.18,
From: |
Rhys Weatherley <address@hidden> |
Subject: |
[Dotgnu-pnet-commits] pnetlib/System.Drawing/Toolkit IToolkit.cs, 1.18, 1.19 NullToolkit.cs, 1.9, 1.10 |
Date: |
Sun, 30 Nov 2003 05:50:42 +0000 |
Update of /cvsroot/dotgnu-pnet/pnetlib/System.Drawing/Toolkit
In directory subversions:/tmp/cvs-serv15747/System.Drawing/Toolkit
Modified Files:
IToolkit.cs NullToolkit.cs
Log Message:
Shift the creation of the default font into the toolkit so that it
can be made system-specific.
Index: NullToolkit.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/System.Drawing/Toolkit/NullToolkit.cs,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** NullToolkit.cs 20 Nov 2003 02:11:46 -0000 1.9
--- NullToolkit.cs 30 Nov 2003 05:50:40 -0000 1.10
***************
*** 131,134 ****
--- 131,141 ----
}
+ // Create the default system font on this platform.
+ public virtual Font CreateDefaultFont()
+ {
+ return new Font(new FontFamily
+ (GenericFontFamilies.SansSerif), 9.0f);
+ }
+
// Get the handle for the halftone palette. IntPtr.Zero if not
supported.
public virtual IntPtr GetHalftonePalette()
Index: IToolkit.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/System.Drawing/Toolkit/IToolkit.cs,v
retrieving revision 1.18
retrieving revision 1.19
diff -C2 -d -r1.18 -r1.19
*** IToolkit.cs 20 Nov 2003 02:11:46 -0000 1.18
--- IToolkit.cs 30 Nov 2003 05:50:40 -0000 1.19
***************
*** 88,91 ****
--- 88,94 ----
IToolkitFont CreateFont(Font font, float dpi);
+ // Create the default system font on this platform.
+ Font CreateDefaultFont();
+
// Create a toolkit image
IToolkitImage CreateImage(DotGNU.Images.Image image, int frame);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-pnet-commits] pnetlib/System.Drawing/Toolkit IToolkit.cs, 1.18, 1.19 NullToolkit.cs, 1.9, 1.10,
Rhys Weatherley <address@hidden> <=