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
);
The method supports the standard return value E_UNEXPECTED, as well as the following:
E_NOTIMPL is not a valid return value. Font objects must always provide their font information through this call unless other errors occur.
Windows NT: Use version 4.0 or later.
Windows: Use Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in ocidl.h.