1 | /* $Xorg: PclSFonts.h,v 1.3 2000/08/17 19:48:08 cpqbld Exp $ */
|
---|
2 | #ifdef HAVE_DIX_CONFIG_H
|
---|
3 | #include <dix-config.h>
|
---|
4 | #endif
|
---|
5 |
|
---|
6 | #ifndef _PCLFONTS_H
|
---|
7 | #define _PCLFONTS_H
|
---|
8 |
|
---|
9 | /* -*-H-*-
|
---|
10 | ******************************************************************************
|
---|
11 | ******************************************************************************
|
---|
12 | *
|
---|
13 | * File: PclFonts.h
|
---|
14 | * Description: Send Soft Font Download data to the specified file pointer.
|
---|
15 | *
|
---|
16 | *
|
---|
17 | ******************************************************************************
|
---|
18 | ******************************************************************************
|
---|
19 | */
|
---|
20 | /*
|
---|
21 | (c) Copyright 1996 Hewlett-Packard Company
|
---|
22 | (c) Copyright 1996 International Business Machines Corp.
|
---|
23 | (c) Copyright 1996 Sun Microsystems, Inc.
|
---|
24 | (c) Copyright 1996 Novell, Inc.
|
---|
25 | (c) Copyright 1996 Digital Equipment Corp.
|
---|
26 | (c) Copyright 1996 Fujitsu Limited
|
---|
27 | (c) Copyright 1996 Hitachi, Ltd.
|
---|
28 |
|
---|
29 | Permission is hereby granted, free of charge, to any person obtaining a copy
|
---|
30 | of this software and associated documentation files (the "Software"), to deal
|
---|
31 | in the Software without restriction, including without limitation the rights
|
---|
32 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
---|
33 | copies of the Software, and to permit persons to whom the Software is
|
---|
34 | furnished to do so, subject to the following conditions:
|
---|
35 |
|
---|
36 | The above copyright notice and this permission notice shall be included in
|
---|
37 | all copies or substantial portions of the Software.
|
---|
38 |
|
---|
39 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
---|
40 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
---|
41 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
---|
42 | COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
---|
43 | IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
---|
44 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
---|
45 |
|
---|
46 | Except as contained in this notice, the names of the copyright holders shall
|
---|
47 | not be used in advertising or otherwise to promote the sale, use or other
|
---|
48 | dealings in this Software without prior written authorization from said
|
---|
49 | copyright holders.
|
---|
50 | */
|
---|
51 |
|
---|
52 |
|
---|
53 | typedef struct {
|
---|
54 | unsigned char fid; /* sfont font ID */
|
---|
55 | unsigned char cindex; /* character indext */
|
---|
56 | } PclFontMapRec, PclFontMapPtr;
|
---|
57 |
|
---|
58 | typedef struct {
|
---|
59 | int h_offset;
|
---|
60 | int v_offset;
|
---|
61 | unsigned int width;
|
---|
62 | unsigned int height;
|
---|
63 | int font_pitch;
|
---|
64 | unsigned char *raster_top;
|
---|
65 | } PclCharDataRec, *PclCharDataPtr;
|
---|
66 |
|
---|
67 | typedef struct {
|
---|
68 | unsigned char spacing;
|
---|
69 | unsigned int pitch;
|
---|
70 | unsigned int cellheight;
|
---|
71 | unsigned int cellwidth;
|
---|
72 | int ascent;
|
---|
73 | int descent;
|
---|
74 | } PclFontDescRec, *PclFontDescPtr;
|
---|
75 |
|
---|
76 | typedef struct _PclFontHead8Rec {
|
---|
77 | char *fontname;
|
---|
78 | PclFontDescRec fd;
|
---|
79 | unsigned short fid;
|
---|
80 | unsigned char *index;
|
---|
81 | struct _PclFontHead8Rec *next;
|
---|
82 | } PclFontHead8Rec, *PclFontHead8Ptr;
|
---|
83 |
|
---|
84 | typedef struct _PclFontHead16Rec {
|
---|
85 | char *fontname;
|
---|
86 | PclFontDescRec fd;
|
---|
87 | unsigned short cur_fid;
|
---|
88 | unsigned char cur_cindex;
|
---|
89 | PclFontMapRec **index;
|
---|
90 | unsigned short firstCol;
|
---|
91 | unsigned short lastCol;
|
---|
92 | unsigned short firstRow;
|
---|
93 | unsigned short lastRow;
|
---|
94 | struct _PclFontHead16Rec *next;
|
---|
95 | } PclFontHead16Rec, *PclFontHead16Ptr;
|
---|
96 |
|
---|
97 | typedef struct _PclInternalFontRec {
|
---|
98 | char *fontname;
|
---|
99 | float pitch;
|
---|
100 | float height;
|
---|
101 | char *pcl_font_name;
|
---|
102 | char *spacing;
|
---|
103 | struct _PclInternalFontRec *next;
|
---|
104 | } PclInternalFontRec, *PclInternalFontPtr;
|
---|
105 |
|
---|
106 | typedef struct {
|
---|
107 | PclFontHead8Ptr phead8;
|
---|
108 | PclFontHead16Ptr phead16;
|
---|
109 | PclInternalFontPtr pinfont;
|
---|
110 | unsigned char cur_max_fid;
|
---|
111 | } PclSoftFontInfoRec, *PclSoftFontInfoPtr;
|
---|
112 |
|
---|
113 | #define MONOSPACE 0
|
---|
114 | #define PROPSPACE 1
|
---|
115 |
|
---|
116 | #endif /* _PCLFONTS_H */
|
---|