FONTS - Delphi + Windows 7 + MS Sans Serif

Whatever happened to What You See Is What You Get (WYSIWYG) ???????

I have a massive Delphi 7 application that we have recently upgraded to Delphi 2009.

When I look at the application in the Delphi 2009 IDE on my Windows 7 PC, I notice that all the objects with text are 8pt MS Sans Serif.  But they are bigger than they should be.

I am using 64 bit Windows 7 Professional with small fonts set in the DPI setting.

So here are some very weird things that need explaining...

1) Why does the MS Sans Serif font appear bigger in the Delphi 2009 IDE - but when you run the application the font is the same saize as it used to be in Delphi 7 on Win XP?

2) What should I do to resolve this - ie so Delphi IDE is same as the final application?  

3) What font should we use in our applications to get some consistency between the following?
   * The Delphi 2009 IDE
   * Windows XP
   * Windows Vista
   * Windows 7

4) What are the techniques to develop delphi applications for all windows font issues?

5) Why do both Delphi 2009 AND MS Wordpad have the MS Sans Serif font BUT MS Word does not have the font?

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

I have just begun working with D2010 (I skipped D2009), so I am going to be following this one closely.
However, I can address your question number 5:
5) Why do both Delphi 2009 AND MS Wordpad have the MS Sans Serif font BUT MS Word does not have the font?
That is a choice that Microsoft makes.  (This falls under the classic, "There are decisions you make and those you live with and that's one you don't get to make." ;-)
enigmasolutionsAuthor Commented:

All forms in our application decend from a form that we create and one of my programmers neglected to tell me that they were changing the font at runtime.

So these questions are pretty much answered.  Sorry for any migranes caused!

I think I am going to set all my forms to Segoe UI 9 pt - that seems to be the current default for Windows 7.  I wonder why Delphi chose Tahoma?

8080 Diver, thanks for your input.

ONE MORE QUESTION - Do you know why my old Delphi 7 application has all forms chopped off?  I mean each form seems to be missing about 100 pixels.  The effect is far worse that it ever was in Vista.  It seems like Windows 7 is scaling (making bigger) all the content in my forms.  No matter what I do to Windows (and all the compatibility settings) I can't get it to look any good - see attachment.  Is there anything that can be done for the old application to make it look ok?

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
enigmasolutionsAuthor Commented:
Here is a great article on Delphi and Vista... 

enigmasolutionsAuthor Commented:
In case anyone is interested - here are 3 more great links - regarding the Default Font in Delphi

This one probably doesn't work in recent Delphi versions

This one says you can't change Delphis Default Font

This one has useful info about localization / making sure delphi applications look good around the world
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Editors IDEs

From novice to tech pro — start learning today.