|
-
Sep 10th, 2007, 06:01 PM
#1
Thread Starter
Addicted Member
[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!
Last edited by yolandre; Jan 1st, 2008 at 03:06 AM.
-
Sep 10th, 2007, 07:21 PM
#2
Re: Font Installation
PDW doesn't automatically know how to install fonts. Font I believe require more than just copying them. I believe there is a registry entry needed.
-
Sep 10th, 2007, 07:26 PM
#3
Thread Starter
Addicted Member
Re: Font Installation
Thanks for the reply R. After some research I have to agree. Will using AddFontResource cause the font to be permanently (and properly) installed?
-
Sep 12th, 2007, 03:05 AM
#4
Thread Starter
Addicted Member
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?
-
Sep 12th, 2007, 04:25 AM
#5
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|