Click here to show toolbars of the Web Online Help System: show toolbars |
Table: | For specifying the font |
MIL_ID ContextGraId, | //in |
MIL_INT64 FontName | //in |
This function associates a character font with the specified graphics context for use with subsequent MgraText() function calls.
To change the font for graphics already added to a graphics list, use MgraControlList().
Specifies the identifier of the graphics context with which to associate the character font. This parameter must be set to one of the following values:
![]() |
|||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Description | ||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies that the default graphics context of the current MIL application is used. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies a valid graphics context identifier, which you have allocated using MgraAlloc(). |
Specifies the font with which to write text. This parameter can be set to one of the following:
![]() |
|||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Description | ||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies the font. |
||||||||||||||||||||||||||||||||||||||
Parameters | |||||||||||||||||||||||||||||||||||||||
Specifies either a font and its features or a path to a font. |
|||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Same as M_FONT_DEFAULT_SMALL. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies a large bitmap font, where each character is drawn in a 16x32 pixel area. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies a medium bitmap font, where each character is drawn in a 12x24 pixel area. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies a small bitmap font, where each character is drawn in a 8x16 pixel area. |
1 If you are passing the value in a variable, don't enclose it in MIL_TEXT().
Header | Include mil.h. |
Library | Use mil.lib. |
DLL | Requires mil.dll. |