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

ID3DXFont::GetDesc Method


Gets a description of the current font object. GetDescW and GetDescA are identical to this method, except that a pointer is returned to a D3DXFONT_DESCW or D3DXFONT_DESCA structure, respectively.

Syntax

HRESULT GetDesc(      

    D3DXFONT_DESC *pDesc );

Parameters

pDesc
[out] Pointer to a D3DXFONT_DESC structure that describes the font object.

Return Value

If the method succeeds, the return value is S_OK.

If the method fails, the following value will be returned.

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


Remarks

This method describes Unicode font objects if UNICODE is defined. Otherwise GetDescA is called, which returns a pointer to the D3DXFONT_DESCA structure.



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