FUNCTIONS GT

GTI_FONTATTRIBUTE

Query or change how characters are drawn

Syntax

Signature
GtInfo( GTI_FONTATTRIBUTE, [nAttributes] ) --> nAttributes

Arguments

GTI_FONTATTRIBUTE

The selector, from gtinfo.ch.

nAttributes

A sum of GTI_FONTA_* flags.

Return value

The flags before the call.

Description

The flags are defined in gtinfo.ch:

FlagMeaning
GTI_FONTA_FIXMETRICevery character takes the same width
GTI_FONTA_CLRBKGthe background of a cell is cleared before the character
GTI_FONTA_DRAWBOXthe driver draws box and block characters itself, so the lines meet
GTI_FONTA_CTRLCHARSthe characters below 32 are shown as symbols
GTI_FONTA_NOSTRETCHcharacters are not stretched to the cell

GTSDL3 and GTGLFW always draw with GTI_FONTA_FIXMETRIC and GTI_FONTA_CLRBKG and keep no other flags.

Notes

Supported by GTWVT, GTSDL3, GTXWC and GTGLFW. On other terminals the result is NIL.

Output

See also