[Mono-bugs] [Bug 342581] New: Font constructor does not create font of specified family

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sun Nov 18 07:05:58 EST 2007


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

           Summary: Font constructor does not create font of specified
                    family
           Product: Mono: Class Libraries
           Version: 1.2.5
          Platform: x86
        OS/Version: Ubuntu
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Sys.Drawing.
        AssignedTo: mono-bugs at ximian.com
        ReportedBy: k0l0b0k.void at gmail.com
         QAContact: mono-bugs at ximian.com
          Found By: ---


I'm playing with Mono-1.2.5_2 on Windows and Mono-1.2.5 on Linux (current on
Ubuntu gutsy). I have a little windows forms app, which consist of one control
- ListBox (lstFont), docked on all form.

Constructor of form:

        public Form1()
        {
            InitializeComponent();

            foreach (FontFamily fnt in FontFamily.Families)
            {
                lstFont.Items.Add(fnt.Name);
            }
        }

So, I fill the list with all available font families, and when listbox
selection changed it handles as:

        private void lstFont_SelectedIndexChanged(object sender, EventArgs e)
        {
            lstFont.Font = new Font(lstFont.SelectedItem.ToString(), 12);
        }

ListBox must change theirs font to selected face.

This code works properly in Microsoft .NET runtime, but under Mono/Linux when I
click on ListBox font change only theirs size, but not face. Under Mono/Windows
it does not run (no exceptions, no any output to console. Strange occurrence).

Same happens when my ASP.NET handler creates font as fnt = new Font("Impact",
10). Fonts in system installed correctly.

Thanks. Let me know, if I can help anything.


-- 
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