简体   繁体   中英

Install fonts to PC using Inno Setup

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.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM