]> git.sesse.net Git - rdpsrv/blob - Xserver/lib/font/Type1/fontfcn.h
Import X server from vnc-3.3.7.
[rdpsrv] / Xserver / lib / font / Type1 / fontfcn.h
1 /* $XConsortium: fontfcn.h,v 1.3 92/03/26 16:42:23 eswu Exp $ */
2 /* Copyright International Business Machines,Corp. 1991
3  * All Rights Reserved
4  *
5  * License to use, copy, modify, and distribute this software
6  * and its documentation for any purpose and without fee is
7  * hereby granted, provided that the above copyright notice
8  * appear in all copies and that both that copyright notice and
9  * this permission notice appear in supporting documentation,
10  * and that the name of IBM not be used in advertising or
11  * publicity pertaining to distribution of the software without
12  * specific, written prior permission.
13  *
14  * IBM PROVIDES THIS SOFTWARE "AS IS", WITHOUT ANY WARRANTIES
15  * OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING, BUT NOT
16  * LIMITED TO ANY IMPLIED WARRANTIES OF MERCHANTABILITY,
17  * FITNESS FOR A PARTICULAR PURPOSE, AND NONINFRINGEMENT OF
18  * THIRD PARTY RIGHTS.  THE ENTIRE RISK AS TO THE QUALITY AND
19  * PERFORMANCE OF THE SOFTWARE, INCLUDING ANY DUTY TO SUPPORT
20  * OR MAINTAIN, BELONGS TO THE LICENSEE.  SHOULD ANY PORTION OF
21  * THE SOFTWARE PROVE DEFECTIVE, THE LICENSEE (NOT IBM) ASSUMES
22  * THE ENTIRE COST OF ALL SERVICING, REPAIR AND CORRECTION.  IN
23  * NO EVENT SHALL IBM BE LIABLE FOR ANY SPECIAL, INDIRECT OR
24  * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
25  * FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF
26  * CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
27  * OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
28  * SOFTWARE.
29  */
30 /*     Definition of a PostScript FONT             */
31 typedef struct ps_font {
32             char    *vm_start;
33             psobj   FontFileName;
34             psobj   Subrs;
35             psdict  *CharStringsP;
36             psdict  *Private;
37             psdict  *fontInfoP;
38 struct blues_struct *BluesP;
39 } psfont;
40 /***================================================================***/
41 /*  Routines in scan_font                                             */
42 /***================================================================***/
43  
44 extern boolean Init_StdEnc();
45 extern int scan_font();
46 extern int GetFontInfo();
47 /***================================================================***/
48 /*  Return codes from scan_font                                       */
49 /***================================================================***/
50 #define SCAN_OK               0
51 #define SCAN_FILE_EOF        -1
52 #define SCAN_ERROR           -2
53 #define SCAN_OUT_OF_MEMORY   -3
54 #define SCAN_FILE_OPEN_ERROR -4
55 #define SCAN_TRUE            -5
56 #define SCAN_FALSE           -6
57 #define SCAN_END             -7
58  
59 /***================================================================***/
60 /*  Name of FontInfo fields                                           */
61 /***================================================================***/
62  
63 #define FONTNAME 1
64 #define PAINTTYPE 2
65 #define FONTTYPENUM 3
66 #define FONTMATRIX 4
67 #define FONTBBOX   5
68 #define UNIQUEID  6
69 #define STROKEWIDTH  7
70 #define VERSION     8
71 #define NOTICE     9
72 #define FULLNAME 10
73 #define FAMILYNAME 11
74 #define WEIGHT 12
75 #define ITALICANGLE 13
76 #define ISFIXEDPITCH  14
77 #define UNDERLINEPOSITION 15
78 #define UNDERLINETHICKNESS 16
79 #define ENCODING 17
80 /***================================================================***/
81 /*  Name of Private values                                            */
82 /***================================================================***/
83 #define BLUEVALUES 1
84 #define OTHERBLUES 2
85 #define FAMILYBLUES 3
86 #define FAMILYOTHERBLUES 4
87 #define BLUESCALE 5
88 #define BLUESHIFT 6
89 #define BLUEFUZZ  7
90 #define STDHW     8
91 #define STDVW     9
92 #define STEMSNAPH 10
93 #define STEMSNAPV 11
94 #define FORCEBOLD 12
95 #define LANGUAGEGROUP 13
96 #define LENIV     14
97 #define RNDSTEMUP 15
98 #define EXPANSIONFACTOR 16