print.font parameter
Use the print.font parameter to set or query the font that is used by the print command.
Availability
query command
set command
current parameter
default parameter
install parameter
Scope
print.font is scoped to the current view.
current.print.font is scoped to the current view.
default.print.font is globally scoped.
install.print.font is globally scoped.
Syntax
query print.font set print.font [ screen | default | "fontName" ] query current.print.font query default.print.font set default.print.font [ screen | install | "fontName" ] query install.print.font
Parameters
screen If you specify the screen parameter for the set print.font command, the current view will use the value of current.font as the font for the print command. If you specify the screen parameter for the set default.print.font command, within all document views that have print.font set to default, the print command will use the value of current.font. default If you specify the default parameter for the set print.font command, the current view will use the value of default.print.font as the font for the print command. fontName If you specify the fontName parameter for the set print.font command, within the current view, the print command will use the font indicated by fontName. If you specify the fontName parameter for the set default.print.font command, within all document views that have the print.font set to default, the print command will use the font indicated by fontName. 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, bolditalic, or italic and height is a decimal representation of the font height.
install If you specify the install parameter for the set default.print.font command, all of the views that have print.font set to default will use the value of install.print.font to determine the font that should be used by the print command.
Description
If you do not specify any of the parameters for the set print.font command, default is assumed.
If you do not specify any of the parameters for the set default.print.font command, install is assumed.
The query current.print.font command returns the font that will be used, within the current view, by the print command.
Examples
query print.font set print.font screen query current.print.font query default.print.font set default.print.font "Courier New-8" query install.print.font
print command
query command
set command
current parameter
default parameter
font parameter
install parameter
print.bottomMargin parameter
print.leftMargin parameter
print.lineNumbers parameter
print.rightMargin parameter
print.tokenized parameter
print.topMargin parameter
print action