Microsoft DirectX 8.1 (C++)

D3DXCreateFontIndirect

Creates an font object indirectly for a device and font.

HRESULT D3DXCreateFontIndirect(
  LPDIRECT3DDEVICE8 pDevice,
  CONST LOGFONT* pLogFont,
  LPD3DXFONT* ppFont
);

Parameters

pDevice
[in] Pointer to an IDirect3DDevice8 interface, the device to be associated with the font object.
pLogFont
[in] Pointer to a LOGFONT structure, describing the attributes of the font object to create.
ppFont
[out] Returns a pointer to an ID3DXFont interface, representing the created font object.

Return Values

If the function succeeds, the return value is D3D_OK.

If the function fails, the return value can be one of the following values.

D3DERR_INVALIDCALL
E_OUTOFMEMORY

Remarks

For more information on the LOGFONT structure, see the Microsoft® Platform Software Development Kit (SDK).

Requirements

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