ID3DXFont::GetGlyphData method

Returns information about the placement and orientation of a glyph in a character cell.

Syntax

HRESULT GetGlyphData(
  [in]  UINT               Glyph,
  [out] LPDIRECT3DTEXTURE9 *ppTexture,
  [out] RECT               *pBlackBox,
  [out] POINT              *pCellInc
);

Parameters

Glyph [in]

Type: UINT

Glyph identifier.

ppTexture [out]

Type: LPDIRECT3DTEXTURE9*

Address of a pointer to a IDirect3DTexture9 object that contains the glyph.

pBlackBox [out]

Type: RECT*

Pointer to the smallest rectangle object that completely encloses the glyph.

pCellInc [out]

Type: POINT*

Pointer to the two-dimensional vector that connects the origin of the current character cell to the origin of the next character cell. See POINT.

Return value

Type: HRESULT

If the method succeeds, the return value is S_OK. If the method fails, the return value can be one of the following: D3DERR_INVALIDCALL, D3DXERR_INVALIDDATA.

Requirements

Requirement Value
Header
D3dx9core.h
Library
D3dx9.lib

See also

ID3DXFont