xref: /titanic_41/usr/src/cmd/lp/filter/postscript/postprint/postprint.h (revision 7c478bd95313f5f23a4c958a745db2134aa03244)
1 /*
2  * CDDL HEADER START
3  *
4  * The contents of this file are subject to the terms of the
5  * Common Development and Distribution License, Version 1.0 only
6  * (the "License").  You may not use this file except in compliance
7  * with the License.
8  *
9  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10  * or http://www.opensolaris.org/os/licensing.
11  * See the License for the specific language governing permissions
12  * and limitations under the License.
13  *
14  * When distributing Covered Code, include this CDDL HEADER in each
15  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16  * If applicable, add the following below this CDDL HEADER, with the
17  * fields enclosed by brackets "[]" replaced with your own identifying
18  * information: Portions Copyright [yyyy] [name of copyright owner]
19  *
20  * CDDL HEADER END
21  */
22 /*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
23 /*	  All Rights Reserved  	*/
24 
25 
26 #ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 1.1	*/
27 
28 /*
29  *
30  * Definitions used by the PostScript translator for ASCII files.
31  *
32  */
33 
34 #define LINESPP		66
35 #define TABSTOPS	8
36 #define POINTSIZE	10
37 
38 /*
39  *
40  * An array of type Fontmap helps convert font names requested by users into
41  * legitimate PostScript names. The array is initialized using FONTMAP, which must
42  * end with an entry that has NULL defined as its name field. The only fonts that
43  * are guaranteed to work well are the constant width fonts.
44  *
45  */
46 
47 typedef struct {
48 
49 	char	*name;			/* user's font name */
50 	char	*val;			/* corresponding PostScript name */
51 
52 } Fontmap;
53 
54 #define FONTMAP								\
55 									\
56 	{								\
57 	    "R", "Courier",						\
58 	    "I", "Courier-Oblique",					\
59 	    "B", "Courier-Bold",					\
60 	    "CO", "Courier",						\
61 	    "CI", "Courier-Oblique",					\
62 	    "CB", "Courier-Bold",					\
63 	    "CW", "Courier",						\
64 	    "PO", "Courier",						\
65 	    "courier", "Courier",					\
66 	    "cour", "Courier",						\
67 	    "co", "Courier",						\
68 	    NULL, NULL							\
69 	}
70 
71 /*
72  *
73  * Some of the non-integer functions in postprint.c.
74  *
75  */
76 
77 char	*get_font();
78 
79