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 */
15 # include <OpenGL/gl.h>
20 # define APIENTRY /**/
23 #include "glutstroke.h"
27 glutStrokeWidth(GLUTstrokeFont font, int c)
29 StrokeFontPtr fontinfo;
30 const StrokeCharRec *ch;
33 fontinfo = (StrokeFontPtr) __glutFont(font);
35 fontinfo = (StrokeFontPtr) font;
38 if (c < 0 || c >= fontinfo->num_chars)
40 ch = &(fontinfo->ch[c]);
48 glutStrokeLength(GLUTstrokeFont font, const unsigned char *string)
51 StrokeFontPtr fontinfo;
52 const StrokeCharRec *ch;
55 fontinfo = (StrokeFontPtr) __glutFont(font);
57 fontinfo = (StrokeFontPtr) font;
61 for (; *string != '\0'; string++) {
63 if (c >= 0 && c < fontinfo->num_chars) {
64 ch = &(fontinfo->ch[c]);