2007-08-08 08:38:06 +02:00
|
|
|
/***************************************************************************/
|
|
|
|
/* */
|
|
|
|
/* otvmath.c */
|
|
|
|
/* */
|
|
|
|
/* OpenType MATH table validation (body). */
|
|
|
|
/* */
|
2015-01-17 20:41:43 +01:00
|
|
|
/* Copyright 2007-2015 by */
|
2007-08-08 08:38:06 +02:00
|
|
|
/* David Turner, Robert Wilhelm, and Werner Lemberg. */
|
|
|
|
/* */
|
|
|
|
/* Written by George Williams. */
|
|
|
|
/* */
|
|
|
|
/* This file is part of the FreeType project, and may only be used, */
|
|
|
|
/* modified, and distributed under the terms of the FreeType project */
|
|
|
|
/* license, LICENSE.TXT. By continuing to use, modify, or distribute */
|
|
|
|
/* this file you indicate that you have read the license and */
|
|
|
|
/* understand and accept it fully. */
|
|
|
|
/* */
|
|
|
|
/***************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
#include "otvalid.h"
|
|
|
|
#include "otvcommn.h"
|
|
|
|
#include "otvgpos.h"
|
|
|
|
|
|
|
|
|
|
|
|
/*************************************************************************/
|
|
|
|
/* */
|
|
|
|
/* The macro FT_COMPONENT is used in trace mode. It is an implicit */
|
|
|
|
/* parameter of the FT_TRACE() and FT_ERROR() macros, used to print/log */
|
|
|
|
/* messages during execution. */
|
|
|
|
/* */
|
|
|
|
#undef FT_COMPONENT
|
|
|
|
#define FT_COMPONENT trace_otvmath
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*************************************************************************/
|
|
|
|
/*************************************************************************/
|
|
|
|
/***** *****/
|
|
|
|
/***** MATH TYPOGRAPHIC CONSTANTS *****/
|
|
|
|
/***** *****/
|
|
|
|
/*************************************************************************/
|
|
|
|
/*************************************************************************/
|
|
|
|
|
|
|
|
static void
|
|
|
|
otv_MathConstants_validate( FT_Bytes table,
|
2014-12-08 16:58:04 +01:00
|
|
|
OTV_Validator otvalid )
|
2007-08-08 08:38:06 +02:00
|
|
|
{
|
|
|
|
FT_Bytes p = table;
|
|
|
|
FT_UInt i;
|
|
|
|
FT_UInt table_size;
|
|
|
|
|
|
|
|
OTV_OPTIONAL_TABLE( DeviceTableOffset );
|
|
|
|
|
|
|
|
|
|
|
|
OTV_NAME_ENTER( "MathConstants" );
|
|
|
|
|
2007-08-11 17:45:32 +02:00
|
|
|
/* 56 constants, 51 have device tables */
|
|
|
|
OTV_LIMIT_CHECK( 2 * ( 56 + 51 ) );
|
|
|
|
table_size = 2 * ( 56 + 51 );
|
2007-08-08 08:38:06 +02:00
|
|
|
|
|
|
|
p += 4 * 2; /* First 4 constants have no device tables */
|
2007-08-11 17:45:32 +02:00
|
|
|
for ( i = 0; i < 51; ++i )
|
2007-08-08 08:38:06 +02:00
|
|
|
{
|
|
|
|
p += 2; /* skip the value */
|
|
|
|
OTV_OPTIONAL_OFFSET( DeviceTableOffset );
|
|
|
|
OTV_SIZE_CHECK( DeviceTableOffset );
|
|
|
|
if ( DeviceTableOffset )
|
2014-12-08 16:58:04 +01:00
|
|
|
otv_Device_validate( table + DeviceTableOffset, otvalid );
|
2007-08-08 08:38:06 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
OTV_EXIT;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*************************************************************************/
|
|
|
|
/*************************************************************************/
|
|
|
|
/***** *****/
|
|
|
|
/***** MATH ITALICS CORRECTION *****/
|
|
|
|
/***** MATH TOP ACCENT ATTACHMENT *****/
|
|
|
|
/***** *****/
|
|
|
|
/*************************************************************************/
|
|
|
|
/*************************************************************************/
|
|
|
|
|
|
|
|
static void
|
|
|
|
otv_MathItalicsCorrectionInfo_validate( FT_Bytes table,
|
2014-12-08 16:58:04 +01:00
|
|
|
OTV_Validator otvalid,
|
2007-08-08 08:38:06 +02:00
|
|
|
FT_Int isItalic )
|
|
|
|
{
|
|
|
|
FT_Bytes p = table;
|
|
|
|
FT_UInt i, cnt, table_size ;
|
|
|
|
|
|
|
|
OTV_OPTIONAL_TABLE( Coverage );
|
|
|
|
OTV_OPTIONAL_TABLE( DeviceTableOffset );
|
|
|
|
|
* src/autofit/afcjk.c, src/base/ftoutln.c, src/base/ftrfork.c,
src/bdf/bdfdrivr.c, src/gxvalid/gxvmorx.c, src/otvalid/otvmath.c,
src/pcf/pcfdrivr.c, src/psnames/pstables.h, src/smooth/ftgrays.c,
src/tools/glnames.py, src/truetype/ttinterp.c, src/type1/t1load.c,
src/type42/t42objs.c, src/winfonts/winfnt.c: Fix compiler warnings
(Atari PureC).
2008-11-29 23:50:24 +01:00
|
|
|
FT_UNUSED( isItalic ); /* only used if tracing is active */
|
|
|
|
|
2007-08-08 08:38:06 +02:00
|
|
|
|
|
|
|
OTV_NAME_ENTER( isItalic ? "MathItalicsCorrectionInfo"
|
|
|
|
: "MathTopAccentAttachment" );
|
|
|
|
|
|
|
|
OTV_LIMIT_CHECK( 4 );
|
|
|
|
|
|
|
|
OTV_OPTIONAL_OFFSET( Coverage );
|
|
|
|
cnt = FT_NEXT_USHORT( p );
|
|
|
|
|
|
|
|
OTV_LIMIT_CHECK( 4 * cnt );
|
|
|
|
table_size = 4 + 4 * cnt;
|
|
|
|
|
|
|
|
OTV_SIZE_CHECK( Coverage );
|
2014-12-08 16:58:04 +01:00
|
|
|
otv_Coverage_validate( table + Coverage, otvalid, cnt );
|
2007-08-08 08:38:06 +02:00
|
|
|
|
|
|
|
for ( i = 0; i < cnt; ++i )
|
|
|
|
{
|
|
|
|
p += 2; /* Skip the value */
|
|
|
|
OTV_OPTIONAL_OFFSET( DeviceTableOffset );
|
|
|
|
OTV_SIZE_CHECK( DeviceTableOffset );
|
|
|
|
if ( DeviceTableOffset )
|
2014-12-08 16:58:04 +01:00
|
|
|
otv_Device_validate( table + DeviceTableOffset, otvalid );
|
2007-08-08 08:38:06 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
OTV_EXIT;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*************************************************************************/
|
|
|
|
/*************************************************************************/
|
|
|
|
/***** *****/
|
|
|
|
/***** MATH KERNING *****/
|
|
|
|
/***** *****/
|
|
|
|
/*************************************************************************/
|
|
|
|
/*************************************************************************/
|
|
|
|
|
|
|
|
static void
|
|
|
|
otv_MathKern_validate( FT_Bytes table,
|
2014-12-08 16:58:04 +01:00
|
|
|
OTV_Validator otvalid )
|
2007-08-08 08:38:06 +02:00
|
|
|
{
|
|
|
|
FT_Bytes p = table;
|
|
|
|
FT_UInt i, cnt, table_size;
|
|
|
|
|
|
|
|
OTV_OPTIONAL_TABLE( DeviceTableOffset );
|
|
|
|
|
|
|
|
|
|
|
|
/* OTV_NAME_ENTER( "MathKern" );*/
|
|
|
|
|
|
|
|
OTV_LIMIT_CHECK( 2 );
|
|
|
|
|
|
|
|
cnt = FT_NEXT_USHORT( p );
|
|
|
|
|
|
|
|
OTV_LIMIT_CHECK( 4 * cnt + 2 );
|
|
|
|
table_size = 4 + 4 * cnt;
|
|
|
|
|
|
|
|
/* Heights */
|
|
|
|
for ( i = 0; i < cnt; ++i )
|
|
|
|
{
|
|
|
|
p += 2; /* Skip the value */
|
|
|
|
OTV_OPTIONAL_OFFSET( DeviceTableOffset );
|
|
|
|
OTV_SIZE_CHECK( DeviceTableOffset );
|
|
|
|
if ( DeviceTableOffset )
|
2014-12-08 16:58:04 +01:00
|
|
|
otv_Device_validate( table + DeviceTableOffset, otvalid );
|
2007-08-08 08:38:06 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/* One more Kerning value */
|
|
|
|
for ( i = 0; i < cnt + 1; ++i )
|
|
|
|
{
|
|
|
|
p += 2; /* Skip the value */
|
|
|
|
OTV_OPTIONAL_OFFSET( DeviceTableOffset );
|
|
|
|
OTV_SIZE_CHECK( DeviceTableOffset );
|
|
|
|
if ( DeviceTableOffset )
|
2014-12-08 16:58:04 +01:00
|
|
|
otv_Device_validate( table + DeviceTableOffset, otvalid );
|
2007-08-08 08:38:06 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
OTV_EXIT;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static void
|
|
|
|
otv_MathKernInfo_validate( FT_Bytes table,
|
2014-12-08 16:58:04 +01:00
|
|
|
OTV_Validator otvalid )
|
2007-08-08 08:38:06 +02:00
|
|
|
{
|
|
|
|
FT_Bytes p = table;
|
|
|
|
FT_UInt i, j, cnt, table_size;
|
|
|
|
|
|
|
|
OTV_OPTIONAL_TABLE( Coverage );
|
|
|
|
OTV_OPTIONAL_TABLE( MKRecordOffset );
|
|
|
|
|
|
|
|
|
|
|
|
OTV_NAME_ENTER( "MathKernInfo" );
|
|
|
|
|
|
|
|
OTV_LIMIT_CHECK( 4 );
|
|
|
|
|
|
|
|
OTV_OPTIONAL_OFFSET( Coverage );
|
|
|
|
cnt = FT_NEXT_USHORT( p );
|
|
|
|
|
|
|
|
OTV_LIMIT_CHECK( 8 * cnt );
|
|
|
|
table_size = 4 + 8 * cnt;
|
|
|
|
|
|
|
|
OTV_SIZE_CHECK( Coverage );
|
2014-12-08 16:58:04 +01:00
|
|
|
otv_Coverage_validate( table + Coverage, otvalid, cnt );
|
2007-08-08 08:38:06 +02:00
|
|
|
|
|
|
|
for ( i = 0; i < cnt; ++i )
|
|
|
|
{
|
|
|
|
for ( j = 0; j < 4; ++j )
|
|
|
|
{
|
|
|
|
OTV_OPTIONAL_OFFSET( MKRecordOffset );
|
|
|
|
OTV_SIZE_CHECK( MKRecordOffset );
|
|
|
|
if ( MKRecordOffset )
|
2014-12-08 16:58:04 +01:00
|
|
|
otv_MathKern_validate( table + MKRecordOffset, otvalid );
|
2007-08-08 08:38:06 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
OTV_EXIT;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*************************************************************************/
|
|
|
|
/*************************************************************************/
|
|
|
|
/***** *****/
|
|
|
|
/***** MATH GLYPH INFO *****/
|
|
|
|
/***** *****/
|
|
|
|
/*************************************************************************/
|
|
|
|
/*************************************************************************/
|
|
|
|
|
|
|
|
static void
|
|
|
|
otv_MathGlyphInfo_validate( FT_Bytes table,
|
2014-12-08 16:58:04 +01:00
|
|
|
OTV_Validator otvalid )
|
2007-08-08 08:38:06 +02:00
|
|
|
{
|
|
|
|
FT_Bytes p = table;
|
|
|
|
FT_UInt MathItalicsCorrectionInfo, MathTopAccentAttachment;
|
|
|
|
FT_UInt ExtendedShapeCoverage, MathKernInfo;
|
|
|
|
|
|
|
|
|
|
|
|
OTV_NAME_ENTER( "MathGlyphInfo" );
|
|
|
|
|
|
|
|
OTV_LIMIT_CHECK( 8 );
|
|
|
|
|
|
|
|
MathItalicsCorrectionInfo = FT_NEXT_USHORT( p );
|
|
|
|
MathTopAccentAttachment = FT_NEXT_USHORT( p );
|
|
|
|
ExtendedShapeCoverage = FT_NEXT_USHORT( p );
|
|
|
|
MathKernInfo = FT_NEXT_USHORT( p );
|
|
|
|
|
|
|
|
if ( MathItalicsCorrectionInfo )
|
|
|
|
otv_MathItalicsCorrectionInfo_validate(
|
2014-12-08 16:58:04 +01:00
|
|
|
table + MathItalicsCorrectionInfo, otvalid, TRUE );
|
2007-08-08 08:38:06 +02:00
|
|
|
|
|
|
|
/* Italic correction and Top Accent Attachment have the same format */
|
|
|
|
if ( MathTopAccentAttachment )
|
|
|
|
otv_MathItalicsCorrectionInfo_validate(
|
2014-12-08 16:58:04 +01:00
|
|
|
table + MathTopAccentAttachment, otvalid, FALSE );
|
2007-08-08 08:38:06 +02:00
|
|
|
|
2010-06-08 08:37:11 +02:00
|
|
|
if ( ExtendedShapeCoverage )
|
|
|
|
{
|
2007-08-08 08:38:06 +02:00
|
|
|
OTV_NAME_ENTER( "ExtendedShapeCoverage" );
|
2014-12-08 16:58:04 +01:00
|
|
|
otv_Coverage_validate( table + ExtendedShapeCoverage, otvalid, -1 );
|
2007-08-08 08:38:06 +02:00
|
|
|
OTV_EXIT;
|
|
|
|
}
|
|
|
|
|
|
|
|
if ( MathKernInfo )
|
2014-12-08 16:58:04 +01:00
|
|
|
otv_MathKernInfo_validate( table + MathKernInfo, otvalid );
|
2007-08-08 08:38:06 +02:00
|
|
|
|
|
|
|
OTV_EXIT;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*************************************************************************/
|
|
|
|
/*************************************************************************/
|
|
|
|
/***** *****/
|
|
|
|
/***** MATH GLYPH CONSTRUCTION *****/
|
|
|
|
/***** *****/
|
|
|
|
/*************************************************************************/
|
|
|
|
/*************************************************************************/
|
|
|
|
|
|
|
|
static void
|
|
|
|
otv_GlyphAssembly_validate( FT_Bytes table,
|
2014-12-08 16:58:04 +01:00
|
|
|
OTV_Validator otvalid )
|
2007-08-08 08:38:06 +02:00
|
|
|
{
|
|
|
|
FT_Bytes p = table;
|
|
|
|
FT_UInt pcnt, table_size;
|
2007-08-11 17:45:32 +02:00
|
|
|
FT_UInt i;
|
2007-08-08 08:38:06 +02:00
|
|
|
|
|
|
|
OTV_OPTIONAL_TABLE( DeviceTableOffset );
|
|
|
|
|
|
|
|
|
|
|
|
/* OTV_NAME_ENTER( "GlyphAssembly" ); */
|
|
|
|
|
|
|
|
OTV_LIMIT_CHECK( 6 );
|
|
|
|
|
|
|
|
p += 2; /* Skip the Italics Correction value */
|
|
|
|
OTV_OPTIONAL_OFFSET( DeviceTableOffset );
|
|
|
|
pcnt = FT_NEXT_USHORT( p );
|
|
|
|
|
|
|
|
OTV_LIMIT_CHECK( 8 * pcnt );
|
|
|
|
table_size = 6 + 8 * pcnt;
|
|
|
|
|
|
|
|
OTV_SIZE_CHECK( DeviceTableOffset );
|
|
|
|
if ( DeviceTableOffset )
|
2014-12-08 16:58:04 +01:00
|
|
|
otv_Device_validate( table + DeviceTableOffset, otvalid );
|
2007-08-08 08:38:06 +02:00
|
|
|
|
2007-08-11 17:45:32 +02:00
|
|
|
for ( i = 0; i < pcnt; ++i )
|
|
|
|
{
|
|
|
|
FT_UInt gid;
|
|
|
|
|
|
|
|
|
|
|
|
gid = FT_NEXT_USHORT( p );
|
2014-12-08 16:58:04 +01:00
|
|
|
if ( gid >= otvalid->glyph_count )
|
2007-08-11 17:45:32 +02:00
|
|
|
FT_INVALID_GLYPH_ID;
|
|
|
|
p += 2*4; /* skip the Start, End, Full, and Flags fields */
|
|
|
|
}
|
|
|
|
|
2007-08-08 08:38:06 +02:00
|
|
|
/* OTV_EXIT; */
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static void
|
|
|
|
otv_MathGlyphConstruction_validate( FT_Bytes table,
|
2014-12-08 16:58:04 +01:00
|
|
|
OTV_Validator otvalid )
|
2007-08-08 08:38:06 +02:00
|
|
|
{
|
|
|
|
FT_Bytes p = table;
|
|
|
|
FT_UInt vcnt, table_size;
|
2007-08-11 17:45:32 +02:00
|
|
|
FT_UInt i;
|
2007-08-08 08:38:06 +02:00
|
|
|
|
|
|
|
OTV_OPTIONAL_TABLE( GlyphAssembly );
|
|
|
|
|
|
|
|
|
|
|
|
/* OTV_NAME_ENTER( "MathGlyphConstruction" ); */
|
|
|
|
|
|
|
|
OTV_LIMIT_CHECK( 4 );
|
|
|
|
|
|
|
|
OTV_OPTIONAL_OFFSET( GlyphAssembly );
|
|
|
|
vcnt = FT_NEXT_USHORT( p );
|
|
|
|
|
|
|
|
OTV_LIMIT_CHECK( 4 * vcnt );
|
|
|
|
table_size = 4 + 4 * vcnt;
|
|
|
|
|
2007-08-11 17:45:32 +02:00
|
|
|
for ( i = 0; i < vcnt; ++i )
|
|
|
|
{
|
|
|
|
FT_UInt gid;
|
|
|
|
|
|
|
|
|
|
|
|
gid = FT_NEXT_USHORT( p );
|
2014-12-08 16:58:04 +01:00
|
|
|
if ( gid >= otvalid->glyph_count )
|
2007-08-11 17:45:32 +02:00
|
|
|
FT_INVALID_GLYPH_ID;
|
|
|
|
p += 2; /* skip the size */
|
|
|
|
}
|
|
|
|
|
2007-08-08 08:38:06 +02:00
|
|
|
OTV_SIZE_CHECK( GlyphAssembly );
|
|
|
|
if ( GlyphAssembly )
|
2014-12-08 16:58:04 +01:00
|
|
|
otv_GlyphAssembly_validate( table+GlyphAssembly, otvalid );
|
2007-08-08 08:38:06 +02:00
|
|
|
|
|
|
|
/* OTV_EXIT; */
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static void
|
|
|
|
otv_MathVariants_validate( FT_Bytes table,
|
2014-12-08 16:58:04 +01:00
|
|
|
OTV_Validator otvalid )
|
2007-08-08 08:38:06 +02:00
|
|
|
{
|
|
|
|
FT_Bytes p = table;
|
|
|
|
FT_UInt vcnt, hcnt, i, table_size;
|
|
|
|
|
|
|
|
OTV_OPTIONAL_TABLE( VCoverage );
|
|
|
|
OTV_OPTIONAL_TABLE( HCoverage );
|
|
|
|
OTV_OPTIONAL_TABLE( Offset );
|
|
|
|
|
|
|
|
|
|
|
|
OTV_NAME_ENTER( "MathVariants" );
|
|
|
|
|
|
|
|
OTV_LIMIT_CHECK( 10 );
|
|
|
|
|
|
|
|
p += 2; /* Skip the MinConnectorOverlap constant */
|
|
|
|
OTV_OPTIONAL_OFFSET( VCoverage );
|
|
|
|
OTV_OPTIONAL_OFFSET( HCoverage );
|
|
|
|
vcnt = FT_NEXT_USHORT( p );
|
|
|
|
hcnt = FT_NEXT_USHORT( p );
|
|
|
|
|
|
|
|
OTV_LIMIT_CHECK( 2 * vcnt + 2 * hcnt );
|
|
|
|
table_size = 10 + 2 * vcnt + 2 * hcnt;
|
|
|
|
|
|
|
|
OTV_SIZE_CHECK( VCoverage );
|
|
|
|
if ( VCoverage )
|
2014-12-08 16:58:04 +01:00
|
|
|
otv_Coverage_validate( table + VCoverage, otvalid, vcnt );
|
2007-08-08 08:38:06 +02:00
|
|
|
|
|
|
|
OTV_SIZE_CHECK( HCoverage );
|
|
|
|
if ( HCoverage )
|
2014-12-08 16:58:04 +01:00
|
|
|
otv_Coverage_validate( table + HCoverage, otvalid, hcnt );
|
2007-08-08 08:38:06 +02:00
|
|
|
|
|
|
|
for ( i = 0; i < vcnt; ++i )
|
|
|
|
{
|
|
|
|
OTV_OPTIONAL_OFFSET( Offset );
|
|
|
|
OTV_SIZE_CHECK( Offset );
|
2014-12-08 16:58:04 +01:00
|
|
|
otv_MathGlyphConstruction_validate( table + Offset, otvalid );
|
2007-08-08 08:38:06 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
for ( i = 0; i < hcnt; ++i )
|
|
|
|
{
|
|
|
|
OTV_OPTIONAL_OFFSET( Offset );
|
|
|
|
OTV_SIZE_CHECK( Offset );
|
2014-12-08 16:58:04 +01:00
|
|
|
otv_MathGlyphConstruction_validate( table + Offset, otvalid );
|
2007-08-08 08:38:06 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
OTV_EXIT;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*************************************************************************/
|
|
|
|
/*************************************************************************/
|
|
|
|
/***** *****/
|
|
|
|
/***** MATH TABLE *****/
|
|
|
|
/***** *****/
|
|
|
|
/*************************************************************************/
|
|
|
|
/*************************************************************************/
|
|
|
|
|
2014-12-08 16:58:04 +01:00
|
|
|
/* sets otvalid->glyph_count */
|
2007-08-08 08:38:06 +02:00
|
|
|
|
|
|
|
FT_LOCAL_DEF( void )
|
|
|
|
otv_MATH_validate( FT_Bytes table,
|
|
|
|
FT_UInt glyph_count,
|
|
|
|
FT_Validator ftvalid )
|
|
|
|
{
|
2014-12-08 16:58:04 +01:00
|
|
|
OTV_ValidatorRec otvalidrec;
|
|
|
|
OTV_Validator otvalid = &otvalidrec;
|
|
|
|
FT_Bytes p = table;
|
2007-08-08 08:38:06 +02:00
|
|
|
FT_UInt MathConstants, MathGlyphInfo, MathVariants;
|
|
|
|
|
|
|
|
|
2014-12-08 16:58:04 +01:00
|
|
|
otvalid->root = ftvalid;
|
2007-08-08 08:38:06 +02:00
|
|
|
|
|
|
|
FT_TRACE3(( "validating MATH table\n" ));
|
|
|
|
OTV_INIT;
|
|
|
|
|
|
|
|
OTV_LIMIT_CHECK( 10 );
|
|
|
|
|
|
|
|
if ( FT_NEXT_ULONG( p ) != 0x10000UL ) /* Version */
|
|
|
|
FT_INVALID_FORMAT;
|
|
|
|
|
|
|
|
MathConstants = FT_NEXT_USHORT( p );
|
|
|
|
MathGlyphInfo = FT_NEXT_USHORT( p );
|
|
|
|
MathVariants = FT_NEXT_USHORT( p );
|
|
|
|
|
2014-12-08 16:58:04 +01:00
|
|
|
otvalid->glyph_count = glyph_count;
|
2007-08-08 08:38:06 +02:00
|
|
|
|
|
|
|
otv_MathConstants_validate( table + MathConstants,
|
2014-12-08 16:58:04 +01:00
|
|
|
otvalid );
|
2007-08-08 08:38:06 +02:00
|
|
|
otv_MathGlyphInfo_validate( table + MathGlyphInfo,
|
2014-12-08 16:58:04 +01:00
|
|
|
otvalid );
|
2007-08-08 08:38:06 +02:00
|
|
|
otv_MathVariants_validate ( table + MathVariants,
|
2014-12-08 16:58:04 +01:00
|
|
|
otvalid );
|
2007-08-08 08:38:06 +02:00
|
|
|
|
|
|
|
FT_TRACE4(( "\n" ));
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* END */
|