ID3DXFont::GetTextMetrics

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

BOOL GetTextMetrics(
  TEXTMETRIC * pTextMetrics
);

Parameters

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

Return Values

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.

Requirements

Header: Declared in D3dx9core.h.