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.3 by greg, Wed Jun 24 17:52:59 1992 UTC vs.
Revision 2.9 by greg, Sat Nov 20 00:40:33 2021 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  
8 + #ifdef __cplusplus
9 + extern "C" {
10 + #endif
11 +
12   typedef unsigned char  GORD;
13  
14   typedef struct {
# Line 17 | Line 20 | typedef struct {
20   #define gvlist(g)       ((GORD *)((g)+1))
21  
22   typedef struct font {
23 <        GLYPH  *fg[256];                /* font glyphs */
21 <        short  mwidth, mheight;         /* mean glyph width and height */
22 <        char  *name;                    /* font file name */
23 >        char  name[64];                 /* font file name */
24          struct font  *next;             /* next font in list */
25 +        int  nref;                      /* number of references */
26 +        short  mwidth, mheight;         /* mean glyph width and height */
27 +        GLYPH  *fg[256];                /* font glyphs */
28   }  FONT;
29  
30 < extern FONT  *getfont();
30 > extern int      retainfonts;            /* retain loaded fonts? */
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 > #ifdef __cplusplus
39 > }
40 > #endif
41 > #endif /* _RAD_FONT_H_ */
42 >

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines