39#define FT_COMPONENT trace_gxvmort
48 GXV_TRACE((
"featureType %d is out of registered range, "
49 "setting %d is unchecked\n",
50 f->featureType,
f->featureSetting ));
55 GXV_TRACE((
"featureType %d is within registered area "
56 "but undefined, setting %d is unchecked\n",
57 f->featureType,
f->featureSetting ));
68 nSettings_max = (
FT_Byte)( 2 * nSettings_max );
70 GXV_TRACE((
"featureType %d is registered",
f->featureType ));
71 GXV_TRACE((
"setting %d",
f->featureSetting ));
73 if (
f->featureSetting > nSettings_max )
75 GXV_TRACE((
"out of defined range %d", nSettings_max ));
102 for (
i = 0;
i < nFeatureFlags;
i++ )
127#ifdef FT_DEBUG_LEVEL_TRACE
128 if ( coverage & 0x8000U )
129 GXV_TRACE((
" this subtable is for vertical text only\n" ));
131 GXV_TRACE((
" this subtable is for horizontal text only\n" ));
133 if ( coverage & 0x4000 )
134 GXV_TRACE((
" this subtable is applied to glyph array "
135 "in descending order\n" ));
137 GXV_TRACE((
" this subtable is applied to glyph array "
138 "in ascending order\n" ));
140 if ( coverage & 0x2000 )
141 GXV_TRACE((
" this subtable is forcibly applied to "
142 "vertical/horizontal text\n" ));
144 if ( coverage & 0x1FF8 )
145 GXV_TRACE((
" coverage has non-zero bits in reserved area\n" ));
174 for (
i = 0;
i < nSubtables;
i++ )
180#ifdef GXV_LOAD_UNUSED_VARS
190#ifdef GXV_LOAD_UNUSED_VARS
196 GXV_TRACE((
"validating chain subtable %d/%d (%d bytes)\n",
198 type = coverage & 0x0007;
199 rest =
length - ( 2 + 2 + 4 );
211 func(
p,
p + rest, gxvalid );
229#ifdef GXV_LOAD_UNUSED_VARS
240#ifdef GXV_LOAD_UNUSED_VARS
250 nFeatureFlags, gxvalid );
274 gxvalid->
root = ftvalid;
278 FT_TRACE3((
"validating `mort' table\n" ));
288 for (
i = 0;
i < nChains;
i++ )
290 GXV_TRACE((
"validating chain %d/%d\n",
i + 1, nChains ));
static const WCHAR version[]
#define FT_TRACE3(varformat)
#define FT_TRACE4(varformat)
#define FT_NEXT_USHORT(buffer)
#define FT_NEXT_ULONG(buffer)
#define FT_INVALID_FORMAT
typedefFT_BEGIN_HEADER struct FT_ValidatorRec_ volatile * FT_Validator
GLuint GLuint GLsizei GLenum type
GLenum GLuint GLint GLenum face
GLuint GLsizei GLsizei * length
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
void(* GXV_Validate_Func)(FT_Bytes table, FT_Bytes limit, GXV_Validator gxvalid)
#define GXV_32BIT_ALIGNMENT_VALIDATE(a)
#define GXV_NAME_ENTER(name)
#define GXV_SET_ERR_IF_PARANOID(err)
#define GXV_LIMIT_CHECK(_count)
static GX_Feature_RegistryRec gxv_feat_registry[]
#define gxv_feat_registry_length
static void gxv_mort_feature_validate(GXV_mort_feature f, GXV_Validator gxvalid)
gxv_mort_coverage_validate(FT_UShort coverage, GXV_Validator gxvalid)
static void gxv_mort_subtables_validate(FT_Bytes table, FT_Bytes limit, FT_UShort nSubtables, GXV_Validator gxvalid)
gxv_mort_validate(FT_Bytes table, FT_Face face, FT_Validator ftvalid)
gxv_mort_featurearray_validate(FT_Bytes table, FT_Bytes limit, FT_ULong nFeatureFlags, GXV_Validator gxvalid)
static void gxv_mort_chain_validate(FT_Bytes table, FT_Bytes limit, GXV_Validator gxvalid)
gxv_mort_subtable_type1_validate(FT_Bytes table, FT_Bytes limit, GXV_Validator gxvalid)
gxv_mort_subtable_type0_validate(FT_Bytes table, FT_Bytes limit, GXV_Validator gxvalid)
#define GXV_MORT_FEATURE_OFF
gxv_mort_subtable_type4_validate(FT_Bytes table, FT_Bytes limit, GXV_Validator gxvalid)
gxv_mort_subtable_type2_validate(FT_Bytes table, FT_Bytes limit, GXV_Validator gxvalid)
gxv_mort_subtable_type5_validate(FT_Bytes table, FT_Bytes limit, GXV_Validator gxvalid)
#define IS_GXV_MORT_FEATURE_OFF(f)