ID3DX10Font::GetGlyphData method

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

Syntax

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

Parameters

Glyph [in]

Type: UINT

Glyph identifier.

ppTexture [out]

Type: ID3D10ShaderResourceView**

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

pBlackBox [in]

Type: RECT*

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

pCellInc [in]

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
D3DX10.h
Library
D3DX10.lib

See also

ID3DX10Font

D3DX Interfaces