fonts Parameter

Sets the character fonts for the current line.

Scope: Line

Syntax

query fonts 
set fonts String 

Option

String 
The font string.

Description

The fonts parameter sets the fonts for individual characters in the current line. You must supply a string of characters that has the same length as the current content of the line. Each character in String refers to a currently defined font and sets the font of the corresponding character in the line.

Note: If a parser is loaded, all the fonts are specified by the parser. The set fonts parameter has no effect.

Example

The current line is:

#include <stdio.h>

To set the angled brackets and the hash (#) sign of the current line to font A and the remaining characters to font B, type:

set fonts abbbbbbb_abbbbbbba

The underscore symbol denotes a space in the line.

API Return Code

-2 The length of the font string does not match that of the line.

fontlist Parameter