The font parameter may be used to query or set the current font used to display text in the edit window.
query command
set command
current parameter
default parameter
install parameter
font is scoped to the current view.
current.font is scoped to the current view.
default.font is globally scoped.
install.font is globally scoped.
query font set font [ default | "fontName" ] query current.font query default.font set default.font [ install | "fontName" ] query install.font
default | If you specify the default parameter for the set font command, the current view will use the value of default.font to determine the font that should be used to display text in the edit window. |
fontName | If you specify the fontName parameter for the set
font command, the font indicated by fontName will be used by
the current view. If you specify the fontName parameter for
the set default.font command, the font indicated by fontName will
be used by all views that have font set to default.
The fontName parameter should be in one of the following forms:
where style is one of bold, italic, bold italic, or regular, and height is a decimal representation of the font height. |
install | If you specify the install parameter for the set default.font command, all of the views that have font set to default will use the value of install.font to determine the font that should be used to display text in the edit window. |
If you do not specify any of the parameters for the set font command, default is assumed.
If you do not specify any of the parameters for the set default.font command, install is assumed.
The query current.font command will return the font that is being used by the current view.
query font set font "Courier New-8" query current.font query default.font set default.font "Courier New-bold-10" query install.font
query command
set command
current parameter
default parameter
install parameter