[RESOLVED] Permanent Font Installation
Hi!
I’m trying to include a custom TTF font as part of my app’s installation files, which are created using PDW. All goes well with the creation of the CAB file, and I add the TTF file without a problem.
Upon inspection of the CAB file the TTF file can be spotted a mile away, yet during the installation PDW complains that it cannot find the TTF file and prompts the user to either: browse for the file, ignore the error or abort the installation.
This only happens if I include the TTF file from the system’s Fonts directory and attempt to install it to the target system’s Fonts directory. If I include the TTF file, say for example, from the system’s WinSysDir and attempt to install it to the target system’s WinSysDir all goes well, but the font isn’t installed correctly, thus the app can use the font…
Any advice? Thanks in advance!
Re: Permanent Font Installation
After considerring Randem's advice I tried using AddFontResource to get the font installed and sure enough the font gets installed, but only remains avtice for the particular Windows session. Once Windows reboots the font is loast again.
I am trying to permanently install the custom font using VB code (called from PDW). Any advice?
Re: Permanent Font Installation
They do require registry entries, take a look here http://www.chami.com/tips/delphi/010297D.html
In PDW that will be a pain unless you create a .reg file to do it for you or do it via code.