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 */
23 # endif /* HAVE_JWZGLES */
25 # define APIENTRY /**/
28 #include "glutstroke.h"
32 glutStrokeWidth(GLUTstrokeFont font, int c)
34 StrokeFontPtr fontinfo;
35 const StrokeCharRec *ch;
38 fontinfo = (StrokeFontPtr) __glutFont(font);
40 fontinfo = (StrokeFontPtr) font;
43 if (c < 0 || c >= fontinfo->num_chars)
45 ch = &(fontinfo->ch[c]);
53 glutStrokeLength(GLUTstrokeFont font, const unsigned char *string)
56 StrokeFontPtr fontinfo;
57 const StrokeCharRec *ch;
60 fontinfo = (StrokeFontPtr) __glutFont(font);
62 fontinfo = (StrokeFontPtr) font;
66 for (; *string != '\0'; string++) {
68 if (c >= 0 && c < fontinfo->num_chars) {
69 ch = &(fontinfo->ch[c]);