Results 1 to 5 of 5

Thread: [RESOLVED] Permanent Font Installation

  1. #1

    Thread Starter
    Addicted Member yolandre's Avatar
    Join Date
    Oct 2004
    Posts
    177

    Resolved [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.

  2. #2
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    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.

  3. #3

    Thread Starter
    Addicted Member yolandre's Avatar
    Join Date
    Oct 2004
    Posts
    177

    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?

  4. #4

    Thread Starter
    Addicted Member yolandre's Avatar
    Join Date
    Oct 2004
    Posts
    177

    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?

  5. #5
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    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
  •  



Click Here to Expand Forum to Full Width