General Terminal

GtSetFontDrawBox

Choose how box characters are drawn

Syntax

Signature
void GtSetFontDrawBox( xBool on );

Arguments

on enables the setting with T or disables it with F.

Return value

No return value.

Description

Controls drawing box characters from line primitives instead of the font glyphs on drivers that implement the option. Check the resulting state with GtIsFontDrawBox().

Example

gtsetfontdrawbox.c
#include "xdev-wtui.h"

#include <stdio.h>

int main( void )
{
   xBool previous = GtIsFontDrawBox();

   GtSetFontDrawBox( T );
   printf( "Font Draw Box state: %s\n", GtIsFontDrawBox() ? "on" : "off" );
   GtSetFontDrawBox( previous );

   return 0;
}

See also