diff --git a/freeglut/web-src/docs/api.php b/freeglut/web-src/docs/api.php index 4a3cad3..196f489 100644 --- a/freeglut/web-src/docs/api.php +++ b/freeglut/web-src/docs/api.php @@ -183,7 +183,9 @@ will thus not work with the currently available 2.8.1 release.
  • glutStrokeCharacter
  • glutStrokeString
  • glutStrokeWidth
  • +
  • glutStrokeWidthf
  • glutStrokeLength
  • +
  • glutStrokeLengthf
  • glutStrokeHeight
  • @@ -1945,8 +1947,8 @@ as asterisks.

    14.8 glutStrokeWidth

    -The glutStrokeWidth function returns the width in pixels of -a single character in the specified stroke font. +The glutStrokeWidth function returns the width in model units of +a single character in the specified stroke font, rounded to an int.

    Usage

    @@ -1974,11 +1976,42 @@ number; the function rounds it to the nearest integer for the return value.

    Nonexistent characters return the width of an asterisk.

    -

    14.9 glutStrokeLength

    +

    14.9 glutStrokeWidthf

    -The glutStrokeLength function returns the width in pixels of -a string of characters in the specified stroke font. +The glutStrokeWidthf function returns the width in model units of +a single character in the specified stroke font. +

    + +

    Usage

    + +

    GLfloat glutStrokeWidthf ( void *font, +int character );

    + +

    font +The stroke font to use in calculating +the character width
    + character The ASCII +code of the character

    + +

    Description

    + +

    +The glutStrokeWidthf +function returns the width of the given character in the specified stroke +font. Function was included in an unreleased GLUT 3.8. +

    + +

    Changes From GLUT

    + +

    Nonexistent characters return the width +of an asterisk.

    + +

    14.10 glutStrokeLength

    + +

    +The glutStrokeLength function returns the width in model units of +a string of characters in the specified stroke font, rounded to an int.

    Usage

    @@ -1994,10 +2027,10 @@ whose width is to be calculated

    Description

    -The glutStrokeLength function returns the width in pixels of the given character string in +The glutStrokeLength function returns the width in model units of the given character string in the specified stroke font. Because the font is a stroke font, the width of an individual character is a floating-point number. Freeglut - adds the floating-point widths and rounds the funal result to return the + adds the floating-point widths and rounds the final result to return the integer value. Thus the return value may differ from the sum of the character widths returned by a series of calls to glutStrokeWidth. The width of nonexistent characters is counted to be the width @@ -2007,12 +2040,38 @@ of an asterisk.

    one or more carriage returns, freeglut calculates the widths in pixels of the lines separately and returns the largest width.

    -

    Changes From GLUT

    +

    14.11 glutStrokeLengthf

    -

    GLUT does not include this function. -

    +

    +The glutStrokeLengthf function returns the width in model units of +a string of characters in the specified stroke font. +

    -

    14.10 glutStrokeHeight

    +

    Usage

    + +

    GLfloat glutStrokeLengthf ( void *font, +char *string );

    + +

    font The stroke +font to use in calculating the character width
    + string String of characters +whose width is to be calculated

    + +

    Description

    + +

    +The glutStrokeLengthf function returns the width in model units of the given character string in +the specified stroke font. The return value is equal to the sum of the +character widths returned by a series of calls to +glutStrokeWidthf. Function was included in an unreleased GLUT 3.8. +The width of nonexistent characters is counted to be the width +of an asterisk.

    + +

    If the string contains +one or more carriage returns, freeglut calculates the widths in pixels +of the lines separately and returns the largest width.

    + +

    14.12 glutStrokeHeight

    The glutStrokeHeight function returns the height in pixels of