General Terminal

GtSetFontNoStretch

Control stretching narrow glyphs

Syntax

Signature
void GtSetFontNoStretch( xBool on );

Arguments

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

Return value

No return value.

Description

Controls whether the driver preserves a narrow glyph’s width inside a cell. Check the resulting state with GtIsFontNoStretch().

Example

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

#include <stdio.h>

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

   GtSetFontNoStretch( T );
   printf( "Font No Stretch state: %s\n", GtIsFontNoStretch() ? "on" : "off" );
   GtSetFontNoStretch( previous );

   return 0;
}

See also