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

ID3DXFont::GetGlyphData Method


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

Syntax

HRESULT GetGlyphData(      

    UINT Glyph,     LPDIRECT3DTEXTURE9 *ppTexture,     RECT *pBlackBox,     POINT *pCellInc );

Parameters

Glyph
[in] Glyph identifier.
ppTexture
[out] Address of a pointer to a IDirect3DTexture9 object that contains the glyph.
pBlackBox
[out] Pointer to the smallest rectangle object that completely encloses the glyph (its black box).
pCellInc
[out] Pointer to the two-dimensional vector that connects the origin of the current character cell to the origin of the next character cell.

Return Value

If the method succeeds, the return value is S_OK.

If the method fails, the return value can be one of the following:

D3DERR_INVALIDCALLThe method call is invalid. For example, a method's parameter may have an invalid value.
D3DXERR_INVALIDDATAThe data is invalid.




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