dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dotgnu-pnet-commits] pnetlib/System.Drawing.Xsharp DrawingToolkit.cs, 1


From: Rhys Weatherley <address@hidden>
Subject: [Dotgnu-pnet-commits] pnetlib/System.Drawing.Xsharp DrawingToolkit.cs, 1.20, 1.21
Date: Sun, 30 Nov 2003 05:50:42 +0000

Update of /cvsroot/dotgnu-pnet/pnetlib/System.Drawing.Xsharp
In directory subversions:/tmp/cvs-serv15747/System.Drawing.Xsharp

Modified Files:
        DrawingToolkit.cs 
Log Message:


Shift the creation of the default font into the toolkit so that it
can be made system-specific.


Index: DrawingToolkit.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/System.Drawing.Xsharp/DrawingToolkit.cs,v
retrieving revision 1.20
retrieving revision 1.21
diff -C2 -d -r1.20 -r1.21
*** DrawingToolkit.cs   25 Nov 2003 22:24:45 -0000      1.20
--- DrawingToolkit.cs   30 Nov 2003 05:50:40 -0000      1.21
***************
*** 283,286 ****
--- 283,294 ----
                        }
  
+       // Create the default system font on this platform.
+       public System.Drawing.Font CreateDefaultFont()
+                       {
+                               // X applications typically use a 12pt font by 
default.
+                               return new System.Drawing.Font
+                                       (new 
FontFamily(GenericFontFamilies.SansSerif), 12.0f);
+                       }
+ 
        // Get the handle for the halftone palette.  IntPtr.Zero if not 
supported.
        public IntPtr GetHalftonePalette()





reply via email to

[Prev in Thread] Current Thread [Next in Thread]