2

Based on this post,

Change the entire font style of all dialogs

How to change the font text of the entire installer in Graphical Installer?

When you create the installer using this tool, it creates two Inno Setup files. One file the main installer file and the other has the code to set the theme. This second file has the extension ".graphics.iss". It has the following code,

#define public ButtonNormalColor   "$FFFFFF"
#define public ButtonFocusedColor  "$FFFFFF"
#define public ButtonPressedColor  "$FFFFFF"
#define public ButtonDisabledColor "$FFFFFF"

Adding this code,

#define public ButtonFont "Times New Roman"

does not change the font.

Codename K
  • 890
  • 4
  • 23
  • 52
  • 1
    Simply providing a #define doesn't work unless somewhere there is code that uses that definition. Apparently there is code that uses the button `*Color` definitions, but there is none that looks for a font name. – Ken White May 06 '22 at 02:23

1 Answers1

2

Use

[Setup]
DefaultDialogFontName=<your font name here e.g. Showcard Gothic>

DefaultDialogFontName is a directive that works in both Graphical Installer and vanilla Inno Setup.

Please keep in mind, that font used in this directive must be present on target machine (it is not compiled automatically into setup). If font is not found, the default (usually Tahoma) will be used.

Custom font

Slappy
  • 5,250
  • 1
  • 23
  • 29