2 /* Copyright (c) Mark J. Kilgard, 1995. */
4 /* This program is freely distributable without licensing fees
5 and is provided without guarantee or warrantee expressed or
6 implied. This program is -not- in the public domain. */
10 #else /* for xscreensaver */
19 # endif /* HAVE_JWZGLES */
21 # define APIENTRY /**/
24 #include "glutstroke.h"
28 glutStrokeWidth(GLUTstrokeFont font, int c)
30 StrokeFontPtr fontinfo;
31 const StrokeCharRec *ch;
34 fontinfo = (StrokeFontPtr) __glutFont(font);
36 fontinfo = (StrokeFontPtr) font;
39 if (c < 0 || c >= fontinfo->num_chars)
41 ch = &(fontinfo->ch[c]);
49 glutStrokeLength(GLUTstrokeFont font, const unsigned char *string)
52 StrokeFontPtr fontinfo;
53 const StrokeCharRec *ch;
56 fontinfo = (StrokeFontPtr) __glutFont(font);
58 fontinfo = (StrokeFontPtr) font;
62 for (; *string != '\0'; string++) {
64 if (c >= 0 && c < fontinfo->num_chars) {
65 ch = &(fontinfo->ch[c]);