#include "gxvalid.h"
#include "gxvcommn.h"
Go to the source code of this file.
|
| 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) |
|
| gxv_mort_subtable_type0_validate (FT_Bytes table, FT_Bytes limit, GXV_Validator gxvalid) |
|
| gxv_mort_subtable_type1_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_type4_validate (FT_Bytes table, FT_Bytes limit, GXV_Validator gxvalid) |
|
| gxv_mort_subtable_type5_validate (FT_Bytes table, FT_Bytes limit, GXV_Validator gxvalid) |
|
◆ GXV_MORT_FEATURE_OFF
#define GXV_MORT_FEATURE_OFF {0, 1, 0x00000000UL, 0x00000000UL} |
◆ IS_GXV_MORT_FEATURE_OFF
#define IS_GXV_MORT_FEATURE_OFF |
( |
|
f | ) |
|
Value: ( (
f).featureType == 0 || \
(
f).featureSetting == 1 || \
(
f).enableFlags == 0x00000000UL || \
(
f).disableFlags == 0x00000000UL )
Definition at line 48 of file gxvmort.h.
◆ GXV_mort_feature
◆ GXV_mort_featureRec
◆ 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_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 }
#define FT_NEXT_USHORT(buffer)
#define FT_NEXT_ULONG(buffer)
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
#define GXV_NAME_ENTER(name)
#define GXV_LIMIT_CHECK(_count)
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_subtable_type0_validate()
Definition at line 127 of file gxvmort0.c.
130 {
132
133
135 "mort chain subtable type0 (Indic-Script Rearrangement)" );
136
138
145
147
149 }
gxv_StateTable_validate(FT_Bytes table, FT_Bytes limit, GXV_Validator gxvalid)
#define GXV_STATETABLE_HEADER_SIZE
static void gxv_mort_subtable_type0_entry_validate(FT_Byte state, FT_UShort flags, GXV_StateTable_GlyphOffsetCPtr glyphOffset_p, FT_Bytes table, FT_Bytes limit, GXV_Validator gxvalid)
GXV_StateTable_Entry_Validate_Func entry_validate_func
GXV_StateTable_Subtable_Setup_Func subtable_setup_func
GXV_GlyphOffset_Format entry_glyphoffset_fmt
GXV_StateTable_OptData_Load_Func optdata_load_func
GXV_StateTable_ValidatorRec statetable
Referenced by gxv_mort_subtables_validate().
◆ gxv_mort_subtable_type1_validate()
Definition at line 225 of file gxvmort1.c.
228 {
230
232
233
234 GXV_NAME_ENTER(
"mort chain subtable type1 (Contextual Glyph Subst)" );
235
237
239 &st_rec;
247
250
254 gxvalid );
255
257 }
#define GXV_MORT_SUBTABLE_TYPE1_HEADER_SIZE
static void gxv_mort_subtable_type1_subtable_setup(FT_UShort table_size, FT_UShort classTable, FT_UShort stateArray, FT_UShort entryTable, FT_UShort *classTable_length_p, FT_UShort *stateArray_length_p, FT_UShort *entryTable_length_p, GXV_Validator gxvalid)
static void gxv_mort_subtable_type1_entry_validate(FT_Byte state, FT_UShort flags, GXV_StateTable_GlyphOffsetCPtr glyphOffset_p, FT_Bytes table, FT_Bytes limit, GXV_Validator gxvalid)
static void gxv_mort_subtable_type1_substitutionTable_load(FT_Bytes table, FT_Bytes limit, GXV_Validator gxvalid)
static void gxv_mort_subtable_type1_substTable_validate(FT_Bytes table, FT_Bytes limit, GXV_Validator gxvalid)
FT_UShort substitutionTable
FT_UShort substitutionTable_length
Referenced by gxv_mort_subtables_validate().
◆ gxv_mort_subtable_type2_validate()
Definition at line 277 of file gxvmort2.c.
280 {
282
284
285
286 GXV_NAME_ENTER(
"mort chain subtable type2 (Ligature Substitution)" );
287
289
291 &lig_rec;
300
302
305
307
309 }
static void gxv_mort_subtable_type2_opttable_load(FT_Bytes table, FT_Bytes limit, GXV_Validator gxvalid)
#define GXV_MORT_SUBTABLE_TYPE2_HEADER_SIZE
static void gxv_mort_subtable_type2_subtable_setup(FT_UShort table_size, FT_UShort classTable, FT_UShort stateArray, FT_UShort entryTable, FT_UShort *classTable_length_p, FT_UShort *stateArray_length_p, FT_UShort *entryTable_length_p, GXV_Validator gxvalid)
static void gxv_mort_subtable_type2_entry_validate(FT_Byte state, FT_UShort flags, GXV_StateTable_GlyphOffsetCPtr glyphOffset_p, FT_Bytes table, FT_Bytes limit, GXV_Validator gxvalid)
static void gxv_mort_subtable_type2_ligatureTable_validate(FT_Bytes table, GXV_Validator gxvalid)
Referenced by gxv_mort_subtables_validate().
◆ gxv_mort_subtable_type4_validate()
Definition at line 106 of file gxvmort4.c.
109 {
111
112
114 "(Non-Contextual Glyph Substitution)" );
115
119
121
123 }
gxv_LookupTable_validate(FT_Bytes table, FT_Bytes limit, GXV_Validator gxvalid)
@ GXV_LOOKUPVALUE_UNSIGNED
static GXV_LookupValueDesc gxv_mort_subtable_type4_lookupfmt4_transit(FT_UShort relative_gindex, GXV_LookupValueCPtr base_value_p, FT_Bytes lookuptbl_limit, GXV_Validator gxvalid)
static void gxv_mort_subtable_type4_lookupval_validate(FT_UShort glyph, GXV_LookupValueCPtr value_p, GXV_Validator gxvalid)
GXV_Lookup_Fmt4_Transit_Func lookupfmt4_trans
GXV_Lookup_Value_Validate_Func lookupval_func
GXV_LookupValue_SignSpec lookupval_sign
Referenced by gxv_mort_subtables_validate(), and gxv_morx_subtable_type4_validate().
◆ gxv_mort_subtable_type5_validate()
Definition at line 203 of file gxvmort5.c.
206 {
208
211
212
214
216
218 et;
227
229
231 }
#define GXV_MORT_SUBTABLE_TYPE5_HEADER_SIZE
gxv_mort_subtable_type5_subtable_setup(FT_UShort table_size, FT_UShort classTable, FT_UShort stateArray, FT_UShort entryTable, FT_UShort *classTable_length_p, FT_UShort *stateArray_length_p, FT_UShort *entryTable_length_p, GXV_Validator gxvalid)
static void gxv_mort_subtable_type5_entry_validate(FT_Byte state, FT_UShort flags, GXV_StateTable_GlyphOffsetCPtr glyphOffset, FT_Bytes table, FT_Bytes limit, GXV_Validator gxvalid)
Referenced by gxv_mort_subtables_validate().