/external/freetype/src/gxvalid/ |
D | gxvjust.c | 73 GXV_Validator gxvalid ) in gxv_just_check_max_gid() argument 75 if ( gid < gxvalid->face->num_glyphs ) in gxv_just_check_max_gid() 80 msg_tag, gid, gxvalid->face->num_glyphs )); in gxv_just_check_max_gid() 88 GXV_Validator gxvalid ) in gxv_just_wdp_entry_validate() argument 124 gxvalid->subtable_length = (FT_ULong)( p - table ); in gxv_just_wdp_entry_validate() 131 GXV_Validator gxvalid ) in gxv_just_wdc_entry_validate() argument 142 gxv_just_wdp_entry_validate( p, limit, gxvalid ); in gxv_just_wdc_entry_validate() 143 p += gxvalid->subtable_length; in gxv_just_wdc_entry_validate() 146 gxvalid->subtable_length = (FT_ULong)( p - table ); in gxv_just_wdc_entry_validate() 153 GXV_Validator gxvalid ) in gxv_just_widthDeltaClusters_validate() argument [all …]
|
D | gxvkern.c | 82 #define KERN_IS_CLASSIC( gxvalid ) \ argument 84 #define KERN_IS_NEW( gxvalid ) \ argument 87 #define KERN_DIALECT( gxvalid ) \ argument 89 #define KERN_ALLOWS_MS( gxvalid ) \ argument 90 ( KERN_DIALECT( gxvalid ) & KERN_DIALECT_MS ) 91 #define KERN_ALLOWS_APPLE( gxvalid ) \ argument 92 ( KERN_DIALECT( gxvalid ) & KERN_DIALECT_APPLE ) 94 #define GXV_KERN_HEADER_SIZE ( KERN_IS_NEW( gxvalid ) ? 8 : 4 ) 95 #define GXV_KERN_SUBTABLE_HEADER_SIZE ( KERN_IS_NEW( gxvalid ) ? 8 : 6 ) 113 GXV_Validator gxvalid ) in gxv_kern_subtable_fmt0_pairs_validate() argument [all …]
|
D | gxvcommn.c | 68 GXV_Validator gxvalid ) in gxv_set_length_by_ushort_offset() argument 133 GXV_Validator gxvalid) in gxv_set_length_by_ulong_offset() argument 185 GXV_Validator gxvalid ) in gxv_array_getlimits_byte() argument 205 gxvalid->subtable_length = (FT_ULong)( p - table ); in gxv_array_getlimits_byte() 214 GXV_Validator gxvalid ) in gxv_array_getlimits_ushort() argument 234 gxvalid->subtable_length = (FT_ULong)( p - table ); in gxv_array_getlimits_ushort() 259 GXV_Validator gxvalid ) in gxv_BinSrchHeader_check_consistency() argument 332 GXV_Validator gxvalid ) in gxv_BinSrchHeader_validate() argument 362 gxv_BinSrchHeader_check_consistency( &binSrchHeader, gxvalid ); in gxv_BinSrchHeader_validate() 370 gxvalid->subtable_length = (FT_ULong)( p - table ); in gxv_BinSrchHeader_validate() [all …]
|
D | gxvmort1.c | 57 GXV_Validator gxvalid ) in gxv_mort_subtable_type1_substitutionTable_load() argument 62 (GXV_mort_subtable_type1_StateOptRecData)gxvalid->statetable.optdata; in gxv_mort_subtable_type1_substitutionTable_load() 78 GXV_Validator gxvalid ) in gxv_mort_subtable_type1_subtable_setup() argument 85 (GXV_mort_subtable_type1_StateOptRecData)gxvalid->statetable.optdata; in gxv_mort_subtable_type1_subtable_setup() 97 gxv_set_length_by_ushort_offset( o, l, buff, 4, table_size, gxvalid ); in gxv_mort_subtable_type1_subtable_setup() 106 GXV_Validator gxvalid ) in gxv_mort_subtable_type1_offset_to_subst_validate() argument 117 (gxvalid->statetable.optdata))->substitutionTable; in gxv_mort_subtable_type1_offset_to_subst_validate() 121 (gxvalid->statetable.optdata))->substitutionTable_length ); in gxv_mort_subtable_type1_offset_to_subst_validate() 123 gxvalid->min_gid = (FT_UShort)( ( substTable - wordOffset * 2 ) / 2 ); in gxv_mort_subtable_type1_offset_to_subst_validate() 124 gxvalid->max_gid = (FT_UShort)( ( substTable_limit - wordOffset * 2 ) / 2 ); in gxv_mort_subtable_type1_offset_to_subst_validate() [all …]
|
D | gxvbsln.c | 76 GXV_Validator gxvalid ) in gxv_bsln_LookupValue_validate() argument 128 GXV_Validator gxvalid ) in gxv_bsln_LookupFmt4_transit() argument 139 p = gxvalid->lookuptbl_head + offset; in gxv_bsln_LookupFmt4_transit() 152 GXV_Validator gxvalid ) in gxv_bsln_parts_fmt0_validate() argument 162 gxvalid->table_data = NULL; /* No ctlPoints here. */ in gxv_bsln_parts_fmt0_validate() 171 GXV_Validator gxvalid ) in gxv_bsln_parts_fmt1_validate() argument 179 gxv_bsln_parts_fmt0_validate( p, limit, gxvalid ); in gxv_bsln_parts_fmt1_validate() 182 gxvalid->lookupval_sign = GXV_LOOKUPVALUE_UNSIGNED; in gxv_bsln_parts_fmt1_validate() 183 gxvalid->lookupval_func = gxv_bsln_LookupValue_validate; in gxv_bsln_parts_fmt1_validate() 184 gxvalid->lookupfmt4_trans = gxv_bsln_LookupFmt4_transit; in gxv_bsln_parts_fmt1_validate() [all …]
|
D | gxvcommn.h | 65 #define IS_PARANOID_VALIDATION ( gxvalid->root->level >= FT_VALIDATE_PARANOID ) 84 GXV_Validator gxvalid ); 109 GXV_Validator gxvalid ); 115 GXV_Validator gxvalid ); 134 ( gxvalid->table.entry_glyphoffset_fmt ) 137 ( gxvalid->table.entry_glyphoffset_fmt / 2 ) 163 GXV_Validator gxvalid ); 172 GXV_Validator gxvalid ); 177 GXV_Validator gxvalid ); 205 GXV_Validator gxvalid ); [all …]
|
D | gxvmorx1.c | 59 GXV_Validator gxvalid ) in gxv_morx_subtable_type1_substitutionTable_load() argument 64 (GXV_morx_subtable_type1_StateOptRecData)gxvalid->xstatetable.optdata; in gxv_morx_subtable_type1_substitutionTable_load() 80 GXV_Validator gxvalid ) in gxv_morx_subtable_type1_subtable_setup() argument 87 (GXV_morx_subtable_type1_StateOptRecData)gxvalid->xstatetable.optdata; in gxv_morx_subtable_type1_subtable_setup() 99 gxv_set_length_by_ulong_offset( o, l, buff, 4, table_size, gxvalid ); in gxv_morx_subtable_type1_subtable_setup() 110 GXV_Validator gxvalid ) in gxv_morx_subtable_type1_entry_validate() argument 121 (GXV_morx_subtable_type1_StateOptRecData)gxvalid->xstatetable.optdata; in gxv_morx_subtable_type1_entry_validate() 163 GXV_Validator gxvalid ) in gxv_morx_subtable_type1_LookupValue_validate() argument 169 if ( value_p->u > gxvalid->face->num_glyphs ) in gxv_morx_subtable_type1_LookupValue_validate() 179 GXV_Validator gxvalid ) in gxv_morx_subtable_type1_LookupFmt4_transit() argument [all …]
|
D | gxvlcar.c | 71 GXV_Validator gxvalid ) in gxv_lcar_partial_validate() argument 78 gxv_ctlPoint_validate( glyph, (FT_UShort)partial, gxvalid ); in gxv_lcar_partial_validate() 88 GXV_Validator gxvalid ) in gxv_lcar_LookupValue_validate() argument 90 FT_Bytes p = gxvalid->root->base + value_p->u; in gxv_lcar_LookupValue_validate() 91 FT_Bytes limit = gxvalid->root->limit; in gxv_lcar_LookupValue_validate() 106 gxv_lcar_partial_validate( partial, glyph, gxvalid ); in gxv_lcar_LookupValue_validate() 152 GXV_Validator gxvalid ) in gxv_lcar_LookupFmt4_transit() argument 164 p = gxvalid->root->base + offset; in gxv_lcar_LookupFmt4_transit() 165 limit = gxvalid->root->limit; in gxv_lcar_LookupFmt4_transit() 190 GXV_Validator gxvalid = &gxvalidrec; in gxv_lcar_validate() local [all …]
|
D | gxvtrak.c | 97 GXV_Validator gxvalid ) in gxv_trak_trackTable_validate() argument 126 gxv_sfntName_validate( nameIndex, 256, 32767, gxvalid ); in gxv_trak_trackTable_validate() 138 gxvalid->subtable_length = (FT_ULong)( p - table ); in gxv_trak_trackTable_validate() 146 GXV_Validator gxvalid ) in gxv_trak_trackData_validate() argument 169 gxv_trak_trackTable_validate( p, limit, nTracks, gxvalid ); in gxv_trak_trackData_validate() 170 gxv_odtect_add_range( p, gxvalid->subtable_length, in gxv_trak_trackData_validate() 174 p = gxvalid->root->base + sizeTableOffset; in gxv_trak_trackData_validate() 179 p = gxvalid->root->base + GXV_TRAK_DATA( trackValueOffset_min ); in gxv_trak_trackData_validate() 183 p = gxvalid->root->base + GXV_TRAK_DATA( trackValueOffset_max ); in gxv_trak_trackData_validate() 186 gxv_odtect_add_range( gxvalid->root->base in gxv_trak_trackData_validate() [all …]
|
D | gxvmort.c | 44 GXV_Validator gxvalid ) in gxv_mort_feature_validate() argument 93 GXV_Validator gxvalid ) in gxv_mort_featurearray_validate() argument 110 gxv_mort_feature_validate( &f, gxvalid ); in gxv_mort_featurearray_validate() 116 gxvalid->subtable_length = (FT_ULong)( p - table ); in gxv_mort_featurearray_validate() 123 GXV_Validator gxvalid ) in gxv_mort_coverage_validate() argument 125 FT_UNUSED( gxvalid ); in gxv_mort_coverage_validate() 154 GXV_Validator gxvalid ) in gxv_mort_subtables_validate() argument 202 gxv_mort_coverage_validate( coverage, gxvalid ); in gxv_mort_subtables_validate() 211 func( p, p + rest, gxvalid ); in gxv_mort_subtables_validate() 217 gxvalid->subtable_length = (FT_ULong)( p - table ); in gxv_mort_subtables_validate() [all …]
|
D | gxvmort2.c | 61 GXV_Validator gxvalid ) in gxv_mort_subtable_type2_opttable_load() argument 65 (GXV_mort_subtable_type2_StateOptRecData)gxvalid->statetable.optdata; in gxv_mort_subtable_type2_opttable_load() 90 GXV_Validator gxvalid ) in gxv_mort_subtable_type2_subtable_setup() argument 97 (GXV_mort_subtable_type2_StateOptRecData)gxvalid->statetable.optdata; in gxv_mort_subtable_type2_subtable_setup() 115 gxv_set_length_by_ushort_offset( o, l, buff, 6, table_size, gxvalid ); in gxv_mort_subtable_type2_subtable_setup() 141 GXV_Validator gxvalid ) in gxv_mort_subtable_type2_ligActionOffset_validate() argument 145 (GXV_mort_subtable_type2_StateOptRecData)gxvalid->statetable.optdata; in gxv_mort_subtable_type2_ligActionOffset_validate() 218 GXV_Validator gxvalid ) in gxv_mort_subtable_type2_entry_validate() argument 240 gxvalid ); in gxv_mort_subtable_type2_entry_validate() 246 GXV_Validator gxvalid ) in gxv_mort_subtable_type2_ligatureTable_validate() argument [all …]
|
D | gxvmorx2.c | 62 GXV_Validator gxvalid ) in gxv_morx_subtable_type2_opttable_load() argument 67 (GXV_morx_subtable_type2_StateOptRecData)gxvalid->xstatetable.optdata; in gxv_morx_subtable_type2_opttable_load() 92 GXV_Validator gxvalid ) in gxv_morx_subtable_type2_subtable_setup() argument 99 (GXV_morx_subtable_type2_StateOptRecData)gxvalid->xstatetable.optdata; in gxv_morx_subtable_type2_subtable_setup() 117 gxv_set_length_by_ulong_offset( o, l, buff, 6, table_size, gxvalid ); in gxv_morx_subtable_type2_subtable_setup() 146 GXV_Validator gxvalid ) in gxv_morx_subtable_type2_ligActionIndex_validate() argument 150 (GXV_morx_subtable_type2_StateOptRecData)gxvalid->xstatetable.optdata; in gxv_morx_subtable_type2_ligActionIndex_validate() 192 gid_limit = gxvalid->face->num_glyphs - in gxv_morx_subtable_type2_ligActionIndex_validate() 205 if ( (FT_Long)offset < gxvalid->face->num_glyphs ) in gxv_morx_subtable_type2_ligActionIndex_validate() 230 GXV_Validator gxvalid ) in gxv_morx_subtable_type2_entry_validate() argument [all …]
|
D | gxvopbd.c | 72 GXV_Validator gxvalid ) in gxv_opbd_LookupValue_validate() argument 75 FT_Bytes p = gxvalid->root->base + value_p->u; in gxv_opbd_LookupValue_validate() 76 FT_Bytes limit = gxvalid->root->limit; in gxv_opbd_LookupValue_validate() 94 gxv_ctlPoint_validate( glyph, (FT_UShort)delta_value, gxvalid ); in gxv_opbd_LookupValue_validate() 138 GXV_Validator gxvalid ) in gxv_opbd_LookupFmt4_transit() argument 143 FT_UNUSED( gxvalid ); in gxv_opbd_LookupFmt4_transit() 167 GXV_Validator gxvalid = &gxvalidrec; in gxv_opbd_validate() local 176 gxvalid->root = ftvalid; in gxv_opbd_validate() 177 gxvalid->table_data = opbd; in gxv_opbd_validate() 178 gxvalid->face = face; in gxv_opbd_validate() [all …]
|
D | gxvprop.c | 79 GXV_Validator gxvalid ) in gxv_prop_zero_advance_validate() argument 88 face = gxvalid->face; in gxv_prop_zero_advance_validate() 113 GXV_Validator gxvalid ) in gxv_prop_property_validate() argument 116 gxv_prop_zero_advance_validate( glyph, gxvalid ); in gxv_prop_property_validate() 149 gxv_glyphid_validate( (FT_UShort)( glyph + complement ), gxvalid ); in gxv_prop_property_validate() 191 GXV_Validator gxvalid ) in gxv_prop_LookupValue_validate() argument 193 gxv_prop_property_validate( value_p->u, glyph, gxvalid ); in gxv_prop_LookupValue_validate() 228 GXV_Validator gxvalid ) in gxv_prop_LookupFmt4_transit() argument 238 p = gxvalid->lookuptbl_head + offset; in gxv_prop_LookupFmt4_transit() 264 GXV_Validator gxvalid = &gxvalidrec; in gxv_prop_validate() local [all …]
|
D | gxvmorx5.c | 68 GXV_Validator gxvalid ) in gxv_morx_subtable_type5_insertionGlyphList_load() argument 73 (GXV_morx_subtable_type5_StateOptRecData)gxvalid->xstatetable.optdata; in gxv_morx_subtable_type5_insertionGlyphList_load() 89 GXV_Validator gxvalid ) in gxv_morx_subtable_type5_subtable_setup() argument 96 (GXV_morx_subtable_type5_StateOptRecData)gxvalid->xstatetable.optdata; in gxv_morx_subtable_type5_subtable_setup() 108 gxv_set_length_by_ulong_offset( o, l, buff, 4, table_size, gxvalid ); in gxv_morx_subtable_type5_subtable_setup() 117 GXV_Validator gxvalid ) in gxv_morx_subtable_type5_InsertList_validate() argument 147 GXV_Validator gxvalid ) in gxv_morx_subtable_type5_entry_validate() argument 184 gxvalid ); in gxv_morx_subtable_type5_entry_validate() 190 gxvalid ); in gxv_morx_subtable_type5_entry_validate() 197 GXV_Validator gxvalid ) in gxv_morx_subtable_type5_validate() argument [all …]
|
D | gxvfeat.c | 85 GXV_Validator gxvalid ) in gxv_feat_registry_validate() argument 111 if ( gxvalid->root->level >= FT_VALIDATE_TIGHT ) in gxv_feat_registry_validate() 120 if ( gxvalid->root->level >= FT_VALIDATE_TIGHT ) in gxv_feat_registry_validate() 128 if ( gxvalid->root->level >= FT_VALIDATE_TIGHT ) in gxv_feat_registry_validate() 140 GXV_Validator gxvalid ) in gxv_feat_name_index_validate() argument 156 gxvalid ); in gxv_feat_name_index_validate() 166 GXV_Validator gxvalid ) in gxv_feat_setting_validate() argument 182 gxv_feat_name_index_validate( p, limit, gxvalid ); in gxv_feat_setting_validate() 193 GXV_Validator gxvalid ) in gxv_feat_name_validate() argument 243 gxv_feat_registry_validate( feature, nSettings, exclusive, gxvalid ); in gxv_feat_name_validate() [all …]
|
D | gxvmorx.c | 45 GXV_Validator gxvalid ) in gxv_morx_subtables_validate() argument 96 gxvalid ); in gxv_morx_subtables_validate() 104 func( p, p + rest, gxvalid ); in gxv_morx_subtables_validate() 110 gxvalid->subtable_length = (FT_ULong)( p - table ); in gxv_morx_subtables_validate() 119 GXV_Validator gxvalid ) in gxv_morx_chain_validate() argument 143 gxv_mort_featurearray_validate( p, limit, nFeatureFlags, gxvalid ); in gxv_morx_chain_validate() 144 p += gxvalid->subtable_length; in gxv_morx_chain_validate() 150 (FT_UShort)nSubtables, gxvalid ); in gxv_morx_chain_validate() 152 gxvalid->subtable_length = chainLength; in gxv_morx_chain_validate() 166 GXV_Validator gxvalid = &gxvalidrec; in gxv_morx_validate() local [all …]
|
D | gxvmort5.c | 74 GXV_Validator gxvalid ) in gxv_mort_subtable_type5_subtable_setup() argument 77 (GXV_mort_subtable_type5_StateOptRecData)gxvalid->statetable.optdata; in gxv_mort_subtable_type5_subtable_setup() 87 gxvalid ); in gxv_mort_subtable_type5_subtable_setup() 104 GXV_Validator gxvalid ) in gxv_mort_subtable_type5_InsertList_validate() argument 113 (GXV_mort_subtable_type5_StateOptRecData)gxvalid->statetable.optdata; in gxv_mort_subtable_type5_InsertList_validate() 149 GXV_Validator gxvalid ) in gxv_mort_subtable_type5_entry_validate() argument 188 gxvalid ); in gxv_mort_subtable_type5_entry_validate() 197 gxvalid ); in gxv_mort_subtable_type5_entry_validate() 205 GXV_Validator gxvalid ) in gxv_mort_subtable_type5_validate() argument 217 gxvalid->statetable.optdata = in gxv_mort_subtable_type5_validate() [all …]
|
D | gxvmort4.c | 45 GXV_Validator gxvalid ) in gxv_mort_subtable_type4_lookupval_validate() argument 49 gxv_glyphid_validate( value_p->u, gxvalid ); in gxv_mort_subtable_type4_lookupval_validate() 84 GXV_Validator gxvalid ) in gxv_mort_subtable_type4_lookupfmt4_transit() argument 95 p = gxvalid->lookuptbl_head + offset; in gxv_mort_subtable_type4_lookupfmt4_transit() 108 GXV_Validator gxvalid ) in gxv_mort_subtable_type4_validate() argument 116 gxvalid->lookupval_sign = GXV_LOOKUPVALUE_UNSIGNED; in gxv_mort_subtable_type4_validate() 117 gxvalid->lookupval_func = gxv_mort_subtable_type4_lookupval_validate; in gxv_mort_subtable_type4_validate() 118 gxvalid->lookupfmt4_trans = gxv_mort_subtable_type4_lookupfmt4_transit; in gxv_mort_subtable_type4_validate() 120 gxv_LookupTable_validate( p, limit, gxvalid ); in gxv_mort_subtable_type4_validate()
|
D | gxvmorx0.c | 49 GXV_Validator gxvalid ) in gxv_morx_subtable_type0_entry_validate() argument 89 GXV_Validator gxvalid ) in gxv_morx_subtable_type0_validate() argument 99 gxvalid->xstatetable.optdata = NULL; in gxv_morx_subtable_type0_validate() 100 gxvalid->xstatetable.optdata_load_func = NULL; in gxv_morx_subtable_type0_validate() 101 gxvalid->xstatetable.subtable_setup_func = NULL; in gxv_morx_subtable_type0_validate() 102 gxvalid->xstatetable.entry_glyphoffset_fmt = GXV_GLYPHOFFSET_NONE; in gxv_morx_subtable_type0_validate() 103 gxvalid->xstatetable.entry_validate_func = in gxv_morx_subtable_type0_validate() 106 gxv_XStateTable_validate( p, limit, gxvalid ); in gxv_morx_subtable_type0_validate()
|
D | gxvmort0.c | 71 GXV_Validator gxvalid ) in gxv_mort_subtable_type0_entry_validate() argument 129 GXV_Validator gxvalid ) in gxv_mort_subtable_type0_validate() argument 139 gxvalid->statetable.optdata = NULL; in gxv_mort_subtable_type0_validate() 140 gxvalid->statetable.optdata_load_func = NULL; in gxv_mort_subtable_type0_validate() 141 gxvalid->statetable.subtable_setup_func = NULL; in gxv_mort_subtable_type0_validate() 142 gxvalid->statetable.entry_glyphoffset_fmt = GXV_GLYPHOFFSET_NONE; in gxv_mort_subtable_type0_validate() 143 gxvalid->statetable.entry_validate_func = in gxv_mort_subtable_type0_validate() 146 gxv_StateTable_validate( p, limit, gxvalid ); in gxv_mort_subtable_type0_validate()
|
D | gxvmort.h | 59 GXV_Validator gxvalid ); 63 GXV_Validator gxvalid ); 68 GXV_Validator gxvalid ); 73 GXV_Validator gxvalid ); 78 GXV_Validator gxvalid ); 83 GXV_Validator gxvalid ); 88 GXV_Validator gxvalid );
|
D | gxvmorx.h | 42 GXV_Validator gxvalid ); 47 GXV_Validator gxvalid ); 52 GXV_Validator gxvalid ); 57 GXV_Validator gxvalid ); 62 GXV_Validator gxvalid );
|
D | README | 1 gxvalid: TrueType GX validator 8 `gxvalid' is a module to validate TrueType GX tables: a collection of 10 Text', Apple Advanced Typography (AAT). In addition, gxvalid can 12 otvalid module, gxvalid uses FreeType 2's validator framework 15 You can link gxvalid with your program; before running your own layout 16 engine, gxvalid validates a font file. As the result, you can remove 18 use gxvalid as a stand-alone font validator; the `ftvalid' test 19 program included in the ft2demo bundle calls gxvalid internally. 80 gxvalid ignores it as Apple font tools do so. 108 rasterizers and text layout. gxvalid can check whether the layout [all …]
|
D | Jamfile | 1 # FreeType 2 src/gxvalid Jamfile 12 SubDir FT2_TOP $(FT2_SRC_DIR) gxvalid ; 46 _sources = gxvalid ; 52 # end of src/gxvalid Jamfile
|