Skip to content

Latest commit

 

History

History
106 lines (90 loc) · 2.77 KB

nf-ocidl-ifont-querytextmetrics.md

File metadata and controls

106 lines (90 loc) · 2.77 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:ocidl.IFont.QueryTextMetrics
IFont::QueryTextMetrics (ocidl.h)
Fills a caller-allocated structure with information about the font.
IFont interface [COM]
QueryTextMetrics method
IFont.QueryTextMetrics
IFont::QueryTextMetrics
QueryTextMetrics
QueryTextMetrics method [COM]
QueryTextMetrics method [COM]
IFont interface
_ctrl_ifont_querytextmetrics
com.ifont_querytextmetrics
ocidl/IFont::QueryTextMetrics
com\ifont_querytextmetrics.htm
com
960dcc0b-8769-415c-9d5a-eaf9f4b3aeac
12/05/2018
IFont interface [COM],QueryTextMetrics method, IFont.QueryTextMetrics, IFont::QueryTextMetrics, QueryTextMetrics, QueryTextMetrics method [COM], QueryTextMetrics method [COM],IFont interface, _ctrl_ifont_querytextmetrics, com.ifont_querytextmetrics, ocidl/IFont::QueryTextMetrics
ocidl.h
Windows
Windows 2000 Professional [desktop apps only]
Windows 2000 Server [desktop apps only]
OCIdl.idl
Windows
19H1
IFont::QueryTextMetrics
ocidl/IFont::QueryTextMetrics
c++
APIRef
kbSyntax
COM
OCIdl.h
IFont.QueryTextMetrics

IFont::QueryTextMetrics

-description

Fills a caller-allocated structure with information about the font.

-parameters

-param pTM [out]

Pointer to the caller-allocated structure that receives the font information. The TEXTMETRICOLE structure is defined as a TEXTMETRICW structure.

-returns

The method supports the standard return value E_UNEXPECTED, as well as the following values.

Return code Description
S_OK
The text metrics were returned successfully.
E_POINTER
The address in the ptm parameter is not valid. For example, it may be NULL.

-remarks

Notes to Implementers

E_NOTIMPL is not a valid return value. Font objects must always provide their font information through this call unless other errors occur.

-see-also

IFont