Visualization Library 2.0.0-b5

A lightweight C++ OpenGL middleware for 2D/3D graphics

VL     Star     Watch     Fork     Issue

[Download] [Tutorials] [All Classes] [Grouped Classes]
Classes | Macros | Typedefs | Enumerations | Functions
ftvalid.h File Reference
#include <ft2build.h>

Go to the source code of this file.

Classes

struct  FT_ValidatorRec_
 

Macros

#define FT_VALIDATOR(x)   ((FT_Validator)( x ))
 
#define FT_INVALID(_prefix, _error)   FT_INVALID_( _prefix, _error )
 
#define FT_INVALID_(_prefix, _error)   ft_validator_error( valid, _prefix ## _error )
 
#define FT_INVALID_TOO_SHORT   FT_INVALID( FT_ERR_PREFIX, Invalid_Table )
 
#define FT_INVALID_OFFSET   FT_INVALID( FT_ERR_PREFIX, Invalid_Offset )
 
#define FT_INVALID_FORMAT   FT_INVALID( FT_ERR_PREFIX, Invalid_Table )
 
#define FT_INVALID_GLYPH_ID   FT_INVALID( FT_ERR_PREFIX, Invalid_Glyph_Index )
 
#define FT_INVALID_DATA   FT_INVALID( FT_ERR_PREFIX, Invalid_Table )
 

Typedefs

typedef typedefFT_BEGIN_HEADER struct FT_ValidatorRec_ volatile * FT_Validator
 
typedef enum FT_ValidationLevel_ FT_ValidationLevel
 
typedef struct FT_ValidatorRec_ FT_ValidatorRec
 

Enumerations

enum  FT_ValidationLevel_ { FT_VALIDATE_DEFAULT = 0, FT_VALIDATE_TIGHT, FT_VALIDATE_PARANOID }
 

Functions

 ft_validator_init (FT_Validator valid, const FT_Byte *base, const FT_Byte *limit, FT_ValidationLevel level)
 
 ft_validator_run (FT_Validator valid)
 
 ft_validator_error (FT_Validator valid, FT_Error error)
 

Macro Definition Documentation

◆ FT_INVALID

#define FT_INVALID (   _prefix,
  _error 
)    FT_INVALID_( _prefix, _error )

Definition at line 120 of file ftvalid.h.

◆ FT_INVALID_

#define FT_INVALID_ (   _prefix,
  _error 
)    ft_validator_error( valid, _prefix ## _error )

Definition at line 121 of file ftvalid.h.

◆ FT_INVALID_DATA

#define FT_INVALID_DATA   FT_INVALID( FT_ERR_PREFIX, Invalid_Table )

◆ FT_INVALID_FORMAT

#define FT_INVALID_FORMAT   FT_INVALID( FT_ERR_PREFIX, Invalid_Table )

◆ FT_INVALID_GLYPH_ID

#define FT_INVALID_GLYPH_ID   FT_INVALID( FT_ERR_PREFIX, Invalid_Glyph_Index )

◆ FT_INVALID_OFFSET

#define FT_INVALID_OFFSET   FT_INVALID( FT_ERR_PREFIX, Invalid_Offset )

Definition at line 129 of file ftvalid.h.

Referenced by tt_cmap_init().

◆ FT_INVALID_TOO_SHORT

#define FT_INVALID_TOO_SHORT   FT_INVALID( FT_ERR_PREFIX, Invalid_Table )

Definition at line 125 of file ftvalid.h.

Referenced by tt_cmap_init().

◆ FT_VALIDATOR

#define FT_VALIDATOR (   x)    ((FT_Validator)( x ))

Definition at line 92 of file ftvalid.h.

Referenced by tt_face_build_cmaps().

Typedef Documentation

◆ FT_ValidationLevel

◆ FT_Validator

typedef typedefFT_BEGIN_HEADER struct FT_ValidatorRec_ volatile* FT_Validator

Definition at line 42 of file ftvalid.h.

◆ FT_ValidatorRec

Enumeration Type Documentation

◆ FT_ValidationLevel_

Enumerator
FT_VALIDATE_DEFAULT 
FT_VALIDATE_TIGHT 
FT_VALIDATE_PARANOID 

Definition at line 70 of file ftvalid.h.

Function Documentation

◆ ft_validator_error()

ft_validator_error ( FT_Validator  valid,
FT_Error  error 
)

Definition at line 105 of file ftobjs.c.

References error, FT_BASE_DEF, ft_jmp_buf, and ft_longjmp.

◆ ft_validator_init()

ft_validator_init ( FT_Validator  valid,
const FT_Byte base,
const FT_Byte limit,
FT_ValidationLevel  level 
)

Definition at line 82 of file ftobjs.c.

References FT_BASE_DEF, and FT_Err_Ok.

Referenced by tt_face_build_cmaps().

◆ ft_validator_run()

ft_validator_run ( FT_Validator  valid)

Definition at line 95 of file ftobjs.c.

References FT_BASE_DEF, and FT_UNUSED.