home *** CD-ROM | disk | FTP | other *** search
/ IRIX 6.3 Development Libraries / SGI IRIX 6.3 Development Libraries.iso / dist6.3 / gl_dev.idb / usr / include / gl / font.h.z / font.h
Encoding:
C/C++ Source or Header  |  1996-12-06  |  1.8 KB  |  66 lines

  1. #ifndef __GL_FONT_H__
  2. #define __GL_FONT_H__
  3. /**************************************************************************
  4.  *                                      *
  5.  *          Copyright (C) 1984, Silicon Graphics, Inc.          *
  6.  *                                      *
  7.  *  These coded instructions, statements, and computer programs  contain  *
  8.  *  unpublished  proprietary  information of Silicon Graphics, Inc., and  *
  9.  *  are protected by Federal copyright law.  They  may  not be disclosed  *
  10.  *  to  third  parties  or copied or duplicated in any form, in whole or  *
  11.  *  in part, without the prior written consent of Silicon Graphics, Inc.  *
  12.  *                                      *
  13.  **************************************************************************/
  14.  
  15. /*
  16.  *  font.h
  17.  *
  18.  *  $Revision: 1.6 $
  19.  */
  20.  
  21. #include "bitmap.h"
  22.  
  23. /* since with deflfont new characters may be added to a 
  24.  * raster font after initial definition, a linked list
  25.  * of raster data areas must be maintained 
  26.  */
  27. typedef struct raslist {
  28.     unsigned short    *raster;
  29.     Bitmaprec    *chars;
  30.     struct raslist    *next;
  31. } Rasterlist;
  32.  
  33.  
  34. #ifndef LIBFM
  35. /* font_s instead of font allows GL font() to be a #define */
  36. typedef struct font_s {
  37.     short descender;
  38.     short width;
  39.     short height;
  40.     Bitmap *chars;
  41.     long nchars;        /* used to be a short! */
  42.     Rasterlist *rlist;        /* the raster areas */
  43.     Bitmaprec **bh;        /* hash table of Bitmap's */
  44. } Font;
  45.  
  46. #else
  47. /* Some tools from the font manager require the previous version
  48.    of the Font structure. */
  49. /* font_s instead of font allows GL font() to be a #define */
  50. typedef struct font_s {
  51.     short descender;
  52.     short width;
  53.     short height;
  54.     short nchars;
  55.     short bitsdeep;
  56. #if defined(LIGHT)||defined(NEWPORT)
  57.     Bitmap *chars;            /* an array of bitmap structs    */
  58.     unsigned short *rasters;        /* the raster bits        */
  59. #else /* !LIGHT||NEWPORT */
  60.     Bitmap **chars;
  61. #endif /* LIGHT||NEWPORT */
  62. } Font;
  63. #endif
  64.  
  65. #endif    /* !__GL_FONT_H__ */
  66.