本文介绍了使用Inno安装程序将字体安装到PC上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个Windows应用程序,并使用特定的字体。所以我需要使用Inno Setup将该字体安装到用户系统中。



我使用了这个代码:

 来源:ARLRDBD.TTF; DestDir:{fonts}; FontInstall:Oz Handicraft BT; \ 
标志:onlyifdoesntexist uninsneveruninstall

但是这个代码在我测试时没有效果我的系统。



我该如何做到这一点?

解决方案

- 当您在资源管理器中双击字体文件时,它必须是完全相同的名称。在你的情况下,你已经从Inno Setup的帮助例子中留下了名字。

Oz手艺BT 不是真正的名字 ARLRDBD.TTF 字体。


$ b ARLRDBD.TTF 的实际 FontInstall 值为 Arial Rounded MT Bold


I created a Windows application and that uses a particular font. So I need to install that font to the users system using Inno Setup.

I used this code:

Source: "ARLRDBD.TTF"; DestDir: "{fonts}"; FontInstall: "Oz Handicraft BT"; \
    Flags: onlyifdoesntexist uninsneveruninstall

But this code had no effect when I tested it in my system.

How can I do it perfectly?

解决方案

FontInstall - This must be exactly the same name as you see when you double-click the font file in Explorer. In your case you have left the name from the Inno Setup's Help Example.

Oz Handicraft BT is not the real name of ARLRDBD.TTF font.

The real FontInstall value for ARLRDBD.TTF is Arial Rounded MT Bold

这篇关于使用Inno安装程序将字体安装到PC上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

05-28 14:05
查看更多