DirectX SDK

DirectDrawSurface7.SetFont

The DirectDrawSurface7.SetFont specifies the font to be used in DirectDrawSurface7.DrawText.

object.SetFont(font As IFont)

Parameters

object
Object expression that resolves to a DirectDrawSurface7 object.
font
Font, as specified in the IFont class.

Error Codes

If the method fails, it raises an error, and Err.Number is set.