Notepad3: [Feature] Specify a fixed font size instead of relative one when using the font selection dialog.

Created on 15 Dec 2020  路  5Comments  路  Source: rizonesoft/Notepad3

I noticed that Notepad3 would use a relative font size (such as size:+2) instead of a fixed one. This creates issues when using monitors with different resolutions (or when resizing), as that can change depending on the differences in screen resolution (so not sure if this is about DPI/resolution awareness).

For example, with my laptop (whose built-in monitor is 1920x1080), I also connect to a secondary monitor (with a resolution of 1680x1050). If I set a font size of 12 using the font selection dialog on my laptop's monitor, it becomes 11 when displayed on the secondary monitor. On the contrary, if I set 12 on my secondary monitor, on my laptop it becomes 13.

It seems specifying a fixed font size (e.g. size:12) from [Customize Schemes] -> [Common Base / 2nd Common Base] made sure the font size would stay the same regardless of monitor in some cases. However, this is not available when using the font selection dialog (such as [Global Default Font] and sometimes the Font option in [Customize Schemes]), so not sure if this option can be conveniently accessible.

Additional context:
Actually I'm running Windows inside a VM from a Linux host. The resolution change happens depending on which monitor I would use for this VM (I only use one monitor for the VM at a time depending on where I am, as the secondary monitor is in my workplace).

change request configuration

Most helpful comment

Hello @lss4 ,

Feel free to test the "BETA/RC PortableApps" version "Notepad3Portable_5.21.116.1_beta.paf" or newer, see below or issue #1129.

"Notepad3Portable BETA/RC PortableApps" version can be used with or without ".7z" extension.
To update your "Notepad3 Setup" version with the latest features/fixes from the "BETA/RC" version, see issue #1105.

Also, feel free to test the "BETA/RC Setup" version "Notepad3_5.21.116.1_beta_Setup" or newer, see below or issue #1129.

Comments and suggestions are welcome... 馃槂

All 5 comments

Yes the initial font size, which is used to calculate (relative) base font sizes, is depending on initial start screen resolution:

  • if smaller than FullHD resolution (e.g. 1680x1050), a initial font size of 10 is used for further font size calculation
  • if initial start screen has FullHD or bigger resolution, a initial font size of 11 is used for further font size calculations.

Maybe this is not the best choice and we should change this to a fixed initial size value of 11.
This will cause a font size change for all users with screens smaller than FullHD, for configurations based on relative font sizes (size:+/-n). Those users have to change their [Customize Schemes] -> [Common Base / 2nd Common Base] settings on next update. Hope that is acceptable 馃.

Hello @lss4

Feel free to test the "BETA/RC paf" version "Notepad3Portable_5.20.1223.1_beta.paf" or newer, see below or issue #1129.

"Notepad3Portable BETA/RC paf" version can be used with or without ".7z" extension.
To update your "Notepad3 Setup" version with the latest features/fixes from the "BETA/RC" version, see issue #1105.

Also, feel free to test the "BETA/RC Setup" version "Notepad3_5.20.1223.1_beta_Setup" or newer, see below or issue #1129.

Comments and suggestions are welcome... 馃槂

I'm testing the beta build right now. It seems to have addressed the main question as the font size is indeed using 11 as base when using Notepad3 on my secondary monitor (1680x1050).

Here's another issue related to the relative font size. Actually this issue has been present for a while. It's just that I would always manually specify a font size in the dialog, that I didn't pay enough attention to it.

The thing is, if the font size in the scheme config is relative, the initial font size passed to the Global Default Font dialog may not be consistent (it may also be true in some other places).

Steps to reproduce using only Global Default Font.

  1. From initial font size of 11, select a size of 12 (+1).
  2. Open Global Default Font again, the font size becomes 1. Click OK without doing anything, the editor font size would become 1 (-10).
  3. Open Global Default Font again, the font size becomes 10. Click OK without doing anything, the editor font size would become 10 (-1).
  4. Open Global Default Font again, the font size becomes 1. Click OK without doing anything, the editor font size would become 1 (-10). I think from this point on you can repeat the behaviors of steps 2, 3, 4.

So I think what got passed is abs(size), but it did not really check whether the size value is fixed or relative.

Hello @lss4 ,

Feel free to test the "BETA/RC PortableApps" version "Notepad3Portable_5.21.116.1_beta.paf" or newer, see below or issue #1129.

"Notepad3Portable BETA/RC PortableApps" version can be used with or without ".7z" extension.
To update your "Notepad3 Setup" version with the latest features/fixes from the "BETA/RC" version, see issue #1105.

Also, feel free to test the "BETA/RC Setup" version "Notepad3_5.21.116.1_beta_Setup" or newer, see below or issue #1129.

Comments and suggestions are welcome... 馃槂

Tried the 5.21.116 beta and can confirm the font size in Global Default Font dialog has been fixed. Many thanks.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kofifus picture kofifus  路  53Comments

MelchiorGaspar picture MelchiorGaspar  路  30Comments

rizonesoft picture rizonesoft  路  58Comments

ghost picture ghost  路  36Comments

zmx01403137 picture zmx01403137  路  33Comments