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.
source
share