#include "gxvmort.h"
#include "gxvfeat.h"
Go to the source code of this file.
|
static void | gxv_mort_feature_validate (GXV_mort_feature f, GXV_Validator gxvalid) |
|
| gxv_mort_featurearray_validate (FT_Bytes table, FT_Bytes limit, FT_ULong nFeatureFlags, 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) |
|
static void | gxv_mort_chain_validate (FT_Bytes table, FT_Bytes limit, GXV_Validator gxvalid) |
|
| gxv_mort_validate (FT_Bytes table, FT_Face face, FT_Validator ftvalid) |
|
◆ FT_COMPONENT
◆ gxv_mort_chain_validate()
Definition at line 225 of file gxvmort.c.
228 {
230#ifdef GXV_LOAD_UNUSED_VARS
232#endif
236
237
239
241#ifdef GXV_LOAD_UNUSED_VARS
243#else
245#endif
249
251 nFeatureFlags, gxvalid );
255
256
258 }
#define FT_NEXT_USHORT(buffer)
#define FT_NEXT_ULONG(buffer)
#define GXV_NAME_ENTER(name)
#define GXV_LIMIT_CHECK(_count)
static void gxv_mort_subtables_validate(FT_Bytes table, FT_Bytes limit, FT_UShort nSubtables, GXV_Validator gxvalid)
gxv_mort_featurearray_validate(FT_Bytes table, FT_Bytes limit, FT_ULong nFeatureFlags, GXV_Validator gxvalid)
Referenced by gxv_mort_validate().
◆ gxv_mort_coverage_validate()
Definition at line 122 of file gxvmort.c.
124 {
127
128#ifdef FT_DEBUG_LEVEL_TRACE
129 if ( coverage & 0x8000U )
130 GXV_TRACE((
" this subtable is for vertical text only\n" ));
131 else
132 GXV_TRACE((
" this subtable is for horizontal text only\n" ));
133
134 if ( coverage & 0x4000 )
135 GXV_TRACE((
" this subtable is applied to glyph array "
136 "in descending order\n" ));
137 else
138 GXV_TRACE((
" this subtable is applied to glyph array "
139 "in ascending order\n" ));
140
141 if ( coverage & 0x2000 )
142 GXV_TRACE((
" this subtable is forcibly applied to "
143 "vertical/horizontal text\n" ));
144
145 if ( coverage & 0x1FF8 )
146 GXV_TRACE((
" coverage has non-zero bits in reserved area\n" ));
147#endif
148 }
Referenced by gxv_mort_subtables_validate(), and gxv_morx_subtables_validate().
◆ gxv_mort_feature_validate()
Definition at line 43 of file gxvmort.c.
45 {
47 {
48 GXV_TRACE((
"featureType %d is out of registered range, "
49 "setting %d is unchecked\n",
50 f->featureType,
f->featureSetting ));
52 }
54 {
55 GXV_TRACE((
"featureType %d is within registered area "
56 "but undefined, setting %d is unchecked\n",
57 f->featureType,
f->featureSetting ));
59 }
60 else
61 {
63
64
65
68 nSettings_max = (
FT_Byte)( 2 * nSettings_max );
69
70 GXV_TRACE((
"featureType %d is registered",
f->featureType ));
71 GXV_TRACE((
"setting %d",
f->featureSetting ));
72
73 if (
f->featureSetting > nSettings_max )
74 {
75 GXV_TRACE((
"out of defined range %d", nSettings_max ));
77 }
79 }
80
81
82 }
#define GXV_SET_ERR_IF_PARANOID(err)
static GX_Feature_RegistryRec gxv_feat_registry[]
#define gxv_feat_registry_length
Referenced by gxv_mort_featurearray_validate().
◆ gxv_mort_featurearray_validate()
Definition at line 90 of file gxvmort.c.
94 {
97
99
100
102 for (
i = 0;
i < nFeatureFlags;
i++ )
103 {
109
111 }
112
115
118 }
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 void gxv_mort_feature_validate(GXV_mort_feature f, GXV_Validator gxvalid)
#define GXV_MORT_FEATURE_OFF
#define IS_GXV_MORT_FEATURE_OFF(f)
Referenced by gxv_mort_chain_validate(), and gxv_morx_chain_validate().
◆ gxv_mort_subtables_validate()
Definition at line 152 of file gxvmort.c.
156 {
158
160 {
167
168 };
169
171
172
174
175 for (
i = 0;
i < nSubtables;
i++ )
176 {
178
181#ifdef GXV_LOAD_UNUSED_VARS
183#endif
186
187
191#ifdef GXV_LOAD_UNUSED_VARS
193#else
195#endif
196
197 GXV_TRACE((
"validating chain subtable %d/%d (%d bytes)\n",
199 type = coverage & 0x0007;
200 rest =
length - ( 2 + 2 + 4 );
201
204
207
211
212 func(
p,
p + rest, gxvalid );
213
215
216 }
217
219
221 }
#define FT_INVALID_FORMAT
GLuint GLuint GLsizei GLenum type
GLuint GLsizei GLsizei * length
void(* GXV_Validate_Func)(FT_Bytes table, FT_Bytes limit, GXV_Validator gxvalid)
gxv_mort_coverage_validate(FT_UShort coverage, 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)
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)
Referenced by gxv_mort_chain_validate().
◆ gxv_mort_validate()
Definition at line 262 of file gxvmort.c.
265 {
273
274
275 gxvalid->
root = ftvalid;
278
279 FT_TRACE3((
"validating `mort' table\n" ));
281
285
288
289 for (
i = 0;
i < nChains;
i++ )
290 {
291 GXV_TRACE((
"validating chain %d/%d\n",
i + 1, nChains ));
295 }
296
298 }
static const WCHAR version[]
#define FT_TRACE3(varformat)
#define FT_TRACE4(varformat)
#define GXV_32BIT_ALIGNMENT_VALIDATE(a)
static void gxv_mort_chain_validate(FT_Bytes table, FT_Bytes limit, GXV_Validator gxvalid)