Windows 7 "MS Sans Serif" Font problem

Hi.
I have a 32-bit Delphi program that writes to a bitmap with the «MS Sans Serif» font. There is lots of users of this program on Windows 7 64-bit . All working fine except one. She gets a result that is equal to the 125% (to large) size of the font.

I’m aware of the font bug with installing on a high resolution screen (described here Win 7 font bug ), but both

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts\MS Sans Serif 8,10,12,14,18,24

And

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows NT\CurrentVersion\Fonts\MS Sans Serif 8,10,12,14,18,24

Points to the correct file name SSERIFE.FON

I’ve inspected the SSERIFE.FON (64 Kb) file in her \Windows\Font folder and it’s not the same as SSERIFF.FON (88 Kb).

Is there other mechanisms that decides which font file that’s being used? Other than the two mentioned registry keys?

Anyone out there that has experienced a similar problem and have a solution?
 
Thanks.
PLguttaAsked:
Who is Participating?
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.

Pierre CorneliusCommented:
I cant help but wonder if it isnt maybe a windows themes issue. Users can set font size and you are mos likely drawing to the bitmap using a windows api function (or wrapper therof).  Look at the themes font setting for the computer where is is not working as expected. Or on your development machine change the font theme size and see if it reproduces the error.

Here is a link to setting theme font size on windows 7:
http://windows.microsoft.com/en-za/windows7/change-windows-fonts

There is also another place where users can set the size of their text:
open control panel and type "calibrate color" into the search box. There is an option there for 125%, see if that is not your culprit.
0

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
Pierre CorneliusCommented:
Did you have any luck? If not, please post your code snippet that does the drawing for us to have a look at.
0
PLguttaAuthor Commented:
Sorry about the late reply. Your answer put me on the right track. Case is now solved.
0
Pierre CorneliusCommented:
Great! Glad to help. Good luck.
0
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
Windows OS

From novice to tech pro — start learning today.