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: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]
QAContact: [EMAIL PROTECTED]
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.
_______________________________________________
mono-bugs maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs