Tao.FreeGlut SDK Documentation

Glut.glutBitmapLength Method 

Returns the length of a bitmap font string.

[Visual Basic]
Public Shared Function glutBitmapLength( _
   ByVal font As IntPtr, _
   ByVal text As String _
) As Integer
[C#]
public static int glutBitmapLength(
   IntPtr font,
   string text
);

Parameters

font
Bitmap font to use. For valid values, see the glutBitmapCharacter description.
text
Text string.

Return Value

Length of string in pixels.

Remarks

glutBitmapLength returns the length in pixels of a string (8-bit characters). This length is equivalent to summing all the widths returned by glutBitmapWidth for each character in the string.

See Also

Glut Class | Tao.FreeGlut Namespace | glutBitmapCharacter | glutStrokeWidth