home *** CD-ROM | disk | FTP | other *** search
/ rtsi.com / 2014.01.www.rtsi.com.tar / www.rtsi.com / OS9 / OSK / NETWORK / netpbm_src.lzh / NETPBM / PBM / pbmfont.h < prev    next >
Text File  |  1996-11-18  |  734b  |  28 lines

  1. /* pbmfont.h - header file for font routines in libpbm
  2. */
  3.  
  4. struct glyph {
  5.     int width, height;
  6.     int x, y;
  7.     int xadd;
  8.     char* bmap;
  9. };
  10.  
  11. struct font {
  12.     int maxwidth, maxheight;
  13.     int x, y;
  14.     struct glyph* glyph[256];
  15.     /* for compatibility with old pbmtext routines */
  16.     /* oldfont is 0 if the font is BDF derived */
  17.     bit** oldfont;
  18.     int fcols, frows;
  19. };
  20.  
  21. struct font* pbm_defaultfont ARGS(( char* which ));
  22. struct font* pbm_dissectfont ARGS(( bit** font, int frows, int fcols ));
  23. struct font* pbm_loadfont ARGS(( char* filename ));
  24. struct font* pbm_loadpbmfont ARGS(( char* filename ));
  25. struct font* pbm_loadbdffont ARGS(( char* filename ));
  26. void pbm_dumpfont ARGS(( struct font* fn ));
  27. int mk_argvn ARGS(( char* s, char* vec[], int max ));
  28.