~sbeattie/ubuntu/lucid/vnc4/lp556147

« back to all changes in this revision

Viewing changes to unix/xc/lib/Xft/XftFreetype.h

  • Committer: Bazaar Package Importer
  • Author(s): Ola Lundqvist
  • Date: 2006-05-15 20:35:17 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20060515203517-l4lre1ku942mn26k
Tags: 4.1.1+X4.3.0-10
* Correction of critical security issue. Thanks to Martin Kogler
  <e9925248@student.tuwien.ac.at> that informed me about the issue,
  and provided the patch.
  This flaw was originally found by Steve Wiseman of intelliadmin.com.
* Applied patch from Javier Kohen <jkohen@users.sourceforge.net> that
  inform the user that only 8 first characters of the password will
  actually be used when typing more than 8 characters, closes:
  #355619.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * $XFree86: xc/lib/Xft/XftFreetype.h,v 1.16 2002/02/15 07:36:10 keithp Exp $
 
3
 *
 
4
 * Copyright � 2000 Keith Packard, member of The XFree86 Project, Inc.
 
5
 *
 
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.
 
15
 *
 
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.
 
23
 */
 
24
 
 
25
/*
 
26
 * This file is strictly for backwards compatibility with 
 
27
 * old Xft applications
 
28
 */
 
29
 
 
30
#ifndef _XFTFREETYPE_H_
 
31
#define _XFTFREETYPE_H_
 
32
 
 
33
/* #include <Xft/Xft.h> */
 
34
/* #include <X11/Xft/Xft.h>*/
 
35
#include "Xft.h"
 
36
#include <X11/Xfuncproto.h>
 
37
#include <X11/Xosdefs.h>
 
38
 
 
39
typedef struct _XftFontStruct {
 
40
    FT_Face             __DEPRECATED_face;      /* handle to face object */
 
41
    GlyphSet            __DEPRECATED_glyphset;
 
42
    int                 min_char;
 
43
    int                 max_char;
 
44
    FT_F26Dot6          size;
 
45
    int                 ascent;
 
46
    int                 descent;
 
47
    int                 height;
 
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;
 
58
    /* private field */
 
59
    XftFont             *font;
 
60
} XftFontStruct;
 
61
 
 
62
_XFUNCPROTOBEGIN
 
63
 
 
64
XftFontStruct *
 
65
XftFreeTypeOpen (Display *dpy, FcPattern *pattern);
 
66
 
 
67
XftFontStruct *
 
68
XftFreeTypeGet (XftFont *font);
 
69
 
 
70
void
 
71
XftFreeTypeClose (Display *dpy, XftFontStruct *font);
 
72
 
 
73
void
 
74
XftGlyphLoad (Display           *dpy,
 
75
              XftFontStruct     *font,
 
76
              FcChar32          *glyphs,
 
77
              int               nglyph);
 
78
 
 
79
void
 
80
XftGlyphCheck (Display          *dpy,
 
81
               XftFontStruct    *font,
 
82
               FcChar32         glyph,
 
83
               FcChar32        *missing,
 
84
               int              *nmissing);
 
85
 
 
86
void
 
87
XftGlyphLoad (Display           *dpy,
 
88
              XftFontStruct     *font,
 
89
              FcChar32          *glyphs,
 
90
              int               nglyph);
 
91
 
 
92
void
 
93
XftGlyphCheck (Display          *dpy,
 
94
               XftFontStruct    *font,
 
95
               FcChar32 glyph,
 
96
               FcChar32 *missing,
 
97
               int              *nmissing);
 
98
 
 
99
Bool
 
100
XftFreeTypeGlyphExists (Display         *dpy,
 
101
                        XftFontStruct   *font,
 
102
                        FcChar32        glyph);
 
103
 
 
104
/* xftrender.c */
 
105
 
 
106
void
 
107
XftRenderString8 (Display *dpy, Picture src, 
 
108
                  XftFontStruct *font, Picture dst,
 
109
                  int srcx, int srcy,
 
110
                  int x, int y,
 
111
                  FcChar8 *string, int len);
 
112
 
 
113
void
 
114
XftRenderString16 (Display *dpy, Picture src, 
 
115
                   XftFontStruct *font, Picture dst,
 
116
                   int srcx, int srcy,
 
117
                   int x, int y,
 
118
                   FcChar16 *string, int len);
 
119
 
 
120
void
 
121
XftRenderString32 (Display *dpy, Picture src, 
 
122
                   XftFontStruct *font, Picture dst,
 
123
                   int srcx, int srcy,
 
124
                   int x, int y,
 
125
                   FcChar32 *string, int len);
 
126
 
 
127
void
 
128
XftRenderStringUtf8 (Display *dpy, Picture src, 
 
129
                     XftFontStruct *font, Picture dst,
 
130
                     int srcx, int srcy,
 
131
                     int x, int y,
 
132
                     FcChar8 *string, int len);
 
133
 
 
134
void
 
135
XftRenderExtents8 (Display          *dpy,
 
136
                   XftFontStruct    *font,
 
137
                   FcChar8          *string, 
 
138
                   int              len,
 
139
                   XGlyphInfo       *extents);
 
140
 
 
141
void
 
142
XftRenderExtents16 (Display         *dpy,
 
143
                    XftFontStruct   *font,
 
144
                    FcChar16        *string, 
 
145
                    int             len,
 
146
                    XGlyphInfo      *extents);
 
147
 
 
148
void
 
149
XftRenderExtents32 (Display         *dpy,
 
150
                    XftFontStruct   *font,
 
151
                    FcChar32        *string, 
 
152
                    int             len,
 
153
                    XGlyphInfo      *extents);
 
154
 
 
155
void
 
156
XftRenderExtentsUtf8 (Display       *dpy,
 
157
                      XftFontStruct *font,
 
158
                      FcChar8       *string, 
 
159
                      int           len,
 
160
                      XGlyphInfo    *extents);
 
161
 
 
162
_XFUNCPROTOEND
 
163
 
 
164
#endif /* _XFTFREETYPE_H_ */