Read in a new font description with the specified name from 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: 65.1.0.0
Syntax
Parameters
- fileName
- Type: System String
The name of the font file to be imported.
- fontName
- Type: System String
The name of the font to be imported.
Events
| Event Type | Reason |
|---|---|
| ICogChangedEvent Changed | Fires with all defined state flags set. |
Exceptions
| Exception | Condition |
|---|---|
| ObjectDisposedException | If this CogOCVMaxFont object has already been disposed. |
| ArgumentNullException | If the fileName argument is NULL. |
See Also