d3d9.dllGetTextMetrics
Microsoft DirectX 9.0 SDK Update (October 2004)

ID3DXFont::GetTextMetrics Method


Retrieves font characteristics that are identified in a TEXTMETRIC World Wide Web link structure. This method supports ANSI and Unicode compiler settings.

Syntax

BOOL GetTextMetrics(      

    TEXTMETRIC *pTextMetrics );

Parameters

pTextMetrics
[out] Pointer to a TEXTMETRIC structure, which contains font properties.

Return Value

Nonzero if the function is successful; otherwise 0.



Remarks

The compiler setting also determines the structure type. If Unicode is defined, the function returns a TEXTMETRICW structure. Otherwise, the function call returns a TEXTMETRICA structure.



© 2004 Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center.