glutStrokeWidth man page on RedHat

Man page or keyword search:  
man Server   29550 pages
apropos Keyword Search (all sections)
Output format
RedHat logo
[printable version]

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 letters
     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 suf‐
     fixes), 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
[top]

List of man pages available for RedHat

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net