centos man page for glutstrokewidth

Query: glutstrokewidth

OS: centos

Section: 3

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

UNTITLED
LOCAL UNTITLED
NAME
glutStrokeWidth -- Returns the width in pixels of a character in a given font.
LIBRARY
OpenGLUT - fonts
SYNOPSIS
#include <openglut.h> float glutStrokeWidth(void *fontID, int character);
PARAMETERS
fontID A GLUT stroked font identifier. character A character code.
DESCRIPTION
This function reports how far the model space origin will advance if you putput this character in the font named by fontID. Not all let- ters will use their full width, especially in fixed-width fonts. Returns 0 if character is out of range or if the fontID is invalid.
CAVEATS
Historically, this function has been described as returning a pixel-width, but was implemented to return the width in model-space units, rounded to integers. GLUT never resolved this, and freeglut duplicated the confusion. OpenGLUT has decided to stay in model-space and to return the unrounded floating point value. An unreleased GLUT 3.8 was supposed to include glutStrokeWidthf() and glutStrokeLengthf() (note the *f suffixes), but that is not in wide use.
TODO
Determine if any glyphs are either wider than this function or if they render outside of the bounding box given by (0,-descent) by (width,height-descent) .
SEE ALSO
glutStrokeCharacter(3) glutStrokeLength(3) glutStrokeHeight(glutBitmapWidth) 3 Epoch
Related Man Pages
glutbitmapcharacter(3glut) - mojave
glutbitmapcharacter(3glut) - redhat
xquerytexta(3) - hpux
xquerytextb(3) - hpux
glutbitmapcharacter(3glut) - osx
Similar Topics in the Unix Linux Community
New &amp; Saying Hi
Changing particular field in fixed width file
summing up the fields in fixed width file
OSI model, communication between same layers but on different machines
how to find lenght of fixed width file record?