I wrote a C # application for Linux that compiled mono ( gmcs) and uses the WinForms 2.0 library that displays the user interface. My application looks great on my computer, but one of my clients is a computer (Fedora / OLPC ) with a large font size, and autoscaling did not fully work for it (the text became larger, but the user control sizes remained the same). A.
If I could increase the font size and reproduce the problem on my Ubuntu computer, I'm sure I can fix the problem (by setting the correct AutoScaleMode and AutoScaleDimensions for all my controls). But when I try to increase the size of my system font in the System → Preferences → Appearance dialog box, my font size settings do not seem to have any effect on the Winforms-rendered interface.
So how does Mono WinForms determine the size of a system font? How can I choose its size on my computer?
I am using Ubuntu 9.10 and Mono winforms 2.4.2.3 + dfsg-2.
In case that matters, my application was ported from Visual Studio, so the fonts in the control are installed in the .Designer.cs files as follows:
label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));