ReactOS 0.4.15-dev-7942-gd23573b
gxvmort0.c File Reference
#include "gxvmort.h"
Include dependency graph for gxvmort0.c:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define FT_COMPONENT   trace_gxvmort
 

Functions

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_mort_subtable_type0_validate (FT_Bytes table, FT_Bytes limit, GXV_Validator gxvalid)
 

Variables

static const charGXV_Mort_IndicScript_Msg []
 

Macro Definition Documentation

◆ FT_COMPONENT

#define FT_COMPONENT   trace_gxvmort

Definition at line 39 of file gxvmort0.c.

Function Documentation

◆ gxv_mort_subtable_type0_entry_validate()

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 
)
static

Definition at line 65 of file gxvmort0.c.

72 {
73 FT_UShort markFirst;
74 FT_UShort dontAdvance;
75 FT_UShort markLast;
77 FT_UShort verb = 0;
78
82
83 FT_UNUSED( GXV_Mort_IndicScript_Msg[verb] ); /* for the non-debugging */
84 FT_UNUSED( glyphOffset_p ); /* case */
85
86
87 markFirst = (FT_UShort)( ( flags >> 15 ) & 1 );
88 dontAdvance = (FT_UShort)( ( flags >> 14 ) & 1 );
89 markLast = (FT_UShort)( ( flags >> 13 ) & 1 );
90
91 reserved = (FT_UShort)( flags & 0x1FF0 );
92 verb = (FT_UShort)( flags & 0x000F );
93
94 GXV_TRACE(( " IndicScript MorphRule for glyphOffset 0x%04x",
95 glyphOffset_p->u ));
96 GXV_TRACE(( " markFirst=%01d", markFirst ));
97 GXV_TRACE(( " dontAdvance=%01d", dontAdvance ));
98 GXV_TRACE(( " markLast=%01d", markLast ));
99 GXV_TRACE(( " %02d", verb ));
100 GXV_TRACE(( " %s\n", GXV_Mort_IndicScript_Msg[verb] ));
101
102 if ( markFirst > 0 && markLast > 0 )
103 {
104 GXV_TRACE(( " [odd] a glyph is marked as the first and last"
105 " in Indic rearrangement\n" ));
107 }
108
109 if ( markFirst > 0 && dontAdvance > 0 )
110 {
111 GXV_TRACE(( " [odd] the first glyph is marked as dontAdvance"
112 " in Indic rearrangement\n" ));
114 }
115
116 if ( 0 < reserved )
117 {
118 GXV_TRACE(( " non-zero bits found in reserved range\n" ));
120 }
121 else
122 GXV_TRACE(( "\n" ));
123 }
static int state
Definition: maze.c:121
r reserved
Definition: btrfs.c:3006
#define FT_UNUSED(arg)
Definition: ftconfig.h:101
unsigned short FT_UShort
Definition: fttypes.h:209
#define FT_INVALID_DATA
Definition: ftvalid.h:150
GLint limit
Definition: glext.h:10326
GLbitfield flags
Definition: glext.h:7161
#define GXV_SET_ERR_IF_PARANOID(err)
Definition: gxvcommn.h:66
#define GXV_TRACE(s)
Definition: gxvcommn.h:304
static const char * GXV_Mort_IndicScript_Msg[]
Definition: gxvmort0.c:42

Referenced by gxv_mort_subtable_type0_validate().

◆ gxv_mort_subtable_type0_validate()

gxv_mort_subtable_type0_validate ( FT_Bytes  table,
FT_Bytes  limit,
GXV_Validator  gxvalid 
)

Definition at line 127 of file gxvmort0.c.

130 {
131 FT_Bytes p = table;
132
133
135 "mort chain subtable type0 (Indic-Script Rearrangement)" );
136
138
139 gxvalid->statetable.optdata = NULL;
145
146 gxv_StateTable_validate( p, limit, gxvalid );
147
148 GXV_EXIT;
149 }
#define NULL
Definition: types.h:112
const FT_Byte * FT_Bytes
Definition: fttypes.h:165
GLfloat GLfloat p
Definition: glext.h:8902
gxv_StateTable_validate(FT_Bytes table, FT_Bytes limit, GXV_Validator gxvalid)
Definition: gxvcommn.c:1208
#define GXV_NAME_ENTER(name)
Definition: gxvcommn.h:301
@ GXV_GLYPHOFFSET_NONE
Definition: gxvcommn.h:122
#define GXV_STATETABLE_HEADER_SIZE
Definition: gxvcommn.h:520
#define GXV_EXIT
Definition: gxvcommn.h:302
#define GXV_LIMIT_CHECK(_count)
Definition: gxvcommn.h:272
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)
Definition: gxvmort0.c:65
GXV_StateTable_Entry_Validate_Func entry_validate_func
Definition: gxvcommn.h:185
GXV_StateTable_Subtable_Setup_Func subtable_setup_func
Definition: gxvcommn.h:184
GXV_GlyphOffset_Format entry_glyphoffset_fmt
Definition: gxvcommn.h:181
GXV_StateTable_OptData_Load_Func optdata_load_func
Definition: gxvcommn.h:186
GXV_StateTable_ValidatorRec statetable
Definition: gxvcommn.h:254

Referenced by gxv_mort_subtables_validate().

Variable Documentation

◆ GXV_Mort_IndicScript_Msg

const char* GXV_Mort_IndicScript_Msg[]
static
Initial value:
=
{
"no change",
"Ax => xA",
"xD => Dx",
"AxD => DxA",
"ABx => xAB",
"ABx => xBA",
"xCD => CDx",
"xCD => DCx",
"AxCD => CDxA",
"AxCD => DCxA",
"ABxD => DxAB",
"ABxD => DxBA",
"ABxCD => CDxAB",
"ABxCD => CDxBA",
"ABxCD => DCxAB",
"ABxCD => DCxBA",
}

Definition at line 42 of file gxvmort0.c.

Referenced by gxv_mort_subtable_type0_entry_validate().