2
* $XFree86: xc/lib/Xft/XftFreetype.h,v 1.16 2002/02/15 07:36:10 keithp Exp $
4
* Copyright � 2000 Keith Packard, member of The XFree86 Project, Inc.
6
* Permission to use, copy, modify, distribute, and sell this software and its
7
* documentation for any purpose is hereby granted without fee, provided that
8
* the above copyright notice appear in all copies and that both that
9
* copyright notice and this permission notice appear in supporting
10
* documentation, and that the name of Keith Packard not be used in
11
* advertising or publicity pertaining to distribution of the software without
12
* specific, written prior permission. Keith Packard makes no
13
* representations about the suitability of this software for any purpose. It
14
* is provided "as is" without express or implied warranty.
16
* KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
17
* INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
18
* EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR
19
* CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
20
* DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
21
* TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
22
* PERFORMANCE OF THIS SOFTWARE.
26
* This file is strictly for backwards compatibility with
27
* old Xft applications
30
#ifndef _XFTFREETYPE_H_
31
#define _XFTFREETYPE_H_
33
/* #include <Xft/Xft.h> */
34
/* #include <X11/Xft/Xft.h>*/
36
#include <X11/Xfuncproto.h>
37
#include <X11/Xosdefs.h>
39
typedef struct _XftFontStruct {
40
FT_Face __DEPRECATED_face; /* handle to face object */
41
GlyphSet __DEPRECATED_glyphset;
48
int max_advance_width;
49
int __DEPRECATED_spacing;
50
int __DEPRECATED_rgba;
51
Bool __DEPRECATED_antialias;
52
int __DEPRECATED_charmap; /* -1 for unencoded */
53
XRenderPictFormat *__DEPRECATED_format;
54
XGlyphInfo **__DEPRECATED_realized;
55
int __DEPRECATED_nrealized;
56
FcBool __DEPRECATED_transform;
57
FT_Matrix __DEPRECATED_matrix;
65
XftFreeTypeOpen (Display *dpy, FcPattern *pattern);
68
XftFreeTypeGet (XftFont *font);
71
XftFreeTypeClose (Display *dpy, XftFontStruct *font);
74
XftGlyphLoad (Display *dpy,
80
XftGlyphCheck (Display *dpy,
87
XftGlyphLoad (Display *dpy,
93
XftGlyphCheck (Display *dpy,
100
XftFreeTypeGlyphExists (Display *dpy,
107
XftRenderString8 (Display *dpy, Picture src,
108
XftFontStruct *font, Picture dst,
111
FcChar8 *string, int len);
114
XftRenderString16 (Display *dpy, Picture src,
115
XftFontStruct *font, Picture dst,
118
FcChar16 *string, int len);
121
XftRenderString32 (Display *dpy, Picture src,
122
XftFontStruct *font, Picture dst,
125
FcChar32 *string, int len);
128
XftRenderStringUtf8 (Display *dpy, Picture src,
129
XftFontStruct *font, Picture dst,
132
FcChar8 *string, int len);
135
XftRenderExtents8 (Display *dpy,
139
XGlyphInfo *extents);
142
XftRenderExtents16 (Display *dpy,
146
XGlyphInfo *extents);
149
XftRenderExtents32 (Display *dpy,
153
XGlyphInfo *extents);
156
XftRenderExtentsUtf8 (Display *dpy,
160
XGlyphInfo *extents);
164
#endif /* _XFTFREETYPE_H_ */