To add a font resource, Windows Application Programming Interface (API) provides a developer with AddFontResource() function. This function expects font filename to be added. Following code snippet, add Arial font stored in file arial.ttf.
AddFontResource('c:\my custom fonts\arial.ttf');
Calling AddFontResource() is half of the process. To be able to notify any applications that a new font is installed, you need to broadcast WM_FONTCHANGE message to any applications.
SendMessage(HWND_BROADCAST,WM_FONTCHANGE,0,0);
Font installation is now complete.
To remove any installed font, Windows API gives you RemoveFontResource(). Similar to AddFontResource(), this function also expects font filename to uninstall.
RemoveFontResource('c:\my custom fonts\arial.ttf');
To notify any applications that a font has been uninstalled, you repeat StepTwo above after calling RemoveFontResource().




Delicious
Digg
Google
Yahoo