31#define FT_COMPONENT trace_otvjstf
34#define JstfPriorityFunc otv_JstfPriority_validate
35#define JstfLookupFunc otv_GPOS_subtable_validate
47 FT_UInt gsub_lookup_count, gpos_lookup_count;
66 gsub_lookup_count = otvalid->extra1;
67 gpos_lookup_count = otvalid->extra2;
71 otvalid->extra1 = gsub_lookup_count;
75 if ( ShrinkageEnableGSUB )
80 if ( ShrinkageDisableGSUB )
83 otvalid->extra1 = gpos_lookup_count;
87 if ( ShrinkageEnableGPOS )
92 if ( ShrinkageDisableGPOS )
97 if ( ShrinkageJstfMax )
104 otvalid->extra1 = gsub_lookup_count;
108 if ( ExtensionEnableGSUB )
113 if ( ExtensionDisableGSUB )
116 otvalid->extra1 = gpos_lookup_count;
120 if ( ExtensionEnableGPOS )
125 if ( ExtensionDisableGPOS )
130 if ( ExtensionJstfMax )
137 otvalid->extra1 = gsub_lookup_count;
138 otvalid->extra2 = gpos_lookup_count;
166 OTV_TRACE((
" (JstfLangSysCount = %d)\n", JstfLangSysCount ));
173 otvalid->extra1 = otvalid->glyph_count;
179 if ( DefJstfLangSys )
189 for ( ; JstfLangSysCount > 0; JstfLangSysCount-- )
217 otvalid->root = ftvalid;
220 FT_TRACE3((
"validating JSTF table\n" ));
230 FT_TRACE3((
" (JstfScriptCount = %d)\n", JstfScriptCount ));
244 otvalid->glyph_count = glyph_count;
247 for ( ; JstfScriptCount > 0; JstfScriptCount-- )
#define FT_TRACE3(varformat)
#define FT_TRACE4(varformat)
#define FT_NEXT_USHORT(buffer)
#define FT_NEXT_ULONG(buffer)
#define FT_INVALID_FORMAT
typedefFT_BEGIN_HEADER struct FT_ValidatorRec_ volatile * FT_Validator
otv_x_ux(FT_Bytes table, OTV_Validator otvalid)
otv_GSUBGPOS_get_Lookup_count(FT_Bytes table)
#define OTV_SIZE_CHECK(_size)
typedefFT_BEGIN_HEADER struct OTV_ValidatorRec_ * OTV_Validator
#define OTV_OPTIONAL_OFFSET(_offset)
#define OTV_NAME_ENTER(name)
#define OTV_LIMIT_CHECK(_count)
#define OTV_OPTIONAL_TABLE(_table)
static void otv_JstfPriority_validate(FT_Bytes table, OTV_Validator otvalid)
static void otv_JstfScript_validate(FT_Bytes table, OTV_Validator otvalid)
otv_JSTF_validate(FT_Bytes table, FT_Bytes gsub, FT_Bytes gpos, FT_UInt glyph_count, FT_Validator ftvalid)