CogOCVMaxFont Import Method (String, String)Cognex VisionPro
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.OCVMax
Assembly: Cognex.VisionPro.OCVMax (in Cognex.VisionPro.OCVMax.dll) Version: 65.1.0.0
Syntax

public void Import(
	string fileName,
	string fontName
)

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

Exceptions

ExceptionCondition
ObjectDisposedExceptionIf this CogOCVMaxFont object has already been disposed.
ArgumentNullExceptionIf the fileName argument is NULL.
See Also