home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
netpbma.zip
/
pbm
/
pbmfont.h
< prev
next >
Wrap
C/C++ Source or Header
|
1993-10-27
|
734b
|
28 lines
/* pbmfont.h - header file for font routines in libpbm
*/
struct glyph {
int width, height;
int x, y;
int xadd;
char* bmap;
};
struct font {
int maxwidth, maxheight;
int x, y;
struct glyph* glyph[256];
/* for compatibility with old pbmtext routines */
/* oldfont is 0 if the font is BDF derived */
bit** oldfont;
int fcols, frows;
};
struct font* pbm_defaultfont ARGS(( char* which ));
struct font* pbm_dissectfont ARGS(( bit** font, int frows, int fcols ));
struct font* pbm_loadfont ARGS(( char* filename ));
struct font* pbm_loadpbmfont ARGS(( char* filename ));
struct font* pbm_loadbdffont ARGS(( char* filename ));
void pbm_dumpfont ARGS(( struct font* fn ));
int mk_argvn ARGS(( char* s, char* vec[], int max ));