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 */
14 # define APIENTRY /**/
17 #include "glutstroke.h"
21 glutStrokeWidth(GLUTstrokeFont font, int c)
23 StrokeFontPtr fontinfo;
24 const StrokeCharRec *ch;
27 fontinfo = (StrokeFontPtr) __glutFont(font);
29 fontinfo = (StrokeFontPtr) font;
32 if (c < 0 || c >= fontinfo->num_chars)
34 ch = &(fontinfo->ch[c]);
42 glutStrokeLength(GLUTstrokeFont font, const unsigned char *string)
45 StrokeFontPtr fontinfo;
46 const StrokeCharRec *ch;
49 fontinfo = (StrokeFontPtr) __glutFont(font);
51 fontinfo = (StrokeFontPtr) font;
55 for (; *string != '\0'; string++) {
57 if (c >= 0 && c < fontinfo->num_chars) {
58 ch = &(fontinfo->ch[c]);