更改所有对话框的整个字体名称(第 2 部分)

Change the entire font name of all dialogs (part 2)

基于此post,

如何在Graphical Installer中更改整个安装程序的字体文本?

当您使用此工具创建安装程序时,它会创建两个 Inno Setup 文件。一个文件是主安装程序文件,另一个文件包含设置主题的代码。第二个文件的扩展名为“.graphics.iss”。它有以下代码,

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

添加此代码,

#define public ButtonFont "Times New Roman"

不改变字体。

使用

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

DefaultDialogFontName 是一个在图形安装程序和普通 Inno 安装程序中都有效的指令。

请记住,此指令中使用的字体 必须 存在于目标机器上(它不会自动编译到安装程序中)。如果找不到字体,将使用默认字体(通常是 Tahoma)。