.FONT
WSupported on Windows
|
|
|
|
.FONT palette_name
Arguments
palette_name
The name of a font palette entry.
Discussion
The .FONT command allows a font to be specified for a general window, input window, or selection window.
Specifying a proportional font for a window causes the window to be sized according to the metrics of that font. Objects are positioned according to rows and columns based upon the metrics of that font, taking into consideration the sizing character — for example, a capital “W” represents a wider cell size than a lowercase “a” — and the existing leading calculations.
If a proportional font is specified, objects in the window that do not support proportional fonts may not display as expected. See Using fonts on Windows for more information.
Although the .FONT command has no visual effect on Unix and OpenVMS systems, it is preserved with the window definition so that the same window library can be used for both non-Windows and Windows systems.
See also
- D_SETWNDFONT and D_GETWNDFONT subfunctions of %U_WNDFONT for more information on modifying and retrieving a window’s font at runtime
- FONT, NOFONT and PROMPTFONT, NOPROMPTFONT qualifiers for .FIELD if you need to specify a field or prompt font, respectively
Examples
This example uses “my_input_font” for the window inpwnd.
.input inpwnd .font my_input_font