Read in the first font description in the specified file. This font description will replace any previously imported font description. If you have modified SpotSize and/or LineSpacing in the currently loaded font, those settings will be lost.
Namespace: Cognex.VisionPro.OCVMaxAssembly: Cognex.VisionPro.OCVMax (in Cognex.VisionPro.OCVMax.dll) Version: 73.0.0.0
Syntax
Parameters
- fileName
- Type: System String
The name of the font file to be imported.
Events
| Event Type | Reason |
|---|---|
| ICogChangedEvent Changed | Fires with all defined state flags set. |
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | If the fileName argument is NULL. |
| ObjectDisposedException | If this CogOCVMaxFont object has already been disposed. |
See Also