glutBitmapWidth (3) - Linux Manuals

glutBitmapWidth: Return the width of a bitmapped character, in pixels.

NAME

glutBitmapWidth - Return the width of a bitmapped character, in pixels.

LIBRARY

OpenGLUT - bitmapfont

SYNOPSIS

In openglut.h Ft int Fn glutBitmapWidth void *font int character

PARAMETERS

Bf Em
 font Ef
      A bitmapped font identifier.

Bf Em
 character Ef
 A character code.

DESCRIPTION

Returns the horizontal OpenGL raster position offset for a Bf Sy
 character Ef
 in a bitmapped  Bf Sy
 font. Ef
 

It is also an upper bound on the width of the bitmapped glyph for Bf Sy
 character, Ef
 though not all letters will use their full width, especially fixed-width fonts.

Returns 0 if the Bf Sy
 character Ef
 is out of the inclusive range [0,255] or if the Bf Sy
 font Ef
 is invalid.

CAVEATS

In GLUT, some glyphs could render to the left of the starting position, in some fonts. OpenGLUT's fonts all position all of their glyphs to start at, or to the right of, the initial position.