[Mono-winforms-list] Font problem in WinForms app

Marco Ridoni marco.ridoni at virgilio.it
Fri Oct 20 17:57:54 EDT 2006

I'm trying to run a small SWF application and I have a (probably) stupid 
but nasty configuration problem: when my forms are displayed, text 
labels in buttons, checkboxes, etc., are rendered as weird glyphs 
(vertical bars, spaces, etc.). The text in groupboxes labels displays fine!

I have another machine which runs this app fine, but since that has been 
updated and fine-tuned during the last couple of years, there's probably 
some configuration issue I can't reproduce on my new notebook. Both 
machines run Dapper 6.06 + mono 1.1.18 with the mscorefonts package.

It seems that SWF can't find  the font, but I also tried to manually set 
a font for a given button to no extent. MONO_LOG_LEVEL=debug shows no 
useful info.

The code below will expose the problem on my machine




using System.Windows.Forms;
using System.Drawing;

public class Test : Form  {

        public static void Main()
                Test t = new Test();

                Button b = new Button();

                // The app behaves the same, regardless of this line and 
of the font name
                b.Font = new Font ("Tahoma", 12);

                b.Text = "Click Me!";



More information about the Mono-winforms-list mailing list