MIL_CONST_TEXT_PTR FileName, | //in |
MIL_INT64 FileFormat, | //in |
MIL_ID ContextDmrId, | //in |
MIL_INT64 FontLabelOrIndex, | //in |
MIL_INT64 ControlFlag | //in |
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().
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.
For specifying the file name and path
|
|||||||||||||||||||||||||||||||||||||||
Value | Description | ||||||||||||||||||||||||||||||||||||||
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. |
||||||||||||||||||||||||||||||||||||||
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)Specifies the drive, directory, and name of a SureDotOCR font file (for example, "C:\mydirectory\MySweetSweetFont.mdmrf"). (more details...) |
1 If you are passing the value in a variable, don't enclose it in MIL_TEXT().
Specifies the format of the file in which to export the font. Set this parameter to the value below.
For specifying the file format
|
|||||||||||||||||||||||||||||||||||||||
Value | Description | ||||||||||||||||||||||||||||||||||||||
M_DMR_FONT_FILE |
Specifies a SureDotOCR font file format (MDMRF). See MdmrImportFont() for information on how SureDotOCR font files represent their data. (summarize)Specifies a SureDotOCR font file format (MDMRF). (more details...) |
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().
Specifies the label or index of the font to export from the SureDotOCR context. Set this parameter to one of the values below.
For identifying the font
|
|||||||||||||||||||||||||||||||||||||||
Value | Description | ||||||||||||||||||||||||||||||||||||||
Specifies to export the font by indicating its index. (summarize)Specifies to export the font by indicating its index. (more details...) |
|||||||||||||||||||||||||||||||||||||||
Parameters | |||||||||||||||||||||||||||||||||||||||
Set this parameter to the following: |
|||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||
Specifies to export the font by indicating its label. (summarize)Specifies to export the font by indicating its label. (more details...) |
|||||||||||||||||||||||||||||||||||||||
Parameters | |||||||||||||||||||||||||||||||||||||||
Set this parameter to the following: |
|||||||||||||||||||||||||||||||||||||||
|
Header | Include mil.h. |
Library | Use mil.lib; mildmr.lib. |
DLL | Requires mil.dll; mildmr.dll. |