12.20. Font Property

Description

Returns or sets the font for human readable text.

Syntax

object.Font[= Font] 

Remarks

The default font used to draw comment text is typeface of Arial, 9 points. Generally speaking, you should use a sans-serif font for human readable text. Some industries require OCR-B(Optical Character Recognition Revision B) font to be used.

This property is used to retrieve/set font for human readable text. To set /retrieve font used for comment, use CommentFont property.

In Visual Basic you cannot create a Font object using code like Dim X As New Font. If you want to create a Font object, you can use the StdFont object, as demonstrated in the code below:

Dim X As New StdFont
X.Bold = True
X.Name = "Arial"
Dim rc As Long
obj.Font=X

See Also

Section 12.44, “ShowHRText Property”

Section 12.47, “TexAlignment Property”

Section 12.48, “TextOnTop Property”