|
Summary
Set the terminal emulation font.
Syntax
Boolean VtFont (CurrentFont)
Description
To select the type of font to be used for VT220 emulation, call the VtFont method and pass the font type.
The VtFont method takes a current font type (CurrentFont) as its parameter and returns a boolean. The current font must be set to a valid font option (refer to the CurrentFont property for a
list of fonts). If the terminal emulation font can be successfully set, then the method returns True; otherwise, it returns False. The application should ensure that the method was successfully
executed by checking the return value.
Calling this method is equivalent to setting the VtAction property to VT_SET_VTFONT. This method can only be called after the VT220 emulation window has been created and initialized.
The following values are valid for font type:
| Value |
Meaning |
| FONT_NONE |
None |
| FONT_DEC |
Large DEC font |
| FONT_SMALL |
Small DEC Font |
| FONT_IBM |
IBM Font |
| FONT_ANSI |
ANSI Font |
| FONT_TERMINAL |
Terminal Font |
| FONT_CUSTOM |
Custom Font |
| FONT_DEC_MEDIUM |
Medium DEC font |
Example
Result = VT220Client.VtFont (FONT_DEC) If Result = False Then MsgBox "Cannot set terminal font", 64, "Sample Program" End If
|