installing a font by using code

From: Willie jan (unknown_at_unkown.com)
Date: 01/11/05


Date: Tue, 11 Jan 2005 13:20:18 +0100

Hi,
i tried to install a font by using code like:

res = CreateScalableFontResource(0, Fontlst.Item(i), Fontlst.Item(i),
String.Empty)
res = AddFontResource(Fontlst.Item(i))

That works fine when the pc does not reboot,
however after a reboot these added fonts disappear.

Is there a way to keep them installed also after a reboot?
There was a doc saying to find the fonts in the registry under the local
machine\microsoft\software\currentversion\fonts, but under xp this key does
not exist.

Thanks for your help.

Willie.



Relevant Pages

  • Re: fonts disappear from Office Apps after reboot
    ... What printer is coming up as the "default on" in the Office applications after a "reboot". ... If your default printer is generic text or none, most of your fonts will not show in Office. ... On an XP SP2 machine with Office 2003 SP2 we install a true-type font and it works just fine. ...
    (microsoft.public.office.misc)
  • Re: What do the Font attributes mean?
    ... Did you reboot after deleting FNTCACHE.DAT? ... Metamorphisis fonts. ... this is what TweakUI | Repair font folder fixes... ... Dragged old fonts from backup into Fonts folder to "Install". ...
    (microsoft.public.windowsxp.general)
  • Re: installing a font by using code
    ... "Willie jan" wrote in message ... i tried to install a font by using code like: ... res = AddFontResource) ... There was a doc saying to find the fonts in the registry under the local ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Merge Installation/Configuration Problem on OpenServer 5.0.7
    ... special files directory on a secondary hard drive, ... Shutdown the system and reboot on the 5.04 installation diskette. ... Begin fresh install, ... Run mkdev hd to add the drive or drives listed in the mntfs file. ...
    (comp.unix.sco.misc)
  • RE: Help! Startup automatically reboots halfway through
    ... Insert the Windows XP startup disk into the floppy disk drive, ... If this does not fix your issue I suggest that you do a parallel install ... rename the system folder to something besides windows or winnt. ... Once you are done you can try and reboot ...
    (microsoft.public.win2000.setup_deployment)