2 * Copyright 1994-1997 Mark Kilgard, All rights reserved.
3 * Distributed under the terms of the MIT License.
5 * GPL licensing not permitted.
13 #include "glutstroke.h"
18 glutStrokeWidth(GLUTstrokeFont font
, int c
)
20 StrokeFontPtr fontinfo
;
21 const StrokeCharRec
*ch
;
24 fontinfo
= (StrokeFontPtr
) __glutFont(font
);
26 fontinfo
= (StrokeFontPtr
) font
;
29 if (c
< 0 || c
>= fontinfo
->num_chars
)
31 ch
= &(fontinfo
->ch
[c
]);
39 glutStrokeLength(GLUTstrokeFont font
, const unsigned char *string
)
42 StrokeFontPtr fontinfo
;
43 const StrokeCharRec
*ch
;
46 fontinfo
= (StrokeFontPtr
) __glutFont(font
);
48 fontinfo
= (StrokeFontPtr
) font
;
52 for (; *string
!= '\0'; string
++) {
54 if (c
>= 0 && c
< fontinfo
->num_chars
) {
55 ch
= &(fontinfo
->ch
[c
]);