Overview Members Chapter Previous Next

## CDXSurface::ChangeFont

void ChangeFont( | const char* FontName , int Width , int Height , int Attributes = FW_NORMAL ) ;

Chooses the font to be used by the TextXY function. The FontName string should be a default Windows font name (HINT: look in your fonts directory to find a list of font names eg "Comic Sans MS"). The Width and Height specify the width and height of a single character in pixels. The Attributes member specifies the weight of the font in the range 0 through 1000. For example, 400 is normal and 700 is bold.