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.2 by greg, Tue Jun 16 13:16:49 1992 UTC vs.
Revision 2.7 by greg, Fri Jun 27 06:53:21 2003 UTC

# Line 1 | Line 1
1 < /* Copyright (c) 1992 Regents of the University of California */
2 <
3 < /* SCCSid "$SunId$ LBL" */
4 <
1 > /* RCSid $Id$ */
2   /*
3   * Header file for font handling routines
4   */
5 + #ifndef _RAD_FONT_H_
6 + #define _RAD_FONT_H_
7 + #ifdef __cplusplus
8 + extern "C" {
9 + #endif
10  
11   typedef unsigned char  GORD;
12  
# Line 17 | Line 19 | typedef struct {
19   #define gvlist(g)       ((GORD *)((g)+1))
20  
21   typedef struct font {
22 +        int  nref;                      /* number of references */
23          GLYPH  *fg[256];                /* font glyphs */
24 +        short  mwidth, mheight;         /* mean glyph width and height */
25          char  *name;                    /* font file name */
26          struct font  *next;             /* next font in list */
27   }  FONT;
28  
29 < extern FONT  *getfont();
29 > extern int      retainfonts;            /* retain loaded fonts? */
30 >
31 >
32 > extern FONT  *getfont(char *fname);
33 > extern void  freefont(FONT *f);
34 > extern int  uniftext(short *sp, char *tp, FONT *f);
35 > extern int  squeeztext(short *sp, char *tp, FONT *f, int cis);
36 > extern int  proptext(short *sp, char *tp, FONT *f, int cis, int nsi);
37 >
38 >
39 > #ifdef __cplusplus
40 > }
41 > #endif
42 > #endif /* _RAD_FONT_H_ */
43 >

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines