lcFontAddRes Home

Adds a font from an application resources into the list of available fonts.

 HANDLE lcFontAddRes (
   LPCWSTR szFontName,
   HANDLE hModule,
   int idResource
 );

Parameters
szFontName
  Font name.
If NULL or empty string is specified, then the loaded font will have a name as defined inside of the font. If the string is valid, then the font name will be redefined in the application.
hModule
  Handle to an application instance.
idResource
  Identifier of an application resource of "BINARY" type, which represents a dump of LCF file.

Return Value

  Handle to the added font.
If the function fails, the return value is NULL.

See Also

  lcFontAddFile