ReactOS 0.4.15-dev-8219-ge8b88cf
gxvmorx5.c File Reference
#include "gxvmorx.h"
Include dependency graph for gxvmorx5.c:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  GXV_morx_subtable_type5_StateOptRec_
 

Macros

#define FT_COMPONENT   trace_gxvmorx
 
#define GXV_MORX_SUBTABLE_TYPE5_HEADER_SIZE    ( GXV_STATETABLE_HEADER_SIZE + 4 )
 

Typedefs

typedef struct GXV_morx_subtable_type5_StateOptRec_ GXV_morx_subtable_type5_StateOptRec
 
typedef struct GXV_morx_subtable_type5_StateOptRec_GXV_morx_subtable_type5_StateOptRecData
 

Functions

static void gxv_morx_subtable_type5_insertionGlyphList_load (FT_Bytes table, FT_Bytes limit, GXV_Validator gxvalid)
 
static void gxv_morx_subtable_type5_subtable_setup (FT_ULong table_size, FT_ULong classTable, FT_ULong stateArray, FT_ULong entryTable, FT_ULong *classTable_length_p, FT_ULong *stateArray_length_p, FT_ULong *entryTable_length_p, GXV_Validator gxvalid)
 
static void gxv_morx_subtable_type5_InsertList_validate (FT_UShort table_index, FT_UShort count, FT_Bytes table, FT_Bytes limit, GXV_Validator gxvalid)
 
static void gxv_morx_subtable_type5_entry_validate (FT_UShort state, FT_UShort flags, GXV_StateTable_GlyphOffsetCPtr glyphOffset_p, FT_Bytes table, FT_Bytes limit, GXV_Validator gxvalid)
 
 gxv_morx_subtable_type5_validate (FT_Bytes table, FT_Bytes limit, GXV_Validator gxvalid)
 

Macro Definition Documentation

◆ FT_COMPONENT

#define FT_COMPONENT   trace_gxvmorx

Definition at line 39 of file gxvmorx5.c.

◆ GXV_MORX_SUBTABLE_TYPE5_HEADER_SIZE

#define GXV_MORX_SUBTABLE_TYPE5_HEADER_SIZE    ( GXV_STATETABLE_HEADER_SIZE + 4 )

Definition at line 61 of file gxvmorx5.c.

Typedef Documentation

◆ GXV_morx_subtable_type5_StateOptRec

◆ GXV_morx_subtable_type5_StateOptRecData

Function Documentation

◆ gxv_morx_subtable_type5_entry_validate()

static void gxv_morx_subtable_type5_entry_validate ( FT_UShort  state,
FT_UShort  flags,
GXV_StateTable_GlyphOffsetCPtr  glyphOffset_p,
FT_Bytes  table,
FT_Bytes  limit,
GXV_Validator  gxvalid 
)
static

Definition at line 141 of file gxvmorx5.c.

148 {
149#ifdef GXV_LOAD_UNUSED_VARS
150 FT_Bool setMark;
151 FT_Bool dontAdvance;
152 FT_Bool currentIsKashidaLike;
153 FT_Bool markedIsKashidaLike;
154 FT_Bool currentInsertBefore;
155 FT_Bool markedInsertBefore;
156#endif
157 FT_Byte currentInsertCount;
158 FT_Byte markedInsertCount;
159 FT_Byte currentInsertList;
160 FT_UShort markedInsertList;
161
162 FT_UNUSED( state );
163
164
165#ifdef GXV_LOAD_UNUSED_VARS
166 setMark = FT_BOOL( ( flags >> 15 ) & 1 );
167 dontAdvance = FT_BOOL( ( flags >> 14 ) & 1 );
168 currentIsKashidaLike = FT_BOOL( ( flags >> 13 ) & 1 );
169 markedIsKashidaLike = FT_BOOL( ( flags >> 12 ) & 1 );
170 currentInsertBefore = FT_BOOL( ( flags >> 11 ) & 1 );
171 markedInsertBefore = FT_BOOL( ( flags >> 10 ) & 1 );
172#endif
173
174 currentInsertCount = (FT_Byte)( ( flags >> 5 ) & 0x1F );
175 markedInsertCount = (FT_Byte)( flags & 0x001F );
176
177 currentInsertList = (FT_Byte) ( glyphOffset_p->ul >> 16 );
178 markedInsertList = (FT_UShort)( glyphOffset_p->ul );
179
180 if ( currentInsertList && 0 != currentInsertCount )
182 currentInsertCount,
183 table, limit,
184 gxvalid );
185
186 if ( markedInsertList && 0 != markedInsertCount )
188 markedInsertCount,
189 table, limit,
190 gxvalid );
191 }
static int state
Definition: maze.c:121
#define FT_UNUSED(arg)
Definition: ftconfig.h:101
FT_BEGIN_HEADER typedef unsigned char FT_Bool
Definition: fttypes.h:108
unsigned char FT_Byte
Definition: fttypes.h:154
unsigned short FT_UShort
Definition: fttypes.h:209
#define FT_BOOL(x)
Definition: fttypes.h:578
GLint limit
Definition: glext.h:10326
GLbitfield flags
Definition: glext.h:7161
static void gxv_morx_subtable_type5_InsertList_validate(FT_UShort table_index, FT_UShort count, FT_Bytes table, FT_Bytes limit, GXV_Validator gxvalid)
Definition: gxvmorx5.c:113

Referenced by gxv_morx_subtable_type5_validate().

◆ gxv_morx_subtable_type5_insertionGlyphList_load()

static void gxv_morx_subtable_type5_insertionGlyphList_load ( FT_Bytes  table,
FT_Bytes  limit,
GXV_Validator  gxvalid 
)
static

Definition at line 66 of file gxvmorx5.c.

69 {
71
74
75
76 GXV_LIMIT_CHECK( 4 );
78 }
#define FT_NEXT_ULONG(buffer)
Definition: ftstream.h:238
const FT_Byte * FT_Bytes
Definition: fttypes.h:165
GLfloat GLfloat p
Definition: glext.h:8902
#define GXV_LIMIT_CHECK(_count)
Definition: gxvcommn.h:272
struct GXV_morx_subtable_type5_StateOptRec_ * GXV_morx_subtable_type5_StateOptRecData
GXV_XStateTable_ValidatorRec xstatetable
Definition: gxvcommn.h:255

Referenced by gxv_morx_subtable_type5_validate().

◆ gxv_morx_subtable_type5_InsertList_validate()

static void gxv_morx_subtable_type5_InsertList_validate ( FT_UShort  table_index,
FT_UShort  count,
FT_Bytes  table,
FT_Bytes  limit,
GXV_Validator  gxvalid 
)
static

Definition at line 113 of file gxvmorx5.c.

118 {
119 FT_Bytes p = table + table_index * 2;
120
121
122#ifndef GXV_LOAD_TRACE_VARS
123 GXV_LIMIT_CHECK( count * 2 );
124#else
125 while ( p < table + count * 2 + table_index * 2 )
126 {
127 FT_UShort insert_glyphID;
128
129
130 GXV_LIMIT_CHECK( 2 );
131 insert_glyphID = FT_NEXT_USHORT( p );
132 GXV_TRACE(( " 0x%04x", insert_glyphID ));
133 }
134
135 GXV_TRACE(( "\n" ));
136#endif
137 }
#define FT_NEXT_USHORT(buffer)
Definition: ftstream.h:226
GLuint GLuint GLsizei count
Definition: gl.h:1545
#define GXV_TRACE(s)
Definition: gxvcommn.h:304

Referenced by gxv_morx_subtable_type5_entry_validate().

◆ gxv_morx_subtable_type5_subtable_setup()

static void gxv_morx_subtable_type5_subtable_setup ( FT_ULong  table_size,
FT_ULong  classTable,
FT_ULong  stateArray,
FT_ULong  entryTable,
FT_ULong classTable_length_p,
FT_ULong stateArray_length_p,
FT_ULong entryTable_length_p,
GXV_Validator  gxvalid 
)
static

Definition at line 82 of file gxvmorx5.c.

90 {
91 FT_ULong o[4];
92 FT_ULong* l[4];
93 FT_ULong buff[5];
94
97
98
99 o[0] = classTable;
100 o[1] = stateArray;
101 o[2] = entryTable;
102 o[3] = optdata->insertionGlyphList;
103 l[0] = classTable_length_p;
104 l[1] = stateArray_length_p;
105 l[2] = entryTable_length_p;
106 l[3] = &(optdata->insertionGlyphList_length);
107
109 }
r l[0]
Definition: byte_order.h:168
static unsigned char buff[32768]
Definition: fatten.c:17
unsigned long FT_ULong
Definition: fttypes.h:253
gxv_set_length_by_ulong_offset(FT_ULong *offset, FT_ULong **length, FT_ULong *buff, FT_UInt nmemb, FT_ULong limit, GXV_Validator gxvalid)
Definition: gxvcommn.c:128
LOCAL int table_size
Definition: write.c:65

Referenced by gxv_morx_subtable_type5_validate().

◆ gxv_morx_subtable_type5_validate()

gxv_morx_subtable_type5_validate ( FT_Bytes  table,
FT_Bytes  limit,
GXV_Validator  gxvalid 
)

Definition at line 195 of file gxvmorx5.c.

198 {
199 FT_Bytes p = table;
200
203
204
205 GXV_NAME_ENTER( "morx chain subtable type5 (Glyph Insertion)" );
206
208
209 gxvalid->xstatetable.optdata =
210 et;
219
220 gxv_XStateTable_validate( p, limit, gxvalid );
221
222 GXV_EXIT;
223 }
gxv_XStateTable_validate(FT_Bytes table, FT_Bytes limit, GXV_Validator gxvalid)
Definition: gxvcommn.c:1554
#define GXV_NAME_ENTER(name)
Definition: gxvcommn.h:301
@ GXV_GLYPHOFFSET_ULONG
Definition: gxvcommn.h:127
#define GXV_EXIT
Definition: gxvcommn.h:302
static void gxv_morx_subtable_type5_insertionGlyphList_load(FT_Bytes table, FT_Bytes limit, GXV_Validator gxvalid)
Definition: gxvmorx5.c:66
#define GXV_MORX_SUBTABLE_TYPE5_HEADER_SIZE
Definition: gxvmorx5.c:61
static void gxv_morx_subtable_type5_subtable_setup(FT_ULong table_size, FT_ULong classTable, FT_ULong stateArray, FT_ULong entryTable, FT_ULong *classTable_length_p, FT_ULong *stateArray_length_p, FT_ULong *entryTable_length_p, GXV_Validator gxvalid)
Definition: gxvmorx5.c:82
static void gxv_morx_subtable_type5_entry_validate(FT_UShort state, FT_UShort flags, GXV_StateTable_GlyphOffsetCPtr glyphOffset_p, FT_Bytes table, FT_Bytes limit, GXV_Validator gxvalid)
Definition: gxvmorx5.c:141
GXV_XStateTable_OptData_Load_Func optdata_load_func
Definition: gxvcommn.h:227
GXV_XStateTable_Entry_Validate_Func entry_validate_func
Definition: gxvcommn.h:226
GXV_XStateTable_Subtable_Setup_Func subtable_setup_func
Definition: gxvcommn.h:225

Referenced by gxv_morx_subtables_validate().