Install fonts to PC using Inno Setup

社会主义新天地 提交于 2021-02-07 08:01:48

问题


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?


回答1:


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.

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

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

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



来源:https://stackoverflow.com/questions/28186646/install-fonts-to-pc-using-inno-setup

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!