Fills a caller-allocated TEXTMETRIC structure for the font. The TEXTMETRICOLE structure is defined as a TEXTMETRICW structure on Win32 platforms. For more information on this structure, consult the Win32 Programmer’s Reference.
HRESULT QueryTextMetrics(
TEXTMETRICOLE* ptm |
//Pointer to font information structure to be filled |
); |
Parameters
Return Values
The method supports the standard return value E_UNEXPECTED, as well as the following:
Remarks
E_NOTIMPL is not a valid return value. Font objects must always provide their font information through this call unless other errors occur.