Resolution bug in 6.4.0

163 views
Skip to first unread message

CHB Wien

unread,
Jan 24, 2025, 2:21:24 AM1/24/25
to innosetup
Hi there,

I am using 6.4.0 on my 4k/150% monitor. The new editor works fine, but the popups are way too small. It looks like they are not taking the 150% into account. Is this a known bug?

Kind regards

Christian
2025-01-24 08_19_11-TUTools.iss - Inno Setup Compiler 6.4.0.png

Alex Born

unread,
Jan 25, 2025, 11:36:40 AM1/25/25
to innosetup
You're right.

This popup list contains very small font.
Even at 100% DPI it is too small for me. I'm always have to look closely.
And there is no way to customize this font, at least to make it bigger.

But most likely it's a bug in Scintilla library (isscint.dll), because this popup window is created by it, including the font for this window.

пятница, 24 января 2025 г. в 08:21:24 UTC+1, CHB Wien:

Martijn Laan

unread,
Jan 27, 2025, 9:17:30 AM1/27/25
to inno...@googlegroups.com
I can not reproduce this: for me the font definitely becomes larger after increasing the DPI.

The font used is the same as the rest of the UI uses, so for example the font in the Options dialog:
  • The font name is determined by Windows, and documented as "the font used in message boxes".
    It must be either 'Segoe UI' or 'Tahoma' or 'Microsoft Sans Serif' and if it's not then 'Tahoma' is used.
  • The font size is 8 at 100% DPI.

I don't think any of this is new to 6.4.

Your screenshot only shows the memo and not the rest of the UI, nor the size at 100% so it's hard to get anything from it.

Greetings,
Martijn

Op vrijdag 24 januari 2025 om 08:21 schreef CHB Wien <chb...@gmail.com>:
--
You received this message because you are subscribed to the Google Groups "innosetup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to innosetup+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/innosetup/73517488-7445-4251-9cab-af6a4bb1656bn%40googlegroups.com.

Alex Born

unread,
Jan 27, 2025, 2:36:27 PM1/27/25
to innosetup

Yes, the font gets a little bigger after increasing the DPI, but it's still very small compared to the editor font.
The default IDE compiler editor settings at 100% and 150% DPI.

dpi100.png
dpi150.png

It would be nice to make it possible to change size of this font. :)

Best Regards
понедельник, 27 января 2025 г. в 15:17:30 UTC+1, Martijn Laan:

Jordan Russell

unread,
Jan 27, 2025, 4:14:40 PM1/27/25
to inno...@googlegroups.com
On 1/27/25 1:36 PM, Alex Born wrote:
> Yes, the font gets a little bigger after increasing the DPI, but it's still
> very small compared to the editor font.
> The default IDE compiler editor settings at 100% and 150% DPI.

It looks like the actual problem may be with the scaling of the editor
font. In your 100% screen shot, the lines are 15 pixels tall, and in
your 150% screen shot, the lines are 36 pixels tall -- which is 2.4
times the size. It's like it's scaling by 150% twice?

-JR

CHB Wien

unread,
Jan 28, 2025, 4:30:55 AM1/28/25
to innosetup
Hi,
I used my Laptop for this test (4k 17" -> 250% default). I opened a terminal, installed Inno 6.4 via winget, started Inno without any change and opened a demo script.2025-01-28 10_09_14-Greenshot.png
The editor font is way too big, the popup font is too small. The popup looks like less than half the size.

Now to my first system, 4k 32" -> 150% I changed the font to consolas 15pt.Here a similar screenshot
2025-01-28 10_27_55-axes.iss - Inno Setup Compiler 6.4.0.png

Looks like the popup font is still less than half and therefore it is very hard to read the popus (at least for me old guy).

Alex Born

unread,
Jan 28, 2025, 5:52:49 AM1/28/25
to innosetup
Jordan and Martijn

If Inno Setup is installed for the first time on a system where it was not previously present and the default editor settings are used then when DPI>100% the size of the main editor font becomes very large!

You can reproduce this if in the registry under the path "HKEY_CURRENT_USER\Software\Jordan Russell\Inno Setup\Options" delete the “EditorFontSize” parameter.


But we are talking about the font in the pop-up window. It is very small.


вторник, 28 января 2025 г. в 10:30:55 UTC+1, CHB Wien:

Gavin Lambert

unread,
Jan 29, 2025, 2:53:31 AM1/29/25
to innosetup
On Tuesday, January 28, 2025 at 11:52:49 PM UTC+13 Alex Born wrote:
If Inno Setup is installed for the first time on a system where it was not previously present and the default editor settings are used then when DPI>100% the size of the main editor font becomes very large!

You can reproduce this if in the registry under the path "HKEY_CURRENT_USER\Software\Jordan Russell\Inno Setup\Options" delete the “EditorFontSize” parameter.

I wonder if perhaps both the Windows global default DPI scaling (for apps that don't indicate DPI awareness) is being applied in addition to some internal scaling. 

Jordan Russell

unread,
Jan 29, 2025, 3:21:45 AM1/29/25
to inno...@googlegroups.com
On 1/28/2025 4:52 AM, Alex Born wrote:
> If Inno Setup is installed for the first time on a system where it was not
> previously present and the default editor settings are used then when
> DPI>100% the size of the main editor font becomes very large!

Thanks.

Even though the editor's font size is initialized to 10 points, it
apparently was being scaled later by 150% to ~15 points (not by our
code), and that size was kept when the EditorFontSize value was missing.

I suspect this first started in IS 6.3, the first version to be built
with Delphi 11.

This should be fixed now in git (though I haven't tested it).

I also changed the autocompletion list to use the same font as the
editor (and calltips), so there should no longer be any size
discrepancy. The custom font was just my attempt to make it look more
like the (old) Delphi and VS IDEs. Now it's more consistent with VS Code.

I have no idea why the autocompletion list font looks smaller in CHB's
150% screen shot than at 100% DPI, but hopefully that's fixed as well.

-JR

Martijn Laan

unread,
Jan 29, 2025, 3:42:04 AM1/29/25
to inno...@googlegroups.com
I've uploaded a build to test with: https://files.jrsoftware.org/is/dev/innosetup-6.4.1-dev.exe

Greetings,
Martijn


Op 29-1-2025 om 09:21 schreef Jordan Russell:
Thanks.

Even though the editor's font size is initialized to 10 points, it
apparently was being scaled later by 150% to ~15 points (not by our
code), and that size was kept when the EditorFontSize value was missing.

I suspect this first started in IS 6.3, the first version to be built
with Delphi 11.

This should be fixed now in git (though I haven't tested it).

I also changed the autocompletion list to use the same font as the
editor (and calltips), so there should no longer be any size
discrepancy. The custom font was just my attempt to make it look more
like the (old) Delphi and VS IDEs. Now it's more consistent with VS Code.

I have no idea why the autocompletion list font looks smaller in CHB's
150% screen shot than at 100% DPI, but hopefully that's fixed as well.

-JR

--
You received this message because you are subscribed to the Google Groups "innosetup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to innosetup+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/innosetup/vncoeg%24v3a%241%40ciao.gmane.io.


CHB Wien

unread,
Jan 29, 2025, 11:50:59 AM1/29/25
to innosetup
I installed the dev version. The font size was reset to 10 (a little too small for me). I changed it back to Consolas 14. So it is perfect. Also the autocompletion is now great. Thank you!

Martijn Laan

unread,
Jan 29, 2025, 1:28:43 PM1/29/25
to inno...@googlegroups.com
Thanks for testing!

It doesn't reset the font size though. If you got a font size of 10 it should mean you never changed any option using the Options dialog up until now, meaning it can't have been set to 14 before?

Greetings,
Martijn

Op 29-1-2025 om 17:50 schreef CHB Wien:
Reply all
Reply to author
Forward
0 new messages