Rev 8100 | Rev 8177 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 8100 | Rev 8103 | ||
---|---|---|---|
Line 16... | Line 16... | ||
16 | */ |
16 | */ |
17 | 17 | ||
18 | /* dvi 2 gif driver, header file */ |
18 | /* dvi 2 gif driver, header file */ |
19 | 19 | ||
20 | #include "config.h" |
20 | #include "config.h" |
- | 21 | #include "../Lib/libwims.h" |
|
21 | #include <stdio.h> |
22 | #include <stdio.h> |
22 | #include <stdlib.h> |
23 | #include <stdlib.h> |
23 | #include <stdarg.h> |
24 | #include <stdarg.h> |
24 | #include <string.h> |
25 | #include <string.h> |
25 | #include <math.h> |
26 | #include <math.h> |
Line 49... | Line 50... | ||
49 | int checksum,designsize,bc,ec,cnt,num; |
50 | int checksum,designsize,bc,ec,cnt,num; |
50 | FONTHEADER *fh; |
51 | FONTHEADER *fh; |
51 | char *data; |
52 | char *data; |
52 | char *cache; |
53 | char *cache; |
53 | } FONT; |
54 | } FONT; |
- | 55 | /* from texgif.c */ |
|
- | 56 | extern char *progname,*tmpdir,*fontdir,*headerfile,*texstyle,*outfile, cwd[1024]; |
|
- | 57 | extern double blacker; |
|
- | 58 | extern int basedensity, density, compressratio, wrapexec, currentcolor, fontcnt; |
|
- | 59 | extern FONT wfont[FONT_NUMBER_LIMIT]; |
|
- | 60 | /* from basic.c */ |
|
- | 61 | void error(char *s); |
|
- | 62 | int call_sh(char *s,...); |
|
- | 63 | int getfile(char *fname, unsigned char **buf); |
|
- | 64 | unsigned long int texint(void *bp, int l); |
|
- | 65 | long int texintsigned(void *bp, int l); |
|
- | 66 | int execredirected(char *cmdf, char *inf, char *outf, char *errf, char *arg[]); |
|
54 | 67 | ||
- | 68 | /* from colors.c */ |
|
- | 69 | extern struct colors{ |
|
- | 70 | char *name; |
|
- | 71 | int r,g,b; |
|
- | 72 | } colors[]; |
|
- | 73 | extern int colorno; |
|
- | 74 | ||
- | 75 | /* from tfm.c */ |
|
- | 76 | extern struct tfm { |
|
- | 77 | int bc, ec; |
|
- | 78 | int checksum, designsize; |
|
- | 79 | struct f { |
|
- | 80 | int32_t w,h,d; |
|
- | 81 | } f[256]; |
|
- | 82 | } tfm; |
|
- | 83 | ||
- | 84 | extern short int tfmhd[12]; |
|
- | 85 | void loadtfm(char *fname); |
|
- | 86 | ||
- | 87 | /* from gf.c */ |
|
- | 88 | void loadgf(char *fname, int density); |
|
- | 89 | void makegf(char *fontname, int density); |
|
- | 90 | void gf2font(char *fontname,int density); |
|
- | 91 | ||
- | 92 | /* from font.c */ |
|
- | 93 | FONT *loadfont(char *fname, int checksum, int density, FONT *ft); |
|
- | 94 | ||
- | 95 | /* from image.c */ |
|
- | 96 | void createimage(int xsize, int ysize); |
|
- | 97 | void saveimage(); |
|
- | 98 | void makecolor(char *p); |
|
- | 99 | int paintfont(FONT *f, int ch, int x, int y, int color); |
|
- | 100 | extern gdImagePtr image; |
|
- | 101 | extern int color_white, color_black, color_bounder; |
|
- | 102 | ||
- | 103 | /* from dvi.c */ |
|
- | 104 | void dvi(void); |