1 #define MAXSPECHARS 512
2 #define MAXTOKENSIZE 128
5 extern FILE *fout
, *ferr
;
8 #define MAXFONTNAME 256
13 extern int resolution
; /* device resolution, goobies per inch */
14 extern int minx
; /* minimum x motion */
15 extern int miny
; /* minimum y motion */
16 extern char devname
[];
19 extern char fontmtab
[MAXFONT
][MAXFONTNAME
];
21 extern int curtrofffontid
; /* index into trofftab of current troff font */
22 extern int troffontcnt
;
28 struct specname
*next
;
31 /* character entries for special characters (those pointed
32 * to by multiple character names, e.g. \(mu for multiply.
35 char gname
[32]; /* postscript glyph name */
36 char name
[16]; /* character name, e.g. \(mu */
37 int charnum
; /* postscript font character number */
43 char trfontid
[MAXFONTNAME
]; /* the common troff font name e.g., `R' */
44 char psfontid
[MAXFONTNAME
]; /* the ps font name e.g, 'Times-Roman' */
45 BOOLEAN special
; /* flag says this is a special font. */
47 struct charent
*charent
[NUMCHARS
];
50 extern struct troffont troffontab
[];
53 void initialize(void);
54 void mountfont(int, char*);
55 int findtfn(char *, int);
57 void specialout(char *);
58 long nametorune(char *);
59 void conv(struct ustr
*us
);
64 void draw(struct ustr
*us
);
65 void devcntl(struct ustr
*us
);
66 void error(int, char *, ...);
67 void loadfont(int, char *);
71 void setpsfont(int, int);
72 int findpfn(char *fontname
);
74 int hash(char *, int);
76 void setencoding(char *name
);
78 void ps_include(struct ustr
*us
, FILE *out
, int, int,
79 int, int, double, double, double, double,
80 double, double, double);
81 void picture(struct ustr
*us
, char *);
82 void beginpath(char*, int);
83 void drawpath(char*, int);