42 {
45
46#ifndef FT_CONFIG_OPTION_ENVIRONMENT_PROPERTIES
48#endif
49
50
51 if ( !
ft_strcmp( property_name,
"darkening-parameters" ) )
52 {
55
56#ifdef FT_CONFIG_OPTION_ENVIRONMENT_PROPERTIES
58
59
60 if ( value_is_string )
61 {
62 const char*
s = (
const char*)
value;
63 char* ep;
65
66
67
68 for (
i = 0;
i < 7;
i++ )
69 {
71 if ( *ep !=
',' ||
s == ep )
73
75 }
76
78 if ( !( *ep ==
'\0' || *ep ==
' ' ) ||
s == ep )
80
81 darken_params = dp;
82 }
83 else
84#endif
86
87 x1 = darken_params[0];
88 y1 = darken_params[1];
89 x2 = darken_params[2];
90 y2 = darken_params[3];
91 x3 = darken_params[4];
92 y3 = darken_params[5];
93 x4 = darken_params[6];
94 y4 = darken_params[7];
95
96 if (
x1 < 0 ||
x2 < 0 ||
x3 < 0 ||
x4 < 0 ||
97 y1 < 0 ||
y2 < 0 ||
y3 < 0 ||
y4 < 0 ||
99 y1 > 500 ||
y2 > 500 ||
y3 > 500 ||
y4 > 500 )
100 return FT_THROW( Invalid_Argument );
101
110
112 }
113
114 else if ( !
ft_strcmp( property_name,
"hinting-engine" ) )
115 {
116#if defined( CFF_CONFIG_OPTION_OLD_ENGINE ) || \
117 defined( T1_CONFIG_OPTION_OLD_ENGINE )
119#endif
120
121
122#ifdef FT_CONFIG_OPTION_ENVIRONMENT_PROPERTIES
123 if ( value_is_string )
124 {
125 const char*
s = (
const char*)
value;
126
127
130
131#ifdef CFF_CONFIG_OPTION_OLD_ENGINE
135#endif
136
137#ifdef T1_CONFIG_OPTION_OLD_ENGINE
142#endif
143
144 else
145 return FT_THROW( Invalid_Argument );
146 }
147 else
148#endif
149 {
151
152
154#ifdef CFF_CONFIG_OPTION_OLD_ENGINE
157#endif
158#ifdef T1_CONFIG_OPTION_OLD_ENGINE
162#endif
163 )
164 driver->hinting_engine = *hinting_engine;
165 else
167 }
168
170 }
171
172 else if ( !
ft_strcmp( property_name,
"no-stem-darkening" ) )
173 {
174#ifdef FT_CONFIG_OPTION_ENVIRONMENT_PROPERTIES
175 if ( value_is_string )
176 {
177 const char*
s = (
const char*)
value;
179
180
181 if ( !nsd )
183 else
185 }
186 else
187#endif
188 {
190
191
192 driver->no_stem_darkening = *no_stem_darkening;
193 }
194
196 }
197
198 else if ( !
ft_strcmp( property_name,
"random-seed" ) )
199 {
200 FT_Int32 random_seed;
201
202
203#ifdef FT_CONFIG_OPTION_ENVIRONMENT_PROPERTIES
204 if ( value_is_string )
205 {
206 const char*
s = (
const char*)
value;
207
208
210 }
211 else
212#endif
213 random_seed = *(FT_Int32*)
value;
214
215 if ( random_seed < 0 )
216 random_seed = 0;
217
218 driver->random_seed = random_seed;
219
221 }
222
223 FT_TRACE0((
"ps_property_set: missing property `%s'\n",
224 property_name ));
225 return FT_THROW( Missing_Property );
226 }
static LPCWSTR LPCWSTR module_name
#define FT_HINTING_FREETYPE
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
static float int float int float int x3
static float int float int float int float int x4
static float int float int float int float y3
static float int float int float int float int float y4
_In_ CLIPOBJ _In_ BRUSHOBJ _In_ LONG x1
_In_ CLIPOBJ _In_ BRUSHOBJ _In_ LONG _In_ LONG y1
_In_ CLIPOBJ _In_ BRUSHOBJ _In_ LONG _In_ LONG _In_ LONG _In_ LONG y2
_In_ CLIPOBJ _In_ BRUSHOBJ _In_ LONG _In_ LONG _In_ LONG x2