VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/x11include/xorg-server-1.0.1/PclSFonts.h@ 67129

最後變更 在這個檔案從67129是 51223,由 vboxsync 提交於 11 年 前

Additions/x11/x11include: added header files for X.Org Server 1.0 and 1.1.

  • 屬性 svn:eol-style 設為 native
檔案大小: 3.5 KB
 
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
29Permission is hereby granted, free of charge, to any person obtaining a copy
30of this software and associated documentation files (the "Software"), to deal
31in the Software without restriction, including without limitation the rights
32to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
33copies of the Software, and to permit persons to whom the Software is
34furnished to do so, subject to the following conditions:
35
36The above copyright notice and this permission notice shall be included in
37all copies or substantial portions of the Software.
38
39THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
40IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
41FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
42COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
43IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
44CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
45
46Except as contained in this notice, the names of the copyright holders shall
47not be used in advertising or otherwise to promote the sale, use or other
48dealings in this Software without prior written authorization from said
49copyright holders.
50*/
51
52
53typedef struct {
54 unsigned char fid; /* sfont font ID */
55 unsigned char cindex; /* character indext */
56} PclFontMapRec, PclFontMapPtr;
57
58typedef 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
67typedef 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
76typedef struct _PclFontHead8Rec {
77 char *fontname;
78 PclFontDescRec fd;
79 unsigned short fid;
80 unsigned char *index;
81 struct _PclFontHead8Rec *next;
82} PclFontHead8Rec, *PclFontHead8Ptr;
83
84typedef 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
97typedef 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
106typedef 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 */
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette