1UNTITLED                             LOCAL                            UNTITLED
2

NAME

4     glutBitmapWidth — Return the width of a bitmapped character, in pixels.
5

LIBRARY

7     OpenGLUT - bitmapfont
8

SYNOPSIS

10     #include <openglut.h>
11
12     int
13     glutBitmapWidth(void *font, int character);
14

PARAMETERS

16      font       A bitmapped font identifier.
17
18      character  A character code.
19

DESCRIPTION

21     Returns the horizontal OpenGL raster position offset for a  character  in
22     a bitmapped  font.
23
24     It is also an upper bound on the width of the bitmapped glyph for  char‐
25     acter,  though not all letters will use their full width, especially
26     fixed-width fonts.
27
28     Returns 0 if the  character  is out of the inclusive range [0,255] or if
29     the  font  is invalid.
30

CAVEATS

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

SEE ALSO

37     glutBitmapCharacter(3) glutBitmapLength(3) glutBitmapHeight(3)
38     glutStrokeWidth(3)
39
40
41
42
43                                     Epoch
Impressum