IFont::get_Weight
Returns the font weight, where a weight is defined as any of the FW_* values that are valid for Windows fonts.
HRESULT get_Weight(
short* pweight //Pointer to the font weight
);
Parameters
-
pweight
-
[out] Pointer to the caller-allocated short variable that receives the current font weight.
Return Values
-
S_OK
-
The weight was retrieved successfully. If the weight is indeterminate, a font object should store FW_NORMAL in *pweight and return S_OK.
-
E_POINTER
-
The address in pweight is not valid. For example, it may be NULL.
QuickInfo
Windows NT: Use version 4.0 or later.
Windows: Use Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in ocidl.h.
See Also
IFont::put_Weight