SysTutorials

Linux Manual Pages › Section 3

glutbitmaplength(3)

glutBitmapLength – Return the width of a bitmapped string, in pixels.

Library

OpenGLUT – bitmapfont

Synopsis

In openglut.h Ft int Fn glutBitmapLength void *font const unsigned char *string

Parameters

Bf Em
 font Ef
    A bitmapped font identifier.

Bf Em
 string Ef
  A NUL-terminated ASCII string.

Description

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

As with glutBitmapString(), newlines are taken into consideration.

Returns 0 if the Bf Sy
 font Ef
 is invalid or if the Bf Sy
 string Ef
 is empty or  Bf Sy
 NULL. Ef
 

See Also

glutBitmapString(3) glutBitmapWidth(3) glutBitmapHeight(3) glutStrokeLength(3)