MgraFont()函数

Synopsis

Associate a text font with a graphics context.

Format

void MgraFont(GraphContId, FontName)

MIL_ID GraphContId; Graphics context identifier
void *FontName; Character font

Description

This function associates a character font with the specified graphics context for use with subsequent MgraText function calls.

The GraphContId parameter specified the identifier of the graphics context with which to associate the character font. This parameter can be set to M_DEFAULT, in which case, the default graphics context of the current MIL application is used.

The FontName parameter specifies the font with which to write text. This parameter can be set to one of the following:

M_FONT_DEFAULT_LARGE Default font with 16×32 pixel wide characters.
M_FONT_DEFAULT_MEDIUM Default font with 12×24 pixel wide characters.
M_FONT_DEFAULT_SMALL Default font with 8×16 pixel wide characters.
M_FONT_DEFAULT In general corresponds to M_FONT_DEFAULT_SMALL.

See also

MgraFontScale, MgraAlloc, MgraText, MgraInquire

《MgraFont()函数》上有2条评论

评论已关闭。