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 |
//Indirect pointer to the object |
); |
Parameters
Return Values
This function supports the standard return values E_INVALIDARG, E_OUTOFMEMORY, and E_UNEXPECTED, as well as the following:
See Also