| Customize Help
| Save Settings

MdmrExportFont



Function Map
Synopsis
Export a font from a SureDotOCR context.
Syntax
void MdmrExportFont(
MIL_CONST_TEXT_PTR FileName, //in
MIL_INT64 FileFormat, //in
MIL_ID ContextDmrId, //in
MIL_INT64 FontLabelOrIndex, //in
MIL_INT64 ControlFlag //in
)
Description

This function exports a font from a SureDotOCR context to a file. The exported font includes all its characters. String models use fonts to read dot-matrix text. Once you export a font, you can import it to any SureDotOCR context using MdmrImportFont().

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
FileName

Specifies the name and path of the SureDotOCR font file in which to export the font. The function handles (internally) the opening and closing of the file. For easier use with other Matrox Imaging software products, the specified file name must use the MDMRF file extension, which refers to a SureDotOCR font file. If you specify a file that already exists, it will be overwritten.

Set this parameter to one of the values below.

function map For specifying the file name and path
Click to summarizeValue Description
Click to summarize M_INTERACTIVE
[This is only applicable to Windows]

Opens a dialog box from which to interactively specify the drive, directory, and name of a SureDotOCR font file.

Click to summarize MIL_TEXT("FileName") 1

Specifies the drive, directory, and name of a SureDotOCR font file (for example, "C:\mydirectory\MySweetSweetFont.mdmrf").

To specify a SureDotOCR font file on a remote computer (under Distributed MIL), prefix the file name string with "remote:///" (for example, "remote:///C:\mydirectory\MySweetSweetFont.mdmrf").

(summarize)

1 If you are passing the value in a variable, don't enclose it in MIL_TEXT().

FileFormat

Specifies the format of the file in which to export the font. Set this parameter to the value below.

function map For specifying the file format
Click to summarizeValue Description
Click to summarize M_DMR_FONT_FILE

Specifies a SureDotOCR font file format (MDMRF). See MdmrImportFont() for information on how SureDotOCR font files represent their data.

(summarize)
ContextDmrId

Specifies the identifier of the SureDotOCR context from which to export the font. The context must have been previously allocated on the system using MdmrAlloc().

FontLabelOrIndex

Specifies the label or index of the font to export from the SureDotOCR context. Set this parameter to one of the values below.

function map For identifying the font
Click to summarizeValue Description
Click to summarize

Specifies to export the font by indicating its index.

(summarize)
Parameters

Set this parameter to the following:

0 <= Value < M_NUMBER_OF_FONTS

Specifies the index of the font to export.

Click to summarize

Specifies to export the font by indicating its label.

(summarize)
Parameters

Set this parameter to the following:

Value > 0

Specifies the label of the font to export.

ControlFlag

Reserved for future expansion and must be set to M_DEFAULT.

Compilation information
Header Include mil.h.
Library Use mil.lib; mildmr.lib.
DLL Requires mil.dll; mildmr.dll.
INTERACTIVE DMR FONT FILE NUMBER OF FONTS