Fixing Windows font scaling without restarting

Windows 7 and Windows Server 2008 include the ability for each user to set their font scale. This is fantastic, except for a legacy complication: the old bitmap fonts MS Sans Serif, MS Serif and Courier have specific versions for each font scale, but these are never changed after Windows is installed. In previous versions of Windows, the fonts were replaced with the correct versions for the selected font scale, which is why a system restart was required

This means that these bitmap fonts can be out of sync with the currently selected font scale. This is typically only a problem for legacy applications, but it is ugly in those cases!

More background is available at the MSDN blog and the follow-up post

In our situation, it was even worse: the client was running a Remote Desktop Services environment, where restarting the server was really out of the question.

So I wrote a little fix-it app that dynamically adjusts all the font scaling registry settings and installs the correct fonts for the selected font scale.  You may need to log off and log on again, but in most cases, no restart is required.  It is setup for 100% and 125% only, and I provide this app here only as a useful tool.  No support or warranties, etc, etc.  Use at your own risk!


Update 1 Jul: As I discussed this blog with Peter Constable, I realised that I didn’t really describe what the tool did.  So: fontsizefix updates the various metrics in HKCU\Control Panel\Desktop, and a couple of LogPixels registry settings in HKLM\SYSTEM\CurrentControlSet\Hardware Profiles\CurrentSoftware\Fonts and HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\FontDPI\LogPixels, updates the fonts key in the registry to point to the correct versions of MS Sans Serif, MS Serif and Courier, and then RemoveFontResource and AddFontResource in order to get the correct version of the font loaded.  I’m sure it’s not 100% but it got us over a hurdle with the terminal services environment.  For purposes of support, it was easiest to make a tool that did the whole lot rather than document a bunch of registry tweaks which are easy to trip over on, and then we figured we might as well make it available to other users as well…

7 thoughts on “Fixing Windows font scaling without restarting

  1. Hi man, this worked for me like a charm. Can you please consider publishing of registry values it changes? 125% is great but my accountant would prefer still a bit larger app fonts, is there any chance to make it 150% or so?
    Thank you very much for this!

  2. Petr, glad this worked for you. At some point I’ll try and put the source to the program on Github, which would then include the registry values and give you the chance to add 150% scaling support. I should reiterate though, that this ‘fix’ is not 100% and is definitely an unsupported configuration…

  3. Hi Mr. Durdin, Would it be possible for you to fix the download link for executable file? I’ve in a similar situation as you were when you developed this fix. I’m not a programmer so unable to make much use of source files on GitHub. Thank you.

Leave a Reply

Your email address will not be published. Required fields are marked *