1 /* $XConsortium: wfont.h,v 5.1 91/02/16 09:46:37 rws Exp $ */
3 /*****************************************************************
4 Copyright (c) 1989,1990, 1991 by Sun Microsystems, Inc. and the X Consortium.
8 Permission to use, copy, modify, and distribute this software and its
9 documentation for any purpose and without fee is hereby granted,
10 provided that the above copyright notice appear in all copies and that
11 both that copyright notice and this permission notice appear in
12 supporting documentation, and that the names of Sun Microsystems,
13 the X Consortium, and MIT not be used in advertising or publicity
14 pertaining to distribution of the software without specific, written
17 SUN MICROSYSTEMS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
18 INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT
19 SHALL SUN MICROSYSTEMS BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
20 DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
21 WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
22 ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
25 ******************************************************************/
27 #ifndef WFONT_INCLUDED
28 #define WFONT_INCLUDED
30 #define WFONT_MAGIC 0x813
31 #define WFONT_MAGIC_PLUS 0x715
32 #define WFONT_MAGIC_PEX 0x70686e74
33 #define START_PROPS 0x100
34 #define START_DISPATCH(_num_props) (START_PROPS + 160 * _num_props)
35 #define START_PATH(_num_ch_, _num_props) (START_DISPATCH(_num_props) + sizeof(Dispatch) * _num_ch_)
36 #define NUM_DISPATCH 128
68 Path_point2dpx
*pt2dpx
;
84 int n_pts
; /* number of points in the subpath */
85 Path_pt_ptr pts
; /* pointer to them */
86 int closed
; /* true if the subpath is closed */
87 int dcmp_flag
; /* flag for pgon dcmp, pgon type
88 * and dcmped triangle type */
92 Path_type type
; /* type of vertices in this path */
93 int n_subpaths
; /* number of subpaths */
94 int n_vertices
; /* total number of vertices */
95 Path_subpath
*subpaths
; /* array of subpaths */
98 typedef Path
*Path_handle
;
101 char propname
[80]; /* font property name */
102 char propvalue
[80]; /* font property value */
106 int magic
; /* magic number */
107 char name
[80]; /* name of this font */
108 float top
, /* extreme values */
110 int num_ch
; /* no. of fonts in the set */
111 int num_props
; /* no. of font properties */
112 Property
*properties
; /* array of properties */
116 float center
, /* center of the character */
117 right
; /* right edge */
118 long offset
; /* offset in the file of the character
129 float top
, bottom
, max_width
;
130 int num_ch
; /* # characters in the font */
134 #endif /*WFONT_INCLUDED */