Font backward incompatibility?

It is always better to use default (system) font to achieve native look. So Vista uses 'Sergoe UI' as default font, and XP uses 'Tahoma' for this (not 'Verdana'). To get default dialog font use SystemFonts class.

Up vote 2 down vote favorite share g+ share fb share tw.

I am using Segoe UI for my winforms application. On XP, this font doesn't exist and I would like to have my app use Verdana instead. What's the best way of achieving that.

Winforms fonts windows-xp link|improve this question asked Jun 16 '09 at 8:08WOPR1,6611025 96% accept rate.

It is always better to use default (system) font to achieve native look. So Vista uses 'Sergoe UI' as default font, and XP uses 'Tahoma' for this (not 'Verdana'). To get default dialog font use SystemFonts class: protected override void OnLoad(EventArgs e) { base.

OnLoad(e); Font = SystemFonts. DialogFont; }.

What you want is something like this: Font GetUIFont() { Font testFont = new Font("Segoe UI", 10f); if (testFont. Name == "Segoe UI") return testFont; else return new Font("Verdana", 10f); }.

Etc. Etc. – Roger Lipscombe Jun 16 '09 at 8:31 What you could do is derive from Form and then use your derived class.

In the constructor for your derived form you could call the GetUIFont method to set the Form's font and then that would make it automatic. As far as layout, I've always seen my forms adjust automatically when I change the font size. You'll probably have to play around with that one and if you have problems, you can always ask for help here.

;) – jasonh Jun 16 '09 at 16:52.

Start with JasonH's solution, including the part about deriving from Form. If you have problems with controls that don't inherit the Form's font automatically, call this code when your form has all of its controls: foreach (Control ctl in this. Controls) { ctl.

Font = GetUIFont(); }.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions