| MIL 10 Reference
| Customize Help
| Save Settings

MgraFontScale



See also
Availability
Available in MIL-Lite
Available in MIL

Available on Windows
Available on Linux

Available on Non-Matrox computer
Available on Matrox 4Sight-X
Available on Matrox 4Sight GP
Available on Matrox Supersight
function map Function map
Examples
None.
Synopsis
Set the font scale of a 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 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 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 if there is complementary information.
Parameters
This function is not supported on the selected boards.
Parameters
ContextGraId

Specifies the identifier of the 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 graphics context
CollapseValue Description
Collapse M_DEFAULT

Specifies that the default graphics context of the current MIL application is used.

Note that there is a different default graphics context for each thread.

(summarize)
Collapse MIL graphics context identifier

Specifies a valid 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