Windows 7 "MS Sans Serif" Font problem

Posted on 2013-10-10
Medium Priority
Last Modified: 2013-10-24
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


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?
Question by:PLgutta
  • 3
LVL 14

Accepted Solution

Pierre Cornelius earned 2000 total points
ID: 39561959
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:

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.
LVL 14

Expert Comment

by:Pierre Cornelius
ID: 39570143
Did you have any luck? If not, please post your code snippet that does the drawing for us to have a look at.

Author Closing Comment

ID: 39599620
Sorry about the late reply. Your answer put me on the right track. Case is now solved.
LVL 14

Expert Comment

by:Pierre Cornelius
ID: 39599626
Great! Glad to help. Good luck.

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

I was recently poking around with LibreOffice and figured out how easy it is to add great vector clip art to one's own LibreOffice gallery collection.
Read this tutorial to learn how to fix repeating password error prompts when setting up Gmail IMAP with Microsoft Outlook. The entire process is described with step by step, illustrated instructions. Enjoy...
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

587 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question