| Functions | |
| void | glutBitmapCharacter (void *font, int character) | 
| int | glutBitmapHeight (void *font) | 
| int | glutBitmapLength (void *font, const unsigned char *string) | 
| void | glutBitmapString (void *font, const unsigned char *string) | 
| int | glutBitmapWidth (void *font, int character) | 
OpenGLUT variable width bitmap fonts:
The fonts are extracted from an open-source X server, and cover ISO-8859-1, with printable values in the ranges 32--126 and 160--255. Additionally, the fixed-width fonts have additional glyphs in the range 1 through 31.
The heights of the fonts are not generally encoded in their names, though the names give some indication of the heights. For example, the 8x13 fixed-width font is 14 pixels tall. The fixed width fonts have their widths embedded in their names: GLUT_BITMAP_8_BY_13 and GLUT_BITMAP_9_BY_15 .
| 
 | ||||||||||||
| Draw a bitmapped character. 
 
 Nothing is drawn, and the raster position is unaffected when either: 
 
 
 
 | 
| 
 | 
| Return the height of a given font, in pixels. 
 
 Returns 0 if font is invalid. 
 
 | 
| 
 | ||||||||||||
| Return the width of a bitmapped string, in pixels. 
 
 As with glutBitmapString(), newlines are taken into consideration. Returns 0 if the font is invalid or if the string is empty or NULL. 
 | 
| 
 | ||||||||||||
| Draw a string of bitmapped characters. 
 
 The starting raster position is used as the left margin for multi-line strings. Each newline character repositions the raster position at the beginning of the next line. Nothing is drawn, and the raster position is unaffected when either: 
 
 
 | 
| 
 | ||||||||||||
| Return the width of a bitmapped character, in pixels. 
 
 It is also an upper bound on the width of the bitmapped glyph for character, though not all letters will use their full width, especially fixed-width fonts. Returns 0 if the character is out of the inclusive range [0,255] or if the font is invalid. 
 
 |