47 #ifndef FT_CONFIG_OPTION_ENVIRONMENT_PROPERTIES 52 if ( !
ft_strcmp( property_name,
"darkening-parameters" ) )
57 #ifdef FT_CONFIG_OPTION_ENVIRONMENT_PROPERTIES 61 if ( value_is_string )
63 const char*
s = (
const char*)
value;
69 for (
i = 0;
i < 7;
i++ )
72 if ( *ep !=
',' ||
s == ep )
79 if ( !( *ep ==
'\0' || *ep ==
' ' ) ||
s == ep )
88 x1 = darken_params[0];
89 y1 = darken_params[1];
90 x2 = darken_params[2];
91 y2 = darken_params[3];
92 x3 = darken_params[4];
93 y3 = darken_params[5];
94 x4 = darken_params[6];
95 y4 = darken_params[7];
97 if (
x1 < 0 ||
x2 < 0 || x3 < 0 || x4 < 0 ||
98 y1 < 0 ||
y2 < 0 || y3 < 0 || y4 < 0 ||
99 x1 >
x2 ||
x2 > x3 || x3 > x4 ||
100 y1 > 500 ||
y2 > 500 || y3 > 500 || y4 > 500 )
101 return FT_THROW( Invalid_Argument );
107 driver->darken_params[4] = x3;
108 driver->darken_params[5] = y3;
109 driver->darken_params[6] = x4;
110 driver->darken_params[7] = y4;
115 else if ( !
ft_strcmp( property_name,
"hinting-engine" ) )
117 #if defined( CFF_CONFIG_OPTION_OLD_ENGINE ) || \ 118 defined( T1_CONFIG_OPTION_OLD_ENGINE ) 123 #ifdef FT_CONFIG_OPTION_ENVIRONMENT_PROPERTIES 124 if ( value_is_string )
126 const char*
s = (
const char*)
value;
138 #ifdef T1_CONFIG_OPTION_OLD_ENGINE
146 return FT_THROW( Invalid_Argument );
159 #ifdef T1_CONFIG_OPTION_OLD_ENGINE
165 driver->hinting_engine = *hinting_engine;
173 else if ( !
ft_strcmp( property_name,
"no-stem-darkening" ) )
175 #ifdef FT_CONFIG_OPTION_ENVIRONMENT_PROPERTIES 176 if ( value_is_string )
178 const char*
s = (
const char*)
value;
193 driver->no_stem_darkening = *no_stem_darkening;
199 else if ( !
ft_strcmp( property_name,
"random-seed" ) )
201 FT_Int32 random_seed;
204 #ifdef FT_CONFIG_OPTION_ENVIRONMENT_PROPERTIES 205 if ( value_is_string )
207 const char*
s = (
const char*)
value;
214 random_seed = *(FT_Int32*)
value;
216 if ( random_seed < 0 )
219 driver->random_seed = random_seed;
224 FT_TRACE0((
"ps_property_set: missing property `%s'\n",
226 return FT_THROW( Missing_Property );
_In_ CLIPOBJ _In_ BRUSHOBJ _In_ LONG _In_ LONG y1
#define CFF_CONFIG_OPTION_OLD_ENGINE
#define FT_HINTING_FREETYPE
static LPCWSTR LPCWSTR module_name
_In_ CLIPOBJ _In_ BRUSHOBJ _In_ LONG x1
FT_BEGIN_HEADER struct PS_DriverRec_ * PS_Driver
FT_BEGIN_HEADER typedef unsigned char FT_Bool
#define FT_TRACE0(varformat)
_In_ CLIPOBJ _In_ BRUSHOBJ _In_ LONG _In_ LONG _In_ LONG _In_ LONG y2
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
_In_ CLIPOBJ _In_ BRUSHOBJ _In_ LONG _In_ LONG _In_ LONG x2
struct @1626::@1627 driver