Microsoft DirectX 8.0 (C++)

ID3DXFont

The ID3DXFont interface is used to encapsulate the textures and resources needed to render a specific font on a specific device.

The ID3DXFont interface is obtained by calling the D3DXCreateFont or D3DXCreateFontIndirect functions.

The methods of the ID3DXFont interface can be organized into the following groups.

Drawing Begin
  DrawTextA
  DrawTextW
  End
Information GetDevice
  GetLogFont

The ID3DXFont interface, like all COM interfaces, inherits the IUnknown interface methods. The IUnknown interface supports the following three methods.

IUnknown AddRef
  QueryInterface
  Release

The LPD3DXFONT type is defined as a pointer to the ID3DXFont interface.

typedef interface ID3DXFont *LPD3DXFONT;

Requirements

  Header: Declared in D3dx8core.h.
  Import Library: Use D3dx8.lib.