General Terminal

GtSetResizeFont

Choose whether resizing changes the text font

Syntax

Signature
void GtSetResizeFont( xBool on );

Arguments

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

Return value

No return value.

Description

Controls whether the driver resizes the font while preserving the number of rows and columns. Check the resulting state with GtIsResizeFont().

Example

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

#include <stdio.h>

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

   GtSetResizeFont( T );
   printf( "Resize Font state: %s\n", GtIsResizeFont() ? "on" : "off" );
   GtSetResizeFont( previous );

   return 0;
}

See also