MIL_CONST_TEXT_PTR FileName, | //in |
MIL_INT64 Operation, | //in |
MIL_ID SystemId, | //in |
MIL_ID *FontContextOcrIdPtr | //in-out |
This function restores an OCR font context that was previously saved to a file using MocrSaveFont().
This function can also restore a font context from a predefined font context file distributed with MIL (such as, C:\Program Files\Matrox Imaging\contexts\ Semi_M12-92.mfo). Alternatively, this function can load only font constraint or control data from the file into the specified OCR font context.
When an OCR font context is no longer required, it should be freed with MocrFree().
Specifies the path and name of the file from which to restore the MIL OCR font context (for example, "C:\mydirectory\myfile"). The function handles (internally) the opening and closing of the file.
The predefined font files, distributed with MIL, are in the "C:\Program Files\Matrox Imaging\contexts\" folder.
To open the file on the remote computer (under Distributed MIL), prefix the specified file name string with "remote:///" (for example, "remote:///C:\mydirectory\myfile").
This parameter can be set to one of the following:
![]() |
|||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Description | ||||||||||||||||||||||||||||||||||||||
![]() ![]() |
[This is
only applicable to Windows]
Opens the File Open dialog box from which you can interactively specify the drive, directory, and name of the file. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies to restore an OCR user-defined font. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies to restore an OCR font context typically used with the MICR CMC7 standard. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies to restore an OCR font context typically used with the MICR E-13b standard. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies to restore an OCR font context that uses the OCR-A BT font. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies to restore an OCR font context that uses the OCR-B BT font. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies to restore an OCR font context following the SEMI M12 standard. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies to restore an OCR font context following the SEMI M13 standard. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies to restore an OCR font context typically used with the SEMI conductor standard. |
1 If you are passing the value in a variable, don't enclose it in MIL_TEXT().
Specifies which type of OCR font context data to restore. It can be set to one of the following values:
![]() |
|||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Description | ||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Same as M_RESTORE. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Loads only font constraint data into the specified OCR font context. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Loads only font control data into the specified OCR font context. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Allocates a new OCR font context on the specified system, and initializes it with the font, control, and constraint data, restored from file. |
Specifies the system on which the OCR font context is allocated.
This parameter should be set to one of the following values:
![]() |
|||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Description | ||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies the default Host system of the current MIL application. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies a valid system identifier, previously allocated using MsysAlloc(). |
Specifies the address of the variable to/from which the font identifier is to be written/read.
Since after performing a restore operation, MocrRestoreFont() also returns the OCR font context identifier, this parameter can be set to M_NULL. If the restore operation fails, M_NULL is returned as the identifier.
Header | Include mil.h. |
Library | Use mil.lib; milocr.lib. |
DLL | Requires mil.dll; milocr.dll. |