ID3DXFont::GetGlyphData
Returns information about the placement and orientation of a glyph in a character cell.
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 Values
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
Header: Declared in D3dx9core.h.