#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
#define FT_COMPONENT trace_gxvmort |
◆ gxv_mort_chain_validate()
Definition at line 224 of file gxvmort.c.
227 {
229#ifdef GXV_LOAD_UNUSED_VARS
231#endif
235
236
238
240#ifdef GXV_LOAD_UNUSED_VARS
242#else
244#endif
248
250 nFeatureFlags, gxvalid );
254
255
257 }
#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 {
126
127#ifdef FT_DEBUG_LEVEL_TRACE
128 if ( coverage & 0x8000U )
129 GXV_TRACE((
" this subtable is for vertical text only\n" ));
130 else
131 GXV_TRACE((
" this subtable is for horizontal text only\n" ));
132
133 if ( coverage & 0x4000 )
134 GXV_TRACE((
" this subtable is applied to glyph array "
135 "in descending order\n" ));
136 else
137 GXV_TRACE((
" this subtable is applied to glyph array "
138 "in ascending order\n" ));
139
140 if ( coverage & 0x2000 )
141 GXV_TRACE((
" this subtable is forcibly applied to "
142 "vertical/horizontal text\n" ));
143
144 if ( coverage & 0x1FF8 )
145 GXV_TRACE((
" coverage has non-zero bits in reserved area\n" ));
146#endif
147 }
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 151 of file gxvmort.c.
155 {
157
159 {
166
167 };
168
170
171
173
174 for (
i = 0;
i < nSubtables;
i++ )
175 {
177
180#ifdef GXV_LOAD_UNUSED_VARS
182#endif
185
186
190#ifdef GXV_LOAD_UNUSED_VARS
192#else
194#endif
195
196 GXV_TRACE((
"validating chain subtable %d/%d (%d bytes)\n",
198 type = coverage & 0x0007;
199 rest =
length - ( 2 + 2 + 4 );
200
203
206
210
211 func(
p,
p + rest, gxvalid );
212
214
215 }
216
218
220 }
#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 261 of file gxvmort.c.
264 {
272
273
274 gxvalid->
root = ftvalid;
277
278 FT_TRACE3((
"validating `mort' table\n" ));
280
284
287
288 for (
i = 0;
i < nChains;
i++ )
289 {
290 GXV_TRACE((
"validating chain %d/%d\n",
i + 1, nChains ));
294 }
295
297 }
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)