int AddFontModule(hmodFontResource) | |||
HMODULE hmodFontResource; |
The AddFontModule function adds the font resource from the loaded font resource module identified by the hmodFontResource parameter to the Windows public font table. The font can subsequently be used by any application.
hmodFontResource
Handle that identifies a loaded font resource module.
The return value specifies the number of fonts added. The return value is zero if no fonts are loaded. -1 is returned on error.
Any application that adds or removes fonts from the Windows font table should notify other windows of the change by using the SendMessage function with the hWnd parameter set to -1 to send a WM_FONTCHANGE message to all top-level windows in the system.
An application must remove any font resource it has loaded once the application is through with the resource.
For a description of font resources, see the Guide to Programming.
RemoveFontModule