#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 == 0x00000000
UL )
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.
127 #ifdef FT_DEBUG_LEVEL_TRACE 128 if ( coverage & 0x8000U )
129 GXV_TRACE((
" this subtable is for vertical text only\n" ));
131 GXV_TRACE((
" this subtable is for horizontal text only\n" ));
133 if ( coverage & 0x4000 )
134 GXV_TRACE((
" this subtable is applied to glyph array " 135 "in descending order\n" ));
137 GXV_TRACE((
" this subtable is applied to glyph array " 138 "in ascending order\n" ));
140 if ( coverage & 0x2000 )
141 GXV_TRACE((
" this subtable is forcibly applied to " 142 "vertical/horizontal text\n" ));
144 if ( coverage & 0x1FF8 )
145 GXV_TRACE((
" coverage has non-zero bits in reserved area\n" ));
Referenced by gxv_mort_subtables_validate(), and gxv_morx_subtables_validate().
◆ gxv_mort_featurearray_validate()
Definition at line 90 of file gxvmort.c.
102 for (
i = 0;
i < nFeatureFlags;
i++ )
#define GXV_NAME_ENTER(name)
GLenum GLsizei GLenum GLenum const GLvoid * table
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)
#define FT_NEXT_USHORT(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 FT_NEXT_ULONG(buffer)
#define GXV_LIMIT_CHECK(_count)
Referenced by gxv_mort_chain_validate(), and gxv_morx_chain_validate().
◆ gxv_mort_subtable_type0_validate()
Definition at line 127 of file gxvmort0.c.
135 "mort chain subtable type0 (Indic-Script Rearrangement)" );
gxv_StateTable_validate(FT_Bytes table, FT_Bytes limit, GXV_Validator gxvalid)
#define GXV_NAME_ENTER(name)
GXV_StateTable_Entry_Validate_Func entry_validate_func
GXV_StateTable_OptData_Load_Func optdata_load_func
GLenum GLsizei GLenum GLenum const GLvoid * table
GXV_StateTable_Subtable_Setup_Func subtable_setup_func
GXV_StateTable_ValidatorRec statetable
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)
#define GXV_STATETABLE_HEADER_SIZE
GXV_GlyphOffset_Format entry_glyphoffset_fmt
#define GXV_LIMIT_CHECK(_count)
Referenced by gxv_mort_subtables_validate().
◆ gxv_mort_subtable_type1_validate()
Definition at line 225 of file gxvmort1.c.
234 GXV_NAME_ENTER(
"mort chain subtable type1 (Contextual Glyph Subst)" );
gxv_StateTable_validate(FT_Bytes table, FT_Bytes limit, GXV_Validator gxvalid)
#define GXV_NAME_ENTER(name)
GXV_StateTable_Entry_Validate_Func entry_validate_func
GXV_StateTable_OptData_Load_Func optdata_load_func
GLenum GLsizei GLenum GLenum const GLvoid * table
#define GXV_MORT_SUBTABLE_TYPE1_HEADER_SIZE
FT_UShort substitutionTable_length
FT_UShort substitutionTable
GXV_StateTable_Subtable_Setup_Func subtable_setup_func
static void gxv_mort_subtable_type1_substitutionTable_load(FT_Bytes table, FT_Bytes limit, GXV_Validator gxvalid)
GXV_StateTable_ValidatorRec statetable
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)
GXV_GlyphOffset_Format entry_glyphoffset_fmt
static void gxv_mort_subtable_type1_substTable_validate(FT_Bytes table, FT_Bytes limit, GXV_Validator gxvalid)
#define GXV_LIMIT_CHECK(_count)
Referenced by gxv_mort_subtables_validate().
◆ gxv_mort_subtable_type2_validate()
Definition at line 277 of file gxvmort2.c.
286 GXV_NAME_ENTER(
"mort chain subtable type2 (Ligature Substitution)" );
gxv_StateTable_validate(FT_Bytes table, FT_Bytes limit, GXV_Validator gxvalid)
#define GXV_NAME_ENTER(name)
GXV_StateTable_Entry_Validate_Func entry_validate_func
GXV_StateTable_OptData_Load_Func optdata_load_func
GLenum GLsizei GLenum GLenum const GLvoid * table
static void gxv_mort_subtable_type2_ligatureTable_validate(FT_Bytes table, GXV_Validator gxvalid)
#define GXV_MORT_SUBTABLE_TYPE2_HEADER_SIZE
GXV_StateTable_Subtable_Setup_Func subtable_setup_func
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_opttable_load(FT_Bytes table, FT_Bytes limit, GXV_Validator gxvalid)
GXV_StateTable_ValidatorRec statetable
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)
GXV_GlyphOffset_Format entry_glyphoffset_fmt
#define GXV_LIMIT_CHECK(_count)
Referenced by gxv_mort_subtables_validate().
◆ gxv_mort_subtable_type4_validate()
Definition at line 106 of file gxvmort4.c.
114 "(Non-Contextual Glyph Substitution)" );
#define GXV_NAME_ENTER(name)
GLenum GLsizei GLenum GLenum const GLvoid * table
GXV_LookupValue_SignSpec lookupval_sign
GXV_Lookup_Fmt4_Transit_Func lookupfmt4_trans
GXV_Lookup_Value_Validate_Func lookupval_func
gxv_LookupTable_validate(FT_Bytes table, FT_Bytes limit, GXV_Validator gxvalid)
static void gxv_mort_subtable_type4_lookupval_validate(FT_UShort glyph, GXV_LookupValueCPtr value_p, GXV_Validator gxvalid)
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)
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.
gxv_StateTable_validate(FT_Bytes table, FT_Bytes limit, GXV_Validator gxvalid)
#define GXV_NAME_ENTER(name)
#define GXV_MORT_SUBTABLE_TYPE5_HEADER_SIZE
GXV_StateTable_Entry_Validate_Func entry_validate_func
GXV_StateTable_OptData_Load_Func optdata_load_func
GLenum GLsizei GLenum GLenum const GLvoid * table
GXV_StateTable_Subtable_Setup_Func subtable_setup_func
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)
GXV_StateTable_ValidatorRec statetable
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)
GXV_GlyphOffset_Format entry_glyphoffset_fmt
#define GXV_LIMIT_CHECK(_count)
Referenced by gxv_mort_subtables_validate().