fontsize Parameter

Sets the size of the characters for the Source view and the Editor window.

Scope: View

Syntax

query fontsize 
set fontsize [N [Facename ]] | [ default ] 

Option

N 
The point size used to display characters in the Editor. N must be an integer value greater than 0.
Facename 
The desired face name. If no face name is specified, the first font found that meets the size criterion is used.
default 
Font display is controlled by the value of the default parameter.

Description

The fontsize parameter sets the size of the characters for the Editor. The size of the file view remains the same and the file is redrawn with the top line as the top of the new file view. If any typeface has been defined, the Editor sets the corresponding face for the new size.

If the value of the fontsize parameter is default, font and font size are controlled by the value of the default parameter.

Examples

  1. To change the size of the characters in the Editor view to 8 point size, type:
    set fontsize 8 
  2. To change the size of the characters in the Editor view to 10 point size, and the font to System VIO, type:
    set fontsize 10 System VIO 
  3. To change the size of the characters in the Editor view to that specified by the default parameter, type:
    set fontsize default 
  4. To query the size and font of the characters in the Editor view, type:
    query fontsize 

    If this query returns DEFAULT, type the following:

    query default.fontsize

API Return Code

-2 
The value specifed for fontsize is not valid.

default parameter