Syntax
void GtSetFont( const char *name, int height, int width );
Arguments
name is the font name. Pass NULL or an empty string to keep the current name.
height, width give the requested cell dimensions in pixels. Use 0 to keep either value.
Return value
No return value.
Description
Requests the changes from the active backend. Drivers with built-in fonts may keep their own font and metrics.
Example
#include "xdev-wtui.h"
#include <stdio.h>
int main( void )
{
GtSetFont( NULL, 20, 10 );
printf( "Text cell: %d x %d\n", GtGetFontWidth(), GtGetFontSize() );
return 0;
}