Visualization Library 2.0.0-b5
A lightweight C++ OpenGL middleware for 2D/3D graphics
|
[Download] [Tutorials] [All Classes] [Grouped Classes] |
Go to the source code of this file.
Classes | |
union | GXV_LookupValueDesc_ |
union | GXV_StateTable_GlyphOffsetDesc_ |
struct | GXV_StateTable_ValidatorRec_ |
struct | GXV_XStateTable_ValidatorRec_ |
struct | GXV_ValidatorRec_ |
struct | GXV_odtect_DataRec_ |
struct | GXV_odtect_RangeRec_ |
Macros | |
#define | IS_PARANOID_VALIDATION ( valid->root->level >= FT_VALIDATE_PARANOID ) |
#define | GXV_SET_ERR_IF_PARANOID(err) { if ( IS_PARANOID_VALIDATION ) ( err ); } |
#define | DUMMY_LIMIT 0 |
#define | GXV_GLYPHOFFSET_FMT(table) ( valid->table.entry_glyphoffset_fmt ) |
#define | GXV_GLYPHOFFSET_SIZE(table) ( valid->table.entry_glyphoffset_fmt / 2 ) |
#define | GXV_TABLE_DATA(tag, field) ( ( (GXV_ ## tag ## _Data)valid->table_data )->field ) |
#define | FT_INVALID_(_prefix, _error) ft_validator_error( valid->root, _prefix ## _error ) |
#define | GXV_LIMIT_CHECK(_count) |
#define | GXV_INIT do { } while ( 0 ) |
#define | GXV_NAME_ENTER(name) do { } while ( 0 ) |
#define | GXV_EXIT do { } while ( 0 ) |
#define | GXV_TRACE(s) do { } while ( 0 ) |
#define | GXV_32BIT_ALIGNMENT_VALIDATE(a) |
#define | GXV_TRACE_HEXDUMP(p, len) |
#define | GXV_TRACE_HEXDUMP_C(p, len) |
#define | GXV_TRACE_HEXDUMP_SFNTNAME(n) GXV_TRACE_HEXDUMP( n.string, n.string_len ) |
#define | GXV_SUBTABLE_OFFSET_CHECK(_offset) |
#define | GXV_SUBTABLE_LIMIT_CHECK(_count) |
#define | GXV_USHORT_TO_SHORT(_us) ( ( 0x8000U < ( _us ) ) ? ( ( _us ) - 0x8000U ) : ( _us ) ) |
#define | GXV_STATETABLE_HEADER_SIZE ( 2 + 2 + 2 + 2 ) |
#define | GXV_STATEHEADER_SIZE GXV_STATETABLE_HEADER_SIZE |
#define | GXV_XSTATETABLE_HEADER_SIZE ( 4 + 4 + 4 + 4 ) |
#define | GXV_XSTATEHEADER_SIZE GXV_XSTATETABLE_HEADER_SIZE |
#define | GXV_ODTECT(n, odtect) |
#define | GXV_ODTECT_INIT(odtect) |
Enumerations | |
enum | GXV_LookupValue_SignSpec_ { GXV_LOOKUPVALUE_UNSIGNED = 0, GXV_LOOKUPVALUE_SIGNED } |
enum | GXV_GlyphOffset_Format_ { GXV_GLYPHOFFSET_NONE = -1, GXV_GLYPHOFFSET_UCHAR = 2, GXV_GLYPHOFFSET_CHAR, GXV_GLYPHOFFSET_USHORT = 4, GXV_GLYPHOFFSET_SHORT, GXV_GLYPHOFFSET_ULONG = 8, GXV_GLYPHOFFSET_LONG } |
#define DUMMY_LIMIT 0 |
Definition at line 79 of file gxvcommn.h.
#define FT_INVALID_ | ( | _prefix, | |
_error | |||
) | ft_validator_error( valid->root, _prefix ## _error ) |
Definition at line 269 of file gxvcommn.h.
#define GXV_32BIT_ALIGNMENT_VALIDATE | ( | a | ) |
Definition at line 317 of file gxvcommn.h.
Referenced by gxv_mort_validate(), gxv_morx_validate(), and gxv_trak_validate().
#define GXV_EXIT do { } while ( 0 ) |
Definition at line 302 of file gxvcommn.h.
Referenced by gxv_glyphid_validate(), gxv_morx_subtable_type4_validate(), and gxv_sfntName_validate().
#define GXV_GLYPHOFFSET_FMT | ( | table | ) | ( valid->table.entry_glyphoffset_fmt ) |
Definition at line 133 of file gxvcommn.h.
#define GXV_GLYPHOFFSET_SIZE | ( | table | ) | ( valid->table.entry_glyphoffset_fmt / 2 ) |
Definition at line 136 of file gxvcommn.h.
#define GXV_INIT do { } while ( 0 ) |
Definition at line 300 of file gxvcommn.h.
Referenced by gxv_feat_validate(), gxv_just_validate(), gxv_lcar_validate(), gxv_mort_validate(), gxv_morx_validate(), gxv_opbd_validate(), gxv_prop_validate(), and gxv_trak_validate().
#define GXV_LIMIT_CHECK | ( | _count | ) |
Definition at line 272 of file gxvcommn.h.
Referenced by gxv_array_getlimits_byte(), gxv_array_getlimits_ushort(), gxv_BinSrchHeader_validate(), gxv_feat_validate(), gxv_just_validate(), gxv_lcar_validate(), gxv_mort_featurearray_validate(), gxv_mort_subtable_type0_validate(), gxv_mort_subtable_type1_validate(), gxv_mort_subtable_type2_validate(), gxv_mort_subtable_type5_validate(), gxv_mort_validate(), gxv_morx_subtable_type0_validate(), gxv_morx_subtable_type1_validate(), gxv_morx_subtable_type2_validate(), gxv_morx_subtable_type5_validate(), gxv_morx_validate(), gxv_opbd_validate(), gxv_prop_validate(), gxv_StateTable_validate(), gxv_trak_validate(), and gxv_XStateTable_validate().
#define GXV_NAME_ENTER | ( | name | ) | do { } while ( 0 ) |
Definition at line 301 of file gxvcommn.h.
Referenced by gxv_BinSrchHeader_validate(), gxv_mort_featurearray_validate(), gxv_mort_subtable_type0_validate(), gxv_mort_subtable_type1_validate(), gxv_mort_subtable_type2_validate(), gxv_mort_subtable_type4_validate(), gxv_mort_subtable_type5_validate(), gxv_morx_subtable_type0_validate(), gxv_morx_subtable_type1_validate(), gxv_morx_subtable_type2_validate(), gxv_morx_subtable_type4_validate(), gxv_morx_subtable_type5_validate(), gxv_odtect_validate(), gxv_sfntName_validate(), gxv_StateTable_validate(), and gxv_XStateTable_validate().
#define GXV_ODTECT | ( | n, | |
odtect | |||
) |
Definition at line 562 of file gxvcommn.h.
Referenced by gxv_just_validate(), and gxv_trak_validate().
#define GXV_ODTECT_INIT | ( | odtect | ) |
Definition at line 567 of file gxvcommn.h.
Referenced by gxv_just_validate(), and gxv_trak_validate().
#define GXV_SET_ERR_IF_PARANOID | ( | err | ) | { if ( IS_PARANOID_VALIDATION ) ( err ); } |
Definition at line 66 of file gxvcommn.h.
Referenced by gxv_glyphid_validate().
#define GXV_STATEHEADER_SIZE GXV_STATETABLE_HEADER_SIZE |
Definition at line 521 of file gxvcommn.h.
#define GXV_STATETABLE_HEADER_SIZE ( 2 + 2 + 2 + 2 ) |
Definition at line 520 of file gxvcommn.h.
Referenced by gxv_mort_subtable_type0_validate(), and gxv_morx_subtable_type0_validate().
#define GXV_SUBTABLE_LIMIT_CHECK | ( | _count | ) |
Definition at line 510 of file gxvcommn.h.
#define GXV_SUBTABLE_OFFSET_CHECK | ( | _offset | ) |
Definition at line 504 of file gxvcommn.h.
#define GXV_TABLE_DATA | ( | tag, | |
field | |||
) | ( ( (GXV_ ## tag ## _Data)valid->table_data )->field ) |
Definition at line 265 of file gxvcommn.h.
#define GXV_TRACE | ( | s | ) | do { } while ( 0 ) |
Definition at line 304 of file gxvcommn.h.
Referenced by gxv_BinSrchHeader_validate(), gxv_feat_validate(), gxv_glyphid_validate(), gxv_just_validate(), gxv_mort_coverage_validate(), gxv_mort_validate(), gxv_morx_validate(), gxv_opbd_validate(), gxv_prop_validate(), gxv_sfntName_validate(), gxv_StateTable_validate(), gxv_trak_validate(), and gxv_XStateTable_validate().
Definition at line 334 of file gxvcommn.h.
Definition at line 345 of file gxvcommn.h.
#define GXV_TRACE_HEXDUMP_SFNTNAME | ( | n | ) | GXV_TRACE_HEXDUMP( n.string, n.string_len ) |
Definition at line 359 of file gxvcommn.h.
Referenced by gxv_sfntName_validate().
#define GXV_USHORT_TO_SHORT | ( | _us | ) | ( ( 0x8000U < ( _us ) ) ? ( ( _us ) - 0x8000U ) : ( _us ) ) |
Definition at line 517 of file gxvcommn.h.
#define GXV_XSTATEHEADER_SIZE GXV_XSTATETABLE_HEADER_SIZE |
Definition at line 524 of file gxvcommn.h.
#define GXV_XSTATETABLE_HEADER_SIZE ( 4 + 4 + 4 + 4 ) |
Definition at line 523 of file gxvcommn.h.
#define IS_PARANOID_VALIDATION ( valid->root->level >= FT_VALIDATE_PARANOID ) |
Definition at line 65 of file gxvcommn.h.
Referenced by gxv_feat_validate().
typedef enum GXV_GlyphOffset_Format_ GXV_GlyphOffset_Format |
typedef GXV_LookupValueDesc(* GXV_Lookup_Fmt4_Transit_Func) (FT_UShort relative_gindex, GXV_LookupValueCPtr base_value_p, FT_Bytes lookuptbl_limit, GXV_Validator valid) |
Definition at line 112 of file gxvcommn.h.
typedef void(* GXV_Lookup_Value_Validate_Func) (FT_UShort glyph, GXV_LookupValueCPtr value_p, GXV_Validator valid) |
Definition at line 107 of file gxvcommn.h.
typedef enum GXV_LookupValue_SignSpec_ GXV_LookupValue_SignSpec |
typedef const GXV_LookupValueDesc* GXV_LookupValueCPtr |
Definition at line 96 of file gxvcommn.h.
typedef union GXV_LookupValueDesc_ GXV_LookupValueDesc |
typedef struct GXV_odtect_DataRec_ * GXV_odtect_Data |
typedef struct GXV_odtect_DataRec_ GXV_odtect_DataRec |
typedef struct GXV_odtect_RangeRec_ * GXV_odtect_Range |
typedef struct GXV_odtect_RangeRec_ GXV_odtect_RangeRec |
typedef void(* GXV_StateTable_Entry_Validate_Func) (FT_Byte state, FT_UShort flags, GXV_StateTable_GlyphOffsetCPtr glyphOffset_p, FT_Bytes statetable_table, FT_Bytes statetable_limit, GXV_Validator valid) |
Definition at line 166 of file gxvcommn.h.
Definition at line 153 of file gxvcommn.h.
typedef void(* GXV_StateTable_OptData_Load_Func) (FT_Bytes table, FT_Bytes limit, GXV_Validator valid) |
Definition at line 175 of file gxvcommn.h.
typedef void(* GXV_StateTable_Subtable_Setup_Func) (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 valid) |
Definition at line 156 of file gxvcommn.h.
typedef struct GXV_StateTable_ValidatorRec_ GXV_StateTable_ValidatorRec |
typedef struct GXV_StateTable_ValidatorRec_ * GXV_StateTable_ValidatorRecData |
Definition at line 82 of file gxvcommn.h.
typedef struct GXV_ValidatorRec_* GXV_Validator |
Definition at line 76 of file gxvcommn.h.
typedef struct GXV_ValidatorRec_ GXV_ValidatorRec |
typedef void(* GXV_XStateTable_Entry_Validate_Func) (FT_UShort state, FT_UShort flags, GXV_StateTable_GlyphOffsetCPtr glyphOffset_p, FT_Bytes xstatetable_table, FT_Bytes xstatetable_limit, GXV_Validator valid) |
Definition at line 208 of file gxvcommn.h.
Definition at line 195 of file gxvcommn.h.
Definition at line 193 of file gxvcommn.h.
Definition at line 217 of file gxvcommn.h.
typedef void(* GXV_XStateTable_Subtable_Setup_Func) (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 valid) |
Definition at line 198 of file gxvcommn.h.
typedef struct GXV_XStateTable_ValidatorRec_ GXV_XStateTable_ValidatorRec |
typedef struct GXV_XStateTable_ValidatorRec_ * GXV_XStateTable_ValidatorRecData |
Enumerator | |
---|---|
GXV_GLYPHOFFSET_NONE | |
GXV_GLYPHOFFSET_UCHAR | |
GXV_GLYPHOFFSET_CHAR | |
GXV_GLYPHOFFSET_USHORT | |
GXV_GLYPHOFFSET_SHORT | |
GXV_GLYPHOFFSET_ULONG | |
GXV_GLYPHOFFSET_LONG |
Definition at line 120 of file gxvcommn.h.
Enumerator | |
---|---|
GXV_LOOKUPVALUE_UNSIGNED | |
GXV_LOOKUPVALUE_SIGNED |
Definition at line 98 of file gxvcommn.h.
gxv_array_getlimits_byte | ( | FT_Bytes | table, |
FT_Bytes | limit, | ||
FT_Byte * | min, | ||
FT_Byte * | max, | ||
GXV_Validator | valid | ||
) |
Definition at line 181 of file gxvcommn.c.
References FT_LOCAL_DEF, FT_MAX, FT_MIN, FT_NEXT_BYTE, GXV_LIMIT_CHECK, max, and vl::min().
gxv_array_getlimits_ushort | ( | FT_Bytes | table, |
FT_Bytes | limit, | ||
FT_UShort * | min, | ||
FT_UShort * | max, | ||
GXV_Validator | valid | ||
) |
Definition at line 210 of file gxvcommn.c.
References FT_MAX, FT_MIN, FT_NEXT_USHORT, GXV_LIMIT_CHECK, max, and vl::min().
gxv_BinSrchHeader_validate | ( | FT_Bytes | p, |
FT_Bytes | limit, | ||
FT_UShort * | unitSize_p, | ||
FT_UShort * | nUnits_p, | ||
GXV_Validator | valid | ||
) |
Definition at line 328 of file gxvcommn.c.
References FT_NEXT_USHORT, GXV_LIMIT_CHECK, GXV_NAME_ENTER, and GXV_TRACE.
gxv_ctlPoint_validate | ( | FT_UShort | gid, |
FT_Short | ctl_point, | ||
GXV_Validator | valid | ||
) |
Definition at line 846 of file gxvcommn.c.
References error, GXV_ValidatorRec_::face, FT_INVALID_DATA, FT_INVALID_GLYPH_ID, FT_Load_Glyph(), FT_LOAD_IGNORE_TRANSFORM, FT_LOAD_NO_BITMAP, FT_LOCAL_DEF, FT_FaceRec_::glyph, FT_Outline_::n_points, and FT_GlyphSlotRec_::outline.
gxv_glyphid_validate | ( | FT_UShort | gid, |
GXV_Validator | valid | ||
) |
Definition at line 813 of file gxvcommn.c.
References GXV_ValidatorRec_::face, FT_INVALID_GLYPH_ID, FT_LOCAL_DEF, GXV_EXIT, GXV_SET_ERR_IF_PARANOID, GXV_TRACE, and FT_FaceRec_::num_glyphs.
gxv_LookupTable_validate | ( | FT_Bytes | table, |
FT_Bytes | limit, | ||
GXV_Validator | valid | ||
) |
Definition at line 755 of file gxvcommn.c.
gxv_odtect_add_range | ( | FT_Bytes | start, |
FT_ULong | length, | ||
const FT_String * | name, | ||
GXV_odtect_Range | odtect | ||
) |
Definition at line 1702 of file gxvcommn.c.
References FT_LOCAL_DEF.
Referenced by gxv_just_validate().
gxv_odtect_validate | ( | GXV_odtect_Range | odtect, |
GXV_Validator | valid | ||
) |
Definition at line 1715 of file gxvcommn.c.
References GXV_NAME_ENTER, and i.
gxv_set_length_by_ulong_offset | ( | FT_ULong * | offset, |
FT_ULong ** | length, | ||
FT_ULong * | buff, | ||
FT_UInt | nmemb, | ||
FT_ULong | limit, | ||
GXV_Validator | valid | ||
) |
Definition at line 128 of file gxvcommn.c.
Referenced by gxv_XStateTable_subtable_setup().
gxv_set_length_by_ushort_offset | ( | FT_UShort * | offset, |
FT_UShort ** | length, | ||
FT_UShort * | buff, | ||
FT_UInt | nmemb, | ||
FT_UShort | limit, | ||
GXV_Validator | valid | ||
) |
Definition at line 63 of file gxvcommn.c.
Referenced by gxv_StateTable_subtable_setup().
gxv_sfntName_validate | ( | FT_UShort | name_index, |
FT_UShort | min_index, | ||
FT_UShort | max_index, | ||
GXV_Validator | valid | ||
) |
Definition at line 885 of file gxvcommn.c.
References GXV_ValidatorRec_::face, FT_Err_Ok, FT_Get_Sfnt_Name(), FT_Get_Sfnt_Name_Count(), FT_INVALID_DATA, FT_INVALID_FORMAT, FT_TRACE1, GXV_EXIT, GXV_NAME_ENTER, GXV_TRACE, GXV_TRACE_HEXDUMP_SFNTNAME, and i.
gxv_StateTable_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 | valid | ||
) |
Definition at line 1188 of file gxvcommn.c.
References FT_LOCAL_DEF, and gxv_set_length_by_ushort_offset().
Referenced by gxv_mort_subtable_type5_subtable_setup(), and gxv_StateTable_validate().
gxv_StateTable_validate | ( | FT_Bytes | table, |
FT_Bytes | limit, | ||
GXV_Validator | valid | ||
) |
Definition at line 1214 of file gxvcommn.c.
References FT_INVALID_DATA, FT_NEXT_USHORT, GXV_LIMIT_CHECK, GXV_NAME_ENTER, gxv_StateTable_subtable_setup(), GXV_TRACE, NULL, GXV_StateTable_ValidatorRec_::optdata_load_func, GXV_ValidatorRec_::statetable, and GXV_StateTable_ValidatorRec_::subtable_setup_func.
gxv_XStateTable_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 | valid | ||
) |
Definition at line 1316 of file gxvcommn.c.
References gxv_set_length_by_ulong_offset().
Referenced by gxv_XStateTable_validate().
gxv_XStateTable_validate | ( | FT_Bytes | table, |
FT_Bytes | limit, | ||
GXV_Validator | valid | ||
) |
Definition at line 1558 of file gxvcommn.c.
References FT_INVALID_DATA, FT_NEXT_ULONG, GXV_LIMIT_CHECK, GXV_LOOKUPVALUE_UNSIGNED, GXV_NAME_ENTER, GXV_TRACE, gxv_XStateTable_subtable_setup(), GXV_ValidatorRec_::lookupval_func, GXV_ValidatorRec_::lookupval_sign, GXV_XStateTable_ValidatorRec_::maxClassID, GXV_XStateTable_ValidatorRec_::nClasses, NULL, GXV_XStateTable_ValidatorRec_::optdata_load_func, GXV_XStateTable_ValidatorRec_::subtable_setup_func, and GXV_ValidatorRec_::xstatetable.
Visualization Library 2.0.0-b5 Reference Documentation
Updated on Mon Feb 10 2020 02:44:55.
© Copyright Michele Bosi. All rights reserved.