glutBitmapLength - Man Page

Return the width of a bitmapped string, in pixels.

Library

OpenGLUT - bitmapfont

Synopsis

#include <openglut.h>

int
glutBitmapLength(void *font, const unsigned char *string);

Parameters


font

A bitmapped font identifier.


string

A NUL-terminated ASCII string.

Description

Returns the maximum horizontal OpenGL raster position offset for a


string

in a bitmapped


font.

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

Returns 0 if the


font

is invalid or if the


string

is empty or


NULL.

See Also

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

Referenced By

glutBitmapHeight(3), glutBitmapWidth(3), glutStrokeLength(3).