summaryrefslogtreecommitdiff
path: root/Build/source/texk/ps2pk/t1imager.h
blob: 78eae98fd7fffa8246b21c8b68c4201d7c37564d (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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
/* $XConsortium: t1imager.h,v 1.5 92/03/20 14:36:05 keith Exp $ */
/* Copyright International Business Machines,Corp. 1991
 * All Rights Reserved
 *
 * License to use, copy, modify, and distribute this software
 * and its documentation for any purpose and without fee is
 * hereby granted, provided that the above copyright notice
 * appear in all copies and that both that copyright notice and
 * this permission notice appear in supporting documentation,
 * and that the name of IBM not be used in advertising or
 * publicity pertaining to distribution of the software without
 * specific, written prior permission.
 *
 * IBM PROVIDES THIS SOFTWARE "AS IS", WITHOUT ANY WARRANTIES
 * OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING, BUT NOT
 * LIMITED TO ANY IMPLIED WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE, AND NONINFRINGEMENT OF
 * THIRD PARTY RIGHTS.  THE ENTIRE RISK AS TO THE QUALITY AND
 * PERFORMANCE OF THE SOFTWARE, INCLUDING ANY DUTY TO SUPPORT
 * OR MAINTAIN, BELONGS TO THE LICENSEE.  SHOULD ANY PORTION OF
 * THE SOFTWARE PROVE DEFECTIVE, THE LICENSEE (NOT IBM) ASSUMES
 * THE ENTIRE COST OF ALL SERVICING, REPAIR AND CORRECTION.  IN
 * NO EVENT SHALL IBM BE LIABLE FOR ANY SPECIAL, INDIRECT OR
 * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
 * FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF
 * CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
 * OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
 * SOFTWARE.
 */

#include "types.h"
#include "fontmisc.h"
 
typedef  pointer xobject;
typedef  pointer location;
typedef  pointer path;
typedef  pointer region;
typedef  pointer XYspace;
 
#ifndef NOEXTERNS
/*
The following are the user entry locations to TYPE1IMAGER
*/
extern path    t1_Bezier();
extern path    t1_ClosePath();
extern xobject t1_Destroy();
extern xobject t1_Dup();
extern char   *t1_ErrorMsg();
extern void    t1_InitImager();
extern region  t1_Interior();
extern location  t1_ILoc();
extern xobject t1_Join();
extern path    t1_Line();
extern xobject t1_Permanent();
extern path    t1_Phantom();
extern location   t1_Loc();
extern xobject t1_Scale();
extern xobject t1_Snap();
extern location  t1_SubLoc();
extern xobject t1_Temporary();
 
#endif
 
#ifndef   NULL
#define   NULL         0
#endif
 
#ifndef   TRUE
#define   TRUE          1
#endif
 
#ifndef   FALSE
#define   FALSE         0
#endif
 
/*
Here are some TYPE1IMAGER functions that are defined in terms of others:
*/
 
#define   t1_AddLoc(p1,p2)    t1_Join(p1,p2)
 
#ifndef   NONAMES
/*
Define the simple form of all the subroutine names:
*/
#define   AddLoc(p1,p2)          t1_AddLoc(p1,p2)
#define   Bezier(B,C,D)      t1_Bezier(B,C,D)
#define   ClosePath(p)       t1_ClosePath(p,0)
#define   Complement(area)   t1_Complement(area)
#define   Destroy(o)         t1_Destroy(o)
#define   Dup(o)             t1_Dup(o)
#define   ErrorMsg()         t1_ErrorMsg()
#define   HeadSegment(p)     t1_HeadSegment(p)
#define   InitImager()       t1_InitImager()
#define   Interior(p,rule)   t1_Interior(p,rule)
#define   ILoc(S,x,y)        t1_ILoc(S,x,y)
#define   Join(p1,p2)        t1_Join(p1,p2)
#define   Line(P)            t1_Line(P)
#define   Permanent(o)       t1_Permanent(o)
#define   Phantom(o)         t1_Phantom(o)
#define   Loc(S,x,y)         t1_Loc(S,(DOUBLE)x,(DOUBLE)y)
#define   Scale(o,sx,sy)     t1_Scale(o,(DOUBLE)sx,(DOUBLE)sy)
#define   Snap(o)            t1_Snap(o)
#define   SubLoc(a,b)        t1_SubLoc(a,b)
#define   Temporary(o)       t1_Temporary(o)
#define   TermImager()       t1_TermImager()
#define   Transform(o,cxx,cyx,cxy,cyy)  t1_Transform(o,(DOUBLE)cxx,(DOUBLE)cyx,\
    (DOUBLE)cxy,(DOUBLE)cyy)
 
#endif
 
#define   WINDINGRULE -2
#define   EVENODDRULE -3
 
#define   CONTINUITY  0x80   /* can be added to above rules; e.g. WINDINGRULE+CONTINUITY */
 
/*
Stroke() line style constants:
*/
 
/*
Coordinate space constants:
*/
#define   IDENTITY      t1_Identity
extern XYspace *IDENTITY;
 
/*
Generic null object definition:
*/
#define    NULLOBJECT   ((xobject)NULL)
 
/*
Null path definition:
*/
#define    NULLPATH     NULLOBJECT
 
/*
Full page and null region definition:
*/
#define    T1_INFINITY     t1_Infinity
#ifndef NOEXTERNS
extern     region       *T1_INFINITY;
#endif
#ifdef NULLREGION
#undef NULLREGION
#endif
#define    NULLREGION   NULLOBJECT
 
#define    FF_PARSE_ERROR  5
#define    FF_PATH         1
 
extern pointer xiStub();