Creates and initializes a standard font object using an initial description of the font's properties in a FONTDESC structure. The function returns an interface pointer to the new font object specified by caller in the riid parameter. A QueryInterface is built into this call. The caller is responsible for calling Release through the interface pointer returned.
STDAPI OleCreateFontIndirect(
FONTDESC* pFontDesc,
//Pointer to the structure of parameters for font
REFIID riid, //Reference to the identifier of the interface
VOID** ppvObj //Address of output variable that receives the
// interface pointer requested in riid
);
This function supports the standard return values E_INVALIDARG, E_OUTOFMEMORY, and E_UNEXPECTED, as well as the following:
Windows NT: Use version 4.0 or later.
Windows: Use Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in olectl.h.
Import Library: Included as a resource in olepro32.dll.