#include "otvalid.h"
#include "otvcommn.h"
#include "otvgpos.h"
Go to the source code of this file.
|
static void | otv_MathConstants_validate (FT_Bytes table, OTV_Validator otvalid) |
|
static void | otv_MathItalicsCorrectionInfo_validate (FT_Bytes table, OTV_Validator otvalid, FT_Int isItalic) |
|
static void | otv_MathKern_validate (FT_Bytes table, OTV_Validator otvalid) |
|
static void | otv_MathKernInfo_validate (FT_Bytes table, OTV_Validator otvalid) |
|
static void | otv_MathGlyphInfo_validate (FT_Bytes table, OTV_Validator otvalid) |
|
static void | otv_GlyphAssembly_validate (FT_Bytes table, OTV_Validator otvalid) |
|
static void | otv_MathGlyphConstruction_validate (FT_Bytes table, OTV_Validator otvalid) |
|
static void | otv_MathVariants_validate (FT_Bytes table, OTV_Validator otvalid) |
|
| otv_MATH_validate (FT_Bytes table, FT_UInt glyph_count, FT_Validator ftvalid) |
|
◆ FT_COMPONENT
#define FT_COMPONENT trace_otvmath |
◆ otv_GlyphAssembly_validate()
Definition at line 274 of file otvmath.c.
276 {
280
282
283
284
285
287
291
294
296 if ( DeviceTableOffset )
298
299 for (
i = 0;
i < pcnt;
i++ )
300 {
302
303
305 if ( gid >= otvalid->glyph_count )
308 }
309
310
311 }
#define FT_NEXT_USHORT(buffer)
#define FT_INVALID_GLYPH_ID
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
otv_Device_validate(FT_Bytes table, OTV_Validator otvalid)
#define OTV_SIZE_CHECK(_size)
#define OTV_OPTIONAL_OFFSET(_offset)
#define OTV_LIMIT_CHECK(_count)
#define OTV_OPTIONAL_TABLE(_table)
Referenced by otv_MathGlyphConstruction_validate().
◆ otv_MATH_validate()
Definition at line 416 of file otvmath.c.
419 {
423 FT_UInt MathConstants, MathGlyphInfo, MathVariants;
424
425
426 otvalid->root = ftvalid;
427
428 FT_TRACE3((
"validating MATH table\n" ));
430
432
435
439
440 otvalid->glyph_count = glyph_count;
441
443 otvalid );
445 otvalid );
447 otvalid );
448
450 }
#define FT_TRACE3(varformat)
#define FT_TRACE4(varformat)
#define FT_NEXT_ULONG(buffer)
#define FT_INVALID_FORMAT
typedefFT_BEGIN_HEADER struct OTV_ValidatorRec_ * OTV_Validator
static void otv_MathConstants_validate(FT_Bytes table, OTV_Validator otvalid)
static void otv_MathGlyphInfo_validate(FT_Bytes table, OTV_Validator otvalid)
static void otv_MathVariants_validate(FT_Bytes table, OTV_Validator otvalid)
Referenced by otv_validate().
◆ otv_MathConstants_validate()
Definition at line 46 of file otvmath.c.
48 {
52
54
55
57
58
61
63 for (
i = 0;
i < 51;
i++ )
64 {
68 if ( DeviceTableOffset )
70 }
71
73 }
#define OTV_NAME_ENTER(name)
Referenced by otv_MATH_validate().
◆ otv_MathGlyphConstruction_validate()
Definition at line 315 of file otvmath.c.
317 {
321
323
324
325
326
328
331
334
335 for (
i = 0;
i < vcnt;
i++ )
336 {
338
339
341 if ( gid >= otvalid->glyph_count )
344 }
345
347 if ( GlyphAssembly )
349
350
351 }
static void otv_GlyphAssembly_validate(FT_Bytes table, OTV_Validator otvalid)
Referenced by otv_MathVariants_validate().
◆ otv_MathGlyphInfo_validate()
Definition at line 225 of file otvmath.c.
227 {
229 FT_UInt MathItalicsCorrectionInfo, MathTopAccentAttachment;
230 FT_UInt ExtendedShapeCoverage, MathKernInfo;
231
232
234
236
241
242 if ( MathItalicsCorrectionInfo )
244 table + MathItalicsCorrectionInfo, otvalid,
TRUE );
245
246
247 if ( MathTopAccentAttachment )
249 table + MathTopAccentAttachment, otvalid,
FALSE );
250
251 if ( ExtendedShapeCoverage )
252 {
256 }
257
258 if ( MathKernInfo )
260
262 }
otv_Coverage_validate(FT_Bytes table, OTV_Validator otvalid, FT_Int expected_count)
static void otv_MathItalicsCorrectionInfo_validate(FT_Bytes table, OTV_Validator otvalid, FT_Int isItalic)
static void otv_MathKernInfo_validate(FT_Bytes table, OTV_Validator otvalid)
Referenced by otv_MATH_validate().
◆ otv_MathItalicsCorrectionInfo_validate()
Definition at line 86 of file otvmath.c.
89 {
92
95
97
98
100 : "MathTopAccentAttachment" );
101
103
106
109
112
113 for (
i = 0;
i <
cnt;
i++ )
114 {
118 if ( DeviceTableOffset )
120 }
121
123 }
Referenced by otv_MathGlyphInfo_validate().
◆ otv_MathKern_validate()
Definition at line 135 of file otvmath.c.
137 {
140
142
143
144
145
147
149
152
153
154 for (
i = 0;
i <
cnt;
i++ )
155 {
159 if ( DeviceTableOffset )
161 }
162
163
164 for (
i = 0;
i <
cnt + 1;
i++ )
165 {
169 if ( DeviceTableOffset )
171 }
172
174 }
Referenced by otv_MathKernInfo_validate().
◆ otv_MathKernInfo_validate()
Definition at line 178 of file otvmath.c.
180 {
183
186
187
189
191
194
197
200
201 for (
i = 0;
i <
cnt;
i++ )
202 {
203 for (
j = 0;
j < 4;
j++ )
204 {
207 if ( MKRecordOffset )
209 }
210 }
211
213 }
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 GLint GLint j
static void otv_MathKern_validate(FT_Bytes table, OTV_Validator otvalid)
Referenced by otv_MathGlyphInfo_validate().
◆ otv_MathVariants_validate()
Definition at line 355 of file otvmath.c.
357 {
360
364
365
367
369
375
378
380 if ( VCoverage )
382
384 if ( HCoverage )
386
387 for (
i = 0;
i < vcnt;
i++ )
388 {
392 }
393
394 for (
i = 0;
i < hcnt;
i++ )
395 {
399 }
400
402 }
_In_ ULONG _In_ ULONG Offset
static void otv_MathGlyphConstruction_validate(FT_Bytes table, OTV_Validator otvalid)
Referenced by otv_MATH_validate().