glutStrokeWidth

returns the width/length of a stroke character/string.

Signature

glutStrokeLength( const( string ) )-> int
glutStrokeLength( font , string ) -> <class 'ctypes.c_int'>
glutStrokeLength( c_void_p(font), POINTER(c_ubyte)(string) ) -> c_int
glutStrokeLengthf( const( string ) )-> float
glutStrokeWidth( int( character ) )-> int
glutStrokeWidth( font , character ) -> <class 'ctypes.c_int'>
glutStrokeWidth( c_void_p(font), c_int(character) ) -> c_int
glutStrokeWidthf( int( character ) )-> float

Parameters

VariablesDescription
font
Stroke font to use. For valid values, see the glutStrokeWidth description.
character
Character to return width of (not confined to 8 bits).
string
Text string (8-bit characters), null terminated.

See Also

glutStrokeCharacter glutBitmapWidth