MGL_useFont

Sets the currently active font.

Declaration

ibool MGLAPI MGL_useFont(
    font_t *font)

Prototype In

mgraph.h

Parameters

font

New font to use

 

Return Value

True if the font was valid and selected, false if not.

Description

Selects the specified font as the currently active font for the active device context. If the font data is invalid, the MGL result flag is set and the routine will return false.

Do not unload a font file if it is currently in use by MGL!

See Also

MGL_drawStr,MGL_loadFont, MGL_unloadFont

Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com