问题
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