General Terminal

GtSetFontFixMetric

Control fixed-width glyph drawing

Syntax

Signature
void GtSetFontFixMetric( xBool on );

Arguments

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

Return value

No return value.

Description

Controls the fixed-width drawing metric used for each character in a text cell. Check the resulting state with GtIsFontFixMetric().

Example

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

#include <stdio.h>

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

   GtSetFontFixMetric( T );
   printf( "Font Fix Metric state: %s\n", GtIsFontFixMetric() ? "on" : "off" );
   GtSetFontFixMetric( previous );

   return 0;
}

See also