summaryrefslogtreecommitdiff
path: root/dviware/kyocera/fonts.h
blob: 3458e6d566ab1d2911d17a382cf58d1a9113e9e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
/* fonts.h
 * This file contains the interface to fonts.c, a way for using at tex fonts
 * on a printer in a modular way.
 */

/* Initialization code.
 * Should be called at the start of the printing program.
 */
extern f_init();
/* f_init(printer,pgmname,dirvec,dirveclen,num,den,mag,options)
 *   FILE *printer;
 *   char *pgm_name,dirvec[];
 *   int dirveclen;
 *   long num,den,mag;
 *   unsigned long options;
 */

/* Called at the end of your program.
 */
extern f_term();

/* Options to f_define_font
 */

/* Define a font for using.
 * This can be called more than once for the same font.
 */
extern f_define_font();
/* f_define_font(fontnum,options,area,name,mag,s,tfmchecksum)
 *   char *area,*name;
 *   unsigned long fontnum,options,mag,s,tfmchecksum;
 */


/* Hints as to what fonts are to be used.
 * This is called once per page to give fonts module hints as what fonts
 * are going to be used on this page.
 */
extern f_newpage();
/* f_newpage(fontvec,charvec,veclen)
 *   unsigned long fontvec[];
 *   unsigned long charvec[][4];
 *   int veclen;
 */

/* Set a font as the current font.
 */
extern f_use_font();
/* f_use_font(fontnum,font_space)
 *   unsigned long fontnum;
 *   long *font_space;
 */

/* Hints as to what fonts are to be used.
 * This is called once per page to give fonts module instrucions as what fonts
 * and characters in those fonts have to be loaded for this page.
 * "fontvec" contains a list of fonts used for this page
 * "veclen" is the number of fonts used on this page
 * "charvec" contains the per font information about the symbols needed
 */
extern int f_newpage();
/* f_newpage(fontvec,charvec,veclen)
 *   unsigned long fontvec[];
 *   unsigned long charvec[][4];
 *   int veclen;
 */


/* Make sure that the font info for this character is loaded.
 * This is here so fonts could be incrementally loaded into the printer,
 * if so desired by fonts.c.
 * This procedure is called for every character output to the printer,
 * So it should be fast in the standard case.
 * Should return how much the point moves after setting this character.
 */
extern int f_use_char();
/* f_use_char(ch,pxlwidth,devwidth)
 *   unsigned long ch;
 *   long *pxlwidth,*devwidth;
 */