[Mono-bugs] [Bug 480760] New: System.Drawing.SystemFonts do not match .Net

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sat Feb 28 17:21:40 EST 2009


https://bugzilla.novell.com/show_bug.cgi?id=480760


           Summary: System.Drawing.SystemFonts do not match .Net
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.4.x
          Platform: x86-64
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Sys.Drawing.
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: stapostol at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


Created an attachment (id=276211)
 --> (https://bugzilla.novell.com/attachment.cgi?id=276211)
Test case

User-Agent:       Opera/9.63 (Windows NT 5.1; U; el) Presto/2.1.1

In fact, every item in the SystemFonts except for MessageBoxFont returns the
same ugly, hard-coded font.

This class is used to allow applications to use the native UI font on Windows
platforms (i.e. Tahoma 8.25pt on XP, Segoe UI 9pt on Vista.)

If a complete fix is too large to consider, making MessageBoxFont return the
correct font will take care of 99% of the use cases. MessageBoxFont should
return the default sans typeface specified by the platform (e.g. via the Gnome
appearance preferences.)

Attached a test case.

Reproducible: Always

Steps to Reproduce:
1. Compile and run Program.cs on .Net - the correct font is displayed.
1. Compile and run Program.cs on Mono (any platform) - a large, hardcoded sans
typeface is displayed.

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list