Tao.FreeGlut SDK Documentation

Glut.glutStrokeLength Method 

Returns the length of a stroke font string.

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

Parameters

font
Stroke font to use. For valid values see the glutStrokeCharacter description.
text
Text string.

Return Value

The length in modeling units of a string.

Remarks

glutStrokeLength returns the length in modeling units of a string (8-bit characters). This length is equivalent to summing all the widths returned by glutStrokeWidth for each character in the string.

See Also

Glut Class | Tao.FreeGlut Namespace | glutBitmapWidth | glutStrokeCharacter