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

发布于 2025-01-26 10:44:36 字数 579 浏览 2 评论 0原文

基于这篇文章,

更改所有对话的整个字体样式

如何在

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

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

(添加此代码)

#define public ButtonFont "Times New Roman"

不会更改字体。

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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

快乐很简单 2025-02-02 10:44:36

使用

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

defaultDialogFontName 是一项指令,可在图形安装程序和Vanilla Inno设置中使用。

请记住,该指令中使用的字体必须存在于目标机器上(它不会自动编译为设置)。如果找不到字体,将使用默认值(通常是tahoma)。

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文