[ Previous | Next | Contents | Glossary | Home | Search ]
GL3.2 for AIX: Graphics Library (GL) Technical Reference

font Subroutine


Selects a raster font for drawing text strings.


Graphics Library

C (libgl.a)

FORTRAN (libfgl.a)

C Syntax

void font(Int32 fontnum)


INTEGER*4 fontnum


The font subroutine selects the raster font that the charstr subroutine uses when it draws a text string. This font remains in effect until you call the font subroutine again. Font 0 (zero) is the default.


fontnum Specifies a font identifier, an index into the font table built by the defrasterfont subroutine. If you specify a font number that is not defined, the system selects font 0 (zero).


The example C language programs curved.c and font3.c use the font subroutine to select a raster font defined with the defrasterfont subroutine.

Implementation Specifics

This subroutine is part of GL in the AIXwindows Environment/6000 Version 1, Release 2 with AIXwindows/3D Feature.


/usr/include/gl/gl.h Contains C language constant and variable type definitions for GL.
/usr/include/gl/fgl.h Contains FORTRAN constant and variable type definitions for GL.

Related Information

Drawing a string of raster characters on the screen with the charstr subroutine.

Defining bitmaps for a raster font with the defrasterfont subroutine.

Returning the baseline extent of the longest character descender with the getdescender subroutine.

Returning the current raster font number with the getfont subroutine.

Returning the maximum character height in the current raster font with the getheight subroutine.

Returning the width of the specified text string with the strwidth subroutine.

AIX Graphics Library Overview and Creating Text Characters.

[ Previous | Next | Contents | Glossary | Home | Search ]