home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 8 / CDASC08.ISO / NEWS / RADIANCE / SRC / COMMON / FONT.H < prev    next >
C/C++ Source or Header  |  1993-10-07  |  647b  |  27 lines

  1. /* Copyright (c) 1992 Regents of the University of California */
  2.  
  3. /* SCCSid "@(#)font.h 2.3 6/24/92 LBL" */
  4.  
  5. /*
  6.  * Header file for font handling routines
  7.  */
  8.  
  9. typedef unsigned char  GORD;
  10.  
  11. typedef struct {
  12.     short  nverts;            /* number of vertices */
  13.     GORD  left, right, top, bottom;    /* glyph extent */
  14.                     /* followed by vertex list */
  15. }  GLYPH;
  16.  
  17. #define gvlist(g)    ((GORD *)((g)+1))
  18.  
  19. typedef struct font {
  20.     GLYPH  *fg[256];        /* font glyphs */
  21.     short  mwidth, mheight;        /* mean glyph width and height */
  22.     char  *name;            /* font file name */
  23.     struct font  *next;        /* next font in list */
  24. }  FONT;
  25.  
  26. extern FONT  *getfont();
  27.