| Customize Help
| Save Settings

MocrSaveFont



Function Map
Synopsis
Save an existing OCR font context to disk.
Syntax
void MocrSaveFont(
MIL_CONST_TEXT_PTR FileName, //in
MIL_INT64 Operation, //in
MIL_ID FontContextOcrId //in
)
Description

This function saves an existing OCR font context to disk using the MIL font file format. The OCR font context's control, constraint, and/or font character data can all be saved; which data is saved depends on the value of the Operation parameter.

The font character data contains the character representation of each character in the OCR font context. The control data includes controls used to specify the operational controls for a read/verify operation (such as M_BLANK_CHARACTERS, and M_TOUCHING_CHAR) and those used to set the characteristics of the target characters (such as M_THICKEN_CHAR, and M_TARGET_CHAR_SPACING). The constraint data specifies which characters can appear at given positions in the search string.

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 file in which to save the font data. It is recommended that you use the MFO file extension for easier use with other Matrox Imaging software products. The function internally handles the opening and closing of this file. If this file already exists, it will be overwritten.

This parameter can be set to one of the following values:

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 the File Save As dialog box from which you can interactively specify the drive, directory, and name of the file.

Click to summarize MIL_TEXT("FileName") 1

Specifies the drive, directory, and name of the file (for example, "C:\mydirectory\myfile"). Typically, OCR font context files have an MFO extension.

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

(summarize)

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

Operation

Specifies which data to save to disk. The Operation parameter can take one of the following values:

function map For specifying the data to save
Click to summarizeValue Description
Click to summarize M_DEFAULT

Saves the same data as M_SAVE.

Click to summarize M_SAVE

Saves the OCR font context.

Click to summarize M_SAVE_CONSTRAINT

Saves only character constraint data.

Click to summarize M_SAVE_CONTROL

Saves only control data.

FontContextOcrId

Specifies the OCR font context to be saved.

Compilation information
Header Include mil.h.
Library Use mil.lib; milocr.lib.
DLL Requires mil.dll; milocr.dll.
INTERACTIVE DEFAULT SAVE SAVE CONSTRAINT SAVE CONTROL