Functions | |
void | glutStrokeCharacter (void *fontID, int character) |
GLfloat | glutStrokeHeight (void *fontID) |
float | glutStrokeLength (void *fontID, const unsigned char *string) |
void | glutStrokeString (void *fontID, const unsigned char *string) |
float | glutStrokeWidth (void *fontID, int character) |
The stroked fonts are drawn in model space coordinates.
Along with their brief descriptions, the fonts are:
The stroked range from a maximum height of 119.05 model space units to a maximum descender below the baseline of 33.33 units. The fixed-width stroked font characters are all 104.76 units wide. These fonts are from the PEX set, and include only the printable ASCII characters from the space (decimal value 32) to the tilde (value 126).
|
Draw a stroked character.
Does nothing if:
|
|
Returns the height of a given font.
Returns 0 if fontID is invalid.
|
|
Returns model space width of a string in a given font.
Like glutStrokeString(), glutStrokeLength() respects newlines in the input. Returns 0 if:
|
|
Draw a string of stroked characters.
The first character displays at the current model space origin, The origin changes by successive translations. The newline character, \n (ASCII LF) is treated as a newline and resets the origin horizontally while advancing the line 1 font-height down the y-axis. Does nothing if:
Unlike glutBitmapString(), there is little performance advantage to using glutStrokeString() as compared with calling glutStrokeCharacter() yourself for every character.
|
|
Returns the width in pixels of a character in a given font.
Returns 0 if character is out of range or if the fontID is invalid.
|