font parameter
Use the font parameter to set or query the current font used to display text in the edit window.
Availability
query command
set command
current parameter
default parameter
install parameter
Scope
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.
Syntax
query font set font [ default | "fontName" ] query current.font query default.font set default.font [ install | "fontName" ] query install.font
Parameters
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:
- fontname-style-height
- fontname-height
- fontname-style
- fontname
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.
Description
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.
Examples
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