General Terminal

GtSetFontSmooth

Change the font smoothing setting

Syntax

Signature
void GtSetFontSmooth( xBool on );

Arguments

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

Return value

No return value.

Description

Controls the font quality flag. The setter also asks the driver to rebuild the font at the current cell height. Check the resulting state with GtIsFontSmooth().

Example

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

#include <stdio.h>

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

   GtSetFontSmooth( T );
   printf( "Font Smooth state: %s\n", GtIsFontSmooth() ? "on" : "off" );
   GtSetFontSmooth( previous );

   return 0;
}

See also