33 #define FT_COMPONENT trace_otvmath 60 table_size = 2 * ( 56 + 51 );
63 for ( i = 0; i < 51; ++
i )
68 if ( DeviceTableOffset )
100 :
"MathTopAccentAttachment" );
108 table_size = 4 + 4 * cnt;
113 for ( i = 0; i < cnt; ++
i )
118 if ( DeviceTableOffset )
151 table_size = 4 + 4 * cnt;
154 for ( i = 0; i < cnt; ++
i )
159 if ( DeviceTableOffset )
164 for ( i = 0; i < cnt + 1; ++
i )
169 if ( DeviceTableOffset )
196 table_size = 4 + 8 * cnt;
201 for ( i = 0; i < cnt; ++
i )
203 for ( j = 0; j < 4; ++j )
207 if ( MKRecordOffset )
208 otv_MathKern_validate(
table + MKRecordOffset, valid );
229 FT_UInt MathItalicsCorrectionInfo, MathTopAccentAttachment;
230 FT_UInt ExtendedShapeCoverage, MathKernInfo;
242 if ( MathItalicsCorrectionInfo )
243 otv_MathItalicsCorrectionInfo_validate(
244 table + MathItalicsCorrectionInfo, valid,
TRUE );
247 if ( MathTopAccentAttachment )
248 otv_MathItalicsCorrectionInfo_validate(
249 table + MathTopAccentAttachment, valid,
FALSE );
251 if ( ExtendedShapeCoverage )
259 otv_MathKernInfo_validate(
table + MathKernInfo, valid );
293 table_size = 6 + 8 * pcnt;
296 if ( DeviceTableOffset )
299 for ( i = 0; i < pcnt; ++
i )
305 if ( gid >= valid->glyph_count )
333 table_size = 4 + 4 * vcnt;
335 for ( i = 0; i < vcnt; ++
i )
341 if ( gid >= valid->glyph_count )
348 otv_GlyphAssembly_validate(
table+GlyphAssembly, valid );
377 table_size = 10 + 2 * vcnt + 2 * hcnt;
387 for ( i = 0; i < vcnt; ++
i )
391 otv_MathGlyphConstruction_validate(
table + Offset, valid );
394 for ( i = 0; i < hcnt; ++
i )
398 otv_MathGlyphConstruction_validate(
table + Offset, valid );
423 FT_UInt MathConstants, MathGlyphInfo, MathVariants;
426 valid->root = ftvalid;
428 FT_TRACE3((
"validating MATH table\n" ));
440 valid->glyph_count = glyph_count;
442 otv_MathConstants_validate(
table + MathConstants,
444 otv_MathGlyphInfo_validate(
table + MathGlyphInfo,
446 otv_MathVariants_validate (
table + MathVariants,
#define OTV_OPTIONAL_TABLE(_table)
#define FT_INVALID_FORMAT
otv_MATH_validate(FT_Bytes table, FT_UInt glyph_count, FT_Validator ftvalid)
#define FT_TRACE4(varformat)
#define OTV_NAME_ENTER(name)
typedefFT_BEGIN_HEADER struct FT_ValidatorRec_ volatile * FT_Validator
#define OTV_LIMIT_CHECK(_count)
#define FT_NEXT_USHORT(buffer)
#define FT_TRACE3(varformat)
otv_Coverage_validate(FT_Bytes table, OTV_Validator valid, FT_Int expected_count)
typedefFT_BEGIN_HEADER struct OTV_ValidatorRec_ * OTV_Validator
#define FT_NEXT_ULONG(buffer)
#define OTV_SIZE_CHECK(_size)
otv_Device_validate(FT_Bytes table, OTV_Validator valid)
#define FT_INVALID_GLYPH_ID
GLenum GLsizei GLenum GLenum const GLvoid * table
#define OTV_OPTIONAL_OFFSET(_offset)