by Aaron Ballman <aaron@[EMAIL PROTECTED]
>
Jan 15, 2008 at 08:05 AM
> Is there a trick in the Windows system to activate the font without
having
> to do a restart?
The WFS has free functionality to install fonts without a reboot as
well. But the basic idea is that you just need to make a single Win32
API call to alert the system that there are some new fonts available
after your copy. Just call SendMessage with a WM_FONTCHANGE message,
like this: SendMessage( HWND_BROADCAST, WM_FONTCHANGE, 0, 0 ) and that
should be all you'll need to alert any running Win32 app about the
changes.
Note: you may or may not need to call the AddFontResource Win32 API to
get the changes to flush into the registry. I don't recall if
programatic copying into the fonts folder does that for you or not.
~Aaron