[Mono-winforms-list] [PATCH] Theme.DefaultFont
Max de Lavenne
max at tfbc.com
Fri Dec 29 13:10:10 EST 2006
8.25 is a good idea. On Windows, a font of size 8 will look really weird in
comparison to 8.25, don't ask why, but 8.25 looks right.
Actually, it would be nice if the default font could be Tahoma 8.25 instead
of Microsoft Sans Serif 8.25, because the standard windows development
guidelines recommend using Tahoma, and all applications developed by
Microsoft use Tahoma 8.25 as a default. I spend my time resetting the form
fonts to Tahoma on every single new dialog I develop. Microsoft Sans Serif
should be eradicated forever from all operating systems, so much it's an
From: mono-winforms-list-bounces at lists.ximian.com
[mailto:mono-winforms-list-bounces at lists.ximian.com] On Behalf Of Chris
Sent: Friday, December 29, 2006 10:07 AM
To: Gert Driesen
Cc: mono-winforms-list at lists.ximian.com
Subject: Re: [Mono-winforms-list] [PATCH] Theme.DefaultFont
I don't really know if there's any historical significance to using 8
instead of 8.25. I can't imagine there is. anyone else know?
The patch looks good to me, aside from one minor change - there's no need to
keep the readonly modifier on default_font if it's private.
Please, commit. Thanks much.
On Fri, 2006-12-29 at 14:11 +0100, Gert Driesen wrote:
> The attached patch makes a small change to Theme (and derived classes)
> to make it more compatible with MS (see included unit tests).
> On both the 1.0 and 2.0 profile, Theme.DefaultFont is now MS Sans
> 8.25 (instead of 8). This matches Control.Font and
> SystemFonts.DefaultFont on MS.
> On the 2.0 profile, Theme.DefaultFont is initialized with
> I modified the accessibility of the default_font field to private,
> since Theme.DefaultFont is virtual anyway.
> Let me know if it's ok to commit.
> Mono-winforms-list maillist - Mono-winforms-list at lists.ximian.com
Mono-winforms-list maillist - Mono-winforms-list at lists.ximian.com
More information about the Mono-winforms-list