Go to the source code of this file.
|
static void | gxv_mort_subtable_type1_substitutionTable_load (FT_Bytes table, FT_Bytes limit, GXV_Validator gxvalid) |
|
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_offset_to_subst_validate (FT_Short wordOffset, const FT_String *tag, FT_Byte state, 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_substTable_validate (FT_Bytes table, FT_Bytes limit, GXV_Validator gxvalid) |
|
| gxv_mort_subtable_type1_validate (FT_Bytes table, FT_Bytes limit, GXV_Validator gxvalid) |
|
◆ FT_COMPONENT
#define FT_COMPONENT trace_gxvmort |
◆ GXV_MORT_SUBTABLE_TYPE1_HEADER_SIZE
◆ GXV_mort_subtable_type1_StateOptRec
◆ GXV_mort_subtable_type1_StateOptRecData
◆ gxv_mort_subtable_type1_entry_validate()
Definition at line 135 of file gxvmort1.c.
142 {
143#ifdef GXV_LOAD_UNUSED_VARS
146#endif
150
153
154
155#ifdef GXV_LOAD_UNUSED_VARS
158#endif
160
161 markOffset = (
FT_Short)( glyphOffset_p->
ul >> 16 );
162 currentOffset = (
FT_Short)( glyphOffset_p->
ul );
163
165 {
166 GXV_TRACE((
" non-zero bits found in reserved range\n" ));
168 }
169
171 "markOffset",
173 gxvalid );
174
176 "currentOffset",
178 gxvalid );
179 }
#define GXV_SET_ERR_IF_PARANOID(err)
static void gxv_mort_subtable_type1_offset_to_subst_validate(FT_Short wordOffset, const FT_String *tag, FT_Byte state, GXV_Validator gxvalid)
Referenced by gxv_mort_subtable_type1_validate().
◆ gxv_mort_subtable_type1_offset_to_subst_validate()
◆ gxv_mort_subtable_type1_substitutionTable_load()
Definition at line 55 of file gxvmort1.c.
58 {
60
63
64
67 }
#define FT_NEXT_USHORT(buffer)
#define GXV_LIMIT_CHECK(_count)
struct GXV_mort_subtable_type1_StateOptRec_ * GXV_mort_subtable_type1_StateOptRecData
FT_UShort substitutionTable
Referenced by gxv_mort_subtable_type1_validate().
◆ gxv_mort_subtable_type1_substTable_validate()
Definition at line 183 of file gxvmort1.c.
186 {
192
193
195 for (
i = 0;
i < num_gids;
i++ )
196 {
198
199
202
203 if ( dst_gid >= 0xFFFFU )
204 continue;
205
206 if ( dst_gid < gxvalid->min_gid || gxvalid->
max_gid < dst_gid )
207 {
208 GXV_TRACE((
"substTable include a strange gid[%d]=%d >"
209 " out of define range (%d..%d)\n",
212 }
213 }
214
216 }
#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
#define GXV_NAME_ENTER(name)
Referenced by gxv_mort_subtable_type1_validate().
◆ gxv_mort_subtable_type1_subtable_setup()
Definition at line 71 of file gxvmort1.c.
79 {
83
86
87
88 o[0] = classTable;
89 o[1] = stateArray;
90 o[2] = entryTable;
92 l[0] = classTable_length_p;
93 l[1] = stateArray_length_p;
94 l[2] = entryTable_length_p;
96
98 }
static unsigned char buff[32768]
gxv_set_length_by_ushort_offset(FT_UShort *offset, FT_UShort **length, FT_UShort *buff, FT_UInt nmemb, FT_UShort limit, GXV_Validator gxvalid)
FT_UShort substitutionTable_length
Referenced by gxv_mort_subtable_type1_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 }
gxv_StateTable_validate(FT_Bytes table, FT_Bytes limit, GXV_Validator gxvalid)
#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)
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
Referenced by gxv_mort_subtables_validate().