How to install a font without logging off or rebooting a PC?

Is there a way or API to install a font on a PC for each user without logging out or restarting the PC?

+3
source share
1 answer

For more information, see the MSDN document, Add or Remove Fonts . In short:

  • Copy the font file to the font directory ( %windir%\fonts).
  • Call AddFontResource()to ensure that the font is immediately available.
  • Send a message WM_FONTCHANGE.

Thanks to @Alex K for cleaning and adding small parts.

+7
source

All Articles