| Customize Help
| Save Settings

MgraFontScale



Function Map
Synopsis
Set the font scale of a 2D graphics context.
Syntax
void MgraFontScale(
MIL_ID ContextGraId, //in
MIL_DOUBLE XFontScale, //in
MIL_DOUBLE YFontScale //in
)
Description

This function sets both the vertical and horizontal scaling factor settings of the specified 2D graphics context for use with subsequent MgraText() function calls. These settings only apply to bitmap fonts. When using TrueType fonts, use MgraControl() with M_FONT_SIZE to set the font size.

To change the font scale for graphics already added to a 2D graphics list, use MgraControlList().

Note that this function reference has not been updated for a MIL system added during a MIL update. Refer to the MIL system's release note to see which MIL system’s documentation you should use in its place and any possible differences.
Parameters
This function is not supported on the selected boards.
This function reference has not been updated for the selected MIL system. To show the content of this page, choose a second MIL system; refer to the MIL system's release note to see which MIL system’s documentation to choose and any possible differences.
Parameters
ContextGraId

Specifies the identifier of the 2D graphics context for which to set the font scale. This parameter must be set to one of the following values:

function map For specifying the 2D graphics context
Click to summarizeValue Description
Click to summarize 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)
Click to summarize MIL 2D graphics context identifier

Specifies a valid 2D graphics context identifier, which you have allocated using MgraAlloc().

XFontScale INQ

Specifies the X-scale-factor by which to multiply the width of the font characters. This parameter can be independently set to any positive floating-point value. The default scale factor is 1.0.

Note, using a font with a scale of 1.0 accelerates text drawing.

YFontScale INQ

Specifies the Y-scale-factor by which to multiply the height of the font characters. This parameter can be independently set to any positive floating-point value. The default scale factor is 1.0.

Note, using a font with a scale of 1.0 accelerates text drawing.

Compilation information
Header Include mil.h.
Library Use mil.lib.
DLL Requires mil.dll.
DEFAULT