更改所有对话框的整个字体名称(第2部分)
基于这篇文章,
如何在
使用此工具创建安装程序时,它将创建两个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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用
defaultDialogFontName 是一项指令,可在图形安装程序和Vanilla Inno设置中使用。
请记住,该指令中使用的字体必须存在于目标机器上(它不会自动编译为设置)。如果找不到字体,将使用默认值(通常是tahoma)。
Use
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.