Table: | For specifying the font |
MIL_ID ContextGraId, | //in |
MIL_INT64 FontName | //in |
This function associates a character font with the specified 2D graphics context for use with subsequent MgraText() function calls.
To change the font for graphics already added to a 2D graphics list, use MgraControlList().
Specifies the identifier of the 2D graphics context with which to associate the character font. This parameter must be set to one of the following values:
For specifying the 2D graphics context
|
|||||||||||||||||||||||||||||||||||||||
Value | Description | ||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies that the default 2D graphics context of the current MIL application is used. Note that there is a different default 2D graphics context for each thread. (summarize)Specifies that the default 2D graphics context of the current MIL application is used. (more details...) |
||||||||||||||||||||||||||||||||||||||
MIL 2D graphics context identifier |
Specifies a valid 2D 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:
For specifying the font
|
|||||||||||||||||||||||||||||||||||||||
Value | Description | ||||||||||||||||||||||||||||||||||||||
Specifies the font. In this case, MgraText() will use TrueType and Unicode features to draw text. This allows you to draw text using different sizes and TrueType fonts installed on your computer. This also allows you to draw any Unicode text (depending on the font). (summarize)Specifies the font. (more details...) |
|||||||||||||||||||||||||||||||||||||||
Parameters | |||||||||||||||||||||||||||||||||||||||
Specifies either a font and its features or a path to a font. |
|||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||
M_FONT_DEFAULT |
Same as M_FONT_DEFAULT_SMALL. |
||||||||||||||||||||||||||||||||||||||
M_FONT_DEFAULT_LARGE |
Specifies a large bitmap font, where each character is drawn in a 16x32 pixel area. |
||||||||||||||||||||||||||||||||||||||
M_FONT_DEFAULT_MEDIUM |
Specifies a medium bitmap font, where each character is drawn in a 12x24 pixel area. |
||||||||||||||||||||||||||||||||||||||
M_FONT_DEFAULT_SMALL |
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. |