Notepad++ tabs font size

7,927

Solution 1

Some text fonts too large

Need to go to Control Panel > Fonts > Font Settings > Restore default font settings. Click the button. Restart machine.

Hope it works

Solution 2

Under Settings > Preferences,

general settings, on the right side ensure Reduce is ticked? Un-ticking this option makes my text on the tab bar larger.

Solution 3

As I noted here, you can do this via the prehistoric—but still essentially functional—Windows font substitution mechanism. Visit the following registry key:

Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\FontSubstitutes

With font substitution registry entries, the font name that the (legacy) application wants to "look-up" is matched with the name of a registry key, that is, on the left side of the registry editor display. The name of the "substitute" font that Windows will actually return back to the requesting application is the respective value, on the right side.

enter image description here

In the case of Notepad++, the first font lookup that it issues is for "MS Shell Dlg." Checking the corresponding subkey in my registry, I saw that the existing value of that key referenced a sad font that I knew I didn't want anyway. So I wasn't too worried about making a system-wide change that would point away from it.

You can experiment with the font of your choice here. I was satisfied using Arial Unicode MS (also from the 90s, and shipped in Windows by default, so don't specify it if you don't have it). You might want to try one of the specialized UI fonts, such as Segoe UI or Calibri, or perhaps the appealing clarity of Tahoma.

Beyond just altering the existing keys, you can create new key/values pairs as needed to further control Windows font substitution. It is a crude mechanism by today's standards, for example because the configured mapping affects all apps globally. Fortunately, most modern apps don't pay much attention to this clumsy, but often helpful, system of coercive subterfuge. There are also many other interesting font-related settings amongst the immediate neighbors in the registry to explore.

Share:
7,927

Related videos on Youtube

Jonas Byström
Author by

Jonas Byström

Python haxxorz and parapsychology student. Creator of the eminent finplot library: https://github.com/highfestiva/finplot. Once upon a time made a UFO short documentary in Swedish: https://www.youtube.com/watch?v=HFF528pc3O8. Constantly at a fork in the road.

Updated on September 18, 2022

Comments

  • Jonas Byström
    Jonas Byström over 1 year

    For some reason the font size Notepad++ uses to render tab fonts suddenly became huge:

    huge tab fonts

    There are settings for it in Settings -> Style Configurator -> Global Styles -> Active tab text and Inactive tabs, but for some reason changing this setting has no effect. There is nothing suggesting that this setting or any related changed inside Notepad++ (and I sure didn't do it deliberately). Perhaps the IT department pushed out some new Windows 10 font setting (not otherwise visible in the system)? If so: how can I tell what setting to revert? Everything I've found on Windows 10 Professional's font settings has a size of 9, so it seems like a long-shot.

    Edit: I just reinstalled Notepad++, after having wiped all npp data, but without any visual effect (the font size in the tabs is still huge). I still suspect our IT department to have pushed some Windows 10 font setting.

    • Admin
      Admin almost 7 years
      tried reinstalling it with all your saved data in the backup?
  • Jonas Byström
    Jonas Byström almost 7 years
    This was checked and has a little effect when checked/unchecked, but mainly the icon becomes larger. When unchecked the fonts are very pixlated, looks like Courier New 10 rendered to a 20px height...
  • Jonas Byström
    Jonas Byström about 6 years
    I'm not sure this solves the issue; for me it actually comes and goes. I'm unable to come up with a sensible underlying cause. Have you noticed explorer.exe crashing without notice, then coming back up again after a few seconds? That happens to me frequently, and perhaps it correlated in some way.
  • alexGIS
    alexGIS almost 6 years
    Jonas, I haven't noticed explorer.exe crash. I recently reinstalled Visual Studio Code, with everything else closed down, and the problem did not resurface. It's also possible that I may have undocked/redocked my laptop during that time, so maybe graphics drivers has something to do with it and nothing to do with Visual Studio Code (a coincidence).