C3DScreen::SetFont

Top  Previous  Next

Syntax:

 

SetFont(string  typeface, int  height, int  weight, opt int  flags = 0 )

 

Purpose:
Sets the font used for the RenderText method.

 

Parameters:

typeface - Name of new font.

height - Size of font in points.

weight - Weight of font.

flags - Style flags for font and character set.

 

Returned value(s):

None.

 

Application:

s.SetFont("Arial", 12, 400)

 

Class Hierarchy

C3DScreen

 

Additional Info:

This method is similar to the SetFont command used for windows.

 

See Also:

RenderText