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 */
13 # define APIENTRY /**/
16 #include "glutstroke.h"
20 glutStrokeWidth(GLUTstrokeFont font, int c)
22 StrokeFontPtr fontinfo;
23 const StrokeCharRec *ch;
26 fontinfo = (StrokeFontPtr) __glutFont(font);
28 fontinfo = (StrokeFontPtr) font;
31 if (c < 0 || c >= fontinfo->num_chars)
33 ch = &(fontinfo->ch[c]);
41 glutStrokeLength(GLUTstrokeFont font, const unsigned char *string)
44 StrokeFontPtr fontinfo;
45 const StrokeCharRec *ch;
48 fontinfo = (StrokeFontPtr) __glutFont(font);
50 fontinfo = (StrokeFontPtr) font;
54 for (; *string != '\0'; string++) {
56 if (c >= 0 && c < fontinfo->num_chars) {
57 ch = &(fontinfo->ch[c]);