ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/common/font.h
(Generate patch)

Comparing ray/src/common/font.h (file contents):
Revision 2.5 by greg, Tue Feb 25 02:47:21 2003 UTC vs.
Revision 2.8 by greg, Fri Nov 19 22:51:31 2021 UTC

# Line 2 | Line 2
2   /*
3   * Header file for font handling routines
4   */
5 + #ifndef _RAD_FONT_H_
6 + #define _RAD_FONT_H_
7  
8 < #include "copyright.h"
8 > #ifdef __cplusplus
9 > extern "C" {
10 > #endif
11  
12   typedef unsigned char  GORD;
13  
# Line 19 | Line 23 | typedef struct font {
23          int  nref;                      /* number of references */
24          GLYPH  *fg[256];                /* font glyphs */
25          short  mwidth, mheight;         /* mean glyph width and height */
26 <        char  *name;                    /* font file name */
26 >        char  name[64];                 /* font file name */
27          struct font  *next;             /* next font in list */
28   }  FONT;
29  
30   extern int      retainfonts;            /* retain loaded fonts? */
31  
28 #ifdef NOPROTO
32  
30 extern FONT  *getfont();
31 extern void  freefont();
32 extern int  uniftext();
33 extern int  squeeztext();
34 extern int  proptext();
35
36 #else
37
33   extern FONT  *getfont(char *fname);
34   extern void  freefont(FONT *f);
35   extern int  uniftext(short *sp, char *tp, FONT *f);
36   extern int  squeeztext(short *sp, char *tp, FONT *f, int cis);
37   extern int  proptext(short *sp, char *tp, FONT *f, int cis, int nsi);
38  
39 +
40 + #ifdef __cplusplus
41 + }
42   #endif
43 + #endif /* _RAD_FONT_H_ */
44 +

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines