Home
last modified time | relevance | path

Searched refs:gxvalid (Results 1 – 25 of 47) sorted by relevance

12

/external/freetype/src/gxvalid/
Dgxvjust.c73 GXV_Validator gxvalid ) in gxv_just_check_max_gid() argument
77 if ( gid < gxvalid->face->num_glyphs ) in gxv_just_check_max_gid()
82 msg_tag, gid, gxvalid->face->num_glyphs )); in gxv_just_check_max_gid()
90 GXV_Validator gxvalid ) in gxv_just_wdp_entry_validate() argument
126 gxvalid->subtable_length = (FT_ULong)( p - table ); in gxv_just_wdp_entry_validate()
133 GXV_Validator gxvalid ) in gxv_just_wdc_entry_validate() argument
144 gxv_just_wdp_entry_validate( p, limit, gxvalid ); in gxv_just_wdc_entry_validate()
145 p += gxvalid->subtable_length; in gxv_just_wdc_entry_validate()
148 gxvalid->subtable_length = (FT_ULong)( p - table ); in gxv_just_wdc_entry_validate()
155 GXV_Validator gxvalid ) in gxv_just_widthDeltaClusters_validate() argument
[all …]
Dgxvkern.c82 #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 …]
Dgxvmort1.c57 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 …]
Dgxvcommn.c68 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 …]
Dgxvbsln.c76 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 …]
Dgxvcommn.h64 #define IS_PARANOID_VALIDATION ( gxvalid->root->level >= FT_VALIDATE_PARANOID )
83 GXV_Validator gxvalid );
108 GXV_Validator gxvalid );
114 GXV_Validator gxvalid );
133 ( gxvalid->table.entry_glyphoffset_fmt )
136 ( gxvalid->table.entry_glyphoffset_fmt / 2 )
162 GXV_Validator gxvalid );
171 GXV_Validator gxvalid );
176 GXV_Validator gxvalid );
204 GXV_Validator gxvalid );
[all …]
Dgxvmorx1.c59 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 …]
Dgxvlcar.c71 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 …]
Dgxvtrak.c97 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 …]
Dgxvopbd.c72 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 …]
Dgxvmort.c44 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()
155 GXV_Validator gxvalid ) in gxv_mort_subtables_validate() argument
203 gxv_mort_coverage_validate( coverage, gxvalid ); in gxv_mort_subtables_validate()
212 func( p, p + rest, gxvalid ); in gxv_mort_subtables_validate()
218 gxvalid->subtable_length = (FT_ULong)( p - table ); in gxv_mort_subtables_validate()
[all …]
Dgxvmort2.c61 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 …]
Dgxvmorx2.c62 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 …]
Dgxvprop.c79 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 …]
Dgxvmorx5.c68 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 …]
Dgxvfeat.c85 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 …]
Dgxvmorx.c45 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 …]
Dgxvmort5.c74 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 …]
Dgxvmort4.c45 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()
Dgxvmorx0.c49 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()
Dgxvmort0.c71 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()
Dgxvmort.h62 GXV_Validator gxvalid );
66 GXV_Validator gxvalid );
71 GXV_Validator gxvalid );
76 GXV_Validator gxvalid );
81 GXV_Validator gxvalid );
86 GXV_Validator gxvalid );
91 GXV_Validator gxvalid );
Dgxvmorx.h45 GXV_Validator gxvalid );
50 GXV_Validator gxvalid );
55 GXV_Validator gxvalid );
60 GXV_Validator gxvalid );
65 GXV_Validator gxvalid );
Drules.mk19 GXV_DIR := $(SRC_DIR)/gxvalid
57 GXV_DRV_H := $(GXV_DIR)/gxvalid.h \
72 GXV_DRV_OBJ_S := $(OBJ_DIR)/gxvalid.$O
76 GXV_DRV_SRC_S := $(GXV_DIR)/gxvalid.c
DREADME1 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 …]

12