sdk-world
v2026.11.05
PS2 SDK - world tier (copyleft-allowed, non-essential packages)
Toggle main menu visibility
Loading...
Searching...
No Matches
psglue.h
Go to the documentation of this file.
1
/****************************************************************************
2
*
3
* psglue.h
4
*
5
* Adobe's code for shared stuff (specification only).
6
*
7
* Copyright 2007-2013 Adobe Systems Incorporated.
8
*
9
* This software, and all works of authorship, whether in source or
10
* object code form as indicated by the copyright notice(s) included
11
* herein (collectively, the "Work") is made available, and may only be
12
* used, modified, and distributed under the FreeType Project License,
13
* LICENSE.TXT. Additionally, subject to the terms and conditions of the
14
* FreeType Project License, each contributor to the Work hereby grants
15
* to any individual or legal entity exercising permissions granted by
16
* the FreeType Project License and this section (hereafter, "You" or
17
* "Your") a perpetual, worldwide, non-exclusive, no-charge,
18
* royalty-free, irrevocable (except as stated in this section) patent
19
* license to make, have made, use, offer to sell, sell, import, and
20
* otherwise transfer the Work, where such license applies only to those
21
* patent claims licensable by such contributor that are necessarily
22
* infringed by their contribution(s) alone or by combination of their
23
* contribution(s) with the Work to which such contribution(s) was
24
* submitted. If You institute patent litigation against any entity
25
* (including a cross-claim or counterclaim in a lawsuit) alleging that
26
* the Work or a contribution incorporated within the Work constitutes
27
* direct or contributory patent infringement, then any patent licenses
28
* granted to You under this License for that Work shall terminate as of
29
* the date such litigation is filed.
30
*
31
* By using, modifying, or distributing the Work you indicate that you
32
* have read and understood the terms and conditions of the
33
* FreeType Project License as well as those provided in this section,
34
* and you accept them fully.
35
*
36
*/
37
38
43
#ifndef PSGLUE_H_
44
#define PSGLUE_H_
45
46
47
/* common includes for other modules */
48
#include "
pserror.h
"
49
#include "
psfixed.h
"
50
#include "
psarrst.h
"
51
#include "
psread.h
"
52
53
54
FT_BEGIN_HEADER
55
56
57
/* rendering parameters */
58
59
/* apply hints to rendered glyphs */
60
#define CF2_FlagsHinted 1
61
/* for testing */
62
#define CF2_FlagsDarkened 2
63
64
/* type for holding the flags */
65
typedef
CF2_Int CF2_RenderingFlags;
66
67
68
/* elements of a glyph outline */
69
typedef
enum
CF2_PathOp_
70
{
71
CF2_PathOpMoveTo = 1,
/* change the current point */
72
CF2_PathOpLineTo = 2,
/* line */
73
CF2_PathOpQuadTo = 3,
/* quadratic curve */
74
CF2_PathOpCubeTo = 4
/* cubic curve */
75
76
} CF2_PathOp;
77
78
79
/* a matrix of fixed-point values */
80
typedef
struct
CF2_Matrix_
81
{
82
CF2_F16Dot16 a;
83
CF2_F16Dot16 b;
84
CF2_F16Dot16 c;
85
CF2_F16Dot16 d;
86
CF2_F16Dot16 tx;
87
CF2_F16Dot16 ty;
88
89
} CF2_Matrix;
90
91
92
/* these typedefs are needed by more than one header file */
93
/* and gcc compiler doesn't allow redefinition */
94
typedef
struct
CF2_FontRec_
CF2_FontRec, *CF2_Font;
95
typedef
struct
CF2_HintRec_
CF2_HintRec, *CF2_Hint;
96
97
98
/* A common structure for all callback parameters. */
99
/* */
100
/* Some members may be unused. For example, `pt0' is not used for */
101
/* `moveTo' and `pt3' is not used for `quadTo'. The initial point `pt0' */
102
/* is included for each path element for generality; curve conversions */
103
/* need it. The `op' parameter allows one function to handle multiple */
104
/* element types. */
105
106
typedef
struct
CF2_CallbackParamsRec_
107
{
108
FT_Vector pt0;
109
FT_Vector pt1;
110
FT_Vector pt2;
111
FT_Vector pt3;
112
113
CF2_Int op;
114
115
} CF2_CallbackParamsRec, *CF2_CallbackParams;
116
117
118
/* forward reference */
119
typedef
struct
CF2_OutlineCallbacksRec_
CF2_OutlineCallbacksRec,
120
*CF2_OutlineCallbacks;
121
122
/* callback function pointers */
123
typedef
void
124
(*CF2_Callback_Type)( CF2_OutlineCallbacks callbacks,
125
const
CF2_CallbackParams params );
126
127
128
struct
CF2_OutlineCallbacksRec_
129
{
130
CF2_Callback_Type moveTo;
131
CF2_Callback_Type lineTo;
132
CF2_Callback_Type quadTo;
133
CF2_Callback_Type cubeTo;
134
135
CF2_Int windingMomentum;
/* for winding order detection */
136
137
FT_Memory memory;
138
FT_Error* error;
139
};
140
141
142
FT_END_HEADER
143
144
145
#endif
/* PSGLUE_H_ */
146
147
148
/* END */
psarrst.h
pserror.h
psfixed.h
psread.h
CF2_CallbackParamsRec_
Definition
psglue.h:107
CF2_FontRec_
Definition
psfont.h:68
CF2_HintRec_
Definition
psblues.h:123
CF2_Matrix_
Definition
psglue.h:81
CF2_OutlineCallbacksRec_
Definition
psglue.h:129
freetype
src
psaux
psglue.h
Generated by
1.18.0