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]
Macros | Functions
cffparse.c File Reference
#include <ft2build.h>
#include "cffparse.h"
#include "cfferrs.h"
#include "cffpic.h"
#include "cfftoken.h"

Go to the source code of this file.

Macros

#define FT_COMPONENT   trace_cffparse
 
#define CFF_FIELD_NUM(code, name, id)   CFF_FIELD( code, name, id, cff_kind_num )
 
#define CFF_FIELD_FIXED(code, name, id)   CFF_FIELD( code, name, id, cff_kind_fixed )
 
#define CFF_FIELD_FIXED_1000(code, name, id)   CFF_FIELD( code, name, id, cff_kind_fixed_thousand )
 
#define CFF_FIELD_STRING(code, name, id)   CFF_FIELD( code, name, id, cff_kind_string )
 
#define CFF_FIELD_BOOL(code, name, id)   CFF_FIELD( code, name, id, cff_kind_bool )
 
#define CFFCODE_TOPDICT   0x1000
 
#define CFFCODE_PRIVATE   0x2000
 
#define CFF_FIELD_CALLBACK(code, name, id)
 
#define CFF_FIELD(code, name, id, kind)
 
#define CFF_FIELD_DELTA(code, name, max, id)
 

Functions

 cff_parser_init (CFF_Parser parser, FT_UInt code, void *object, FT_Library library)
 
 cff_parser_run (CFF_Parser parser, FT_Byte *start, FT_Byte *limit)
 

Macro Definition Documentation

◆ CFF_FIELD

#define CFF_FIELD (   code,
  name,
  id,
  kind 
)
Value:
{ \
kind, \
code | CFFCODE, \
FT_FIELD_OFFSET( name ), \
FT_FIELD_SIZE( name ), \
0, 0, 0 \
},
GLuint const GLchar * name
#define CFFCODE

Definition at line 702 of file cffparse.c.

◆ CFF_FIELD_BOOL

#define CFF_FIELD_BOOL (   code,
  name,
  id 
)    CFF_FIELD( code, name, id, cff_kind_bool )

Definition at line 676 of file cffparse.c.

◆ CFF_FIELD_CALLBACK

#define CFF_FIELD_CALLBACK (   code,
  name,
  id 
)
Value:
{ \
cff_kind_callback, \
code | CFFCODE, \
0, 0, \
cff_parse_ ## name, \
0, 0 \
},
GLuint const GLchar * name
#define CFFCODE

Definition at line 693 of file cffparse.c.

◆ CFF_FIELD_DELTA

#define CFF_FIELD_DELTA (   code,
  name,
  max,
  id 
)
Value:
{ \
cff_kind_delta, \
code | CFFCODE, \
FT_FIELD_OFFSET( name ), \
FT_FIELD_SIZE_DELTA( name ), \
0, \
max, \
FT_FIELD_OFFSET( num_ ## name ) \
},
GLuint const GLchar * name
#define CFFCODE

Definition at line 711 of file cffparse.c.

◆ CFF_FIELD_FIXED

#define CFF_FIELD_FIXED (   code,
  name,
  id 
)    CFF_FIELD( code, name, id, cff_kind_fixed )

Definition at line 670 of file cffparse.c.

◆ CFF_FIELD_FIXED_1000

#define CFF_FIELD_FIXED_1000 (   code,
  name,
  id 
)    CFF_FIELD( code, name, id, cff_kind_fixed_thousand )

Definition at line 672 of file cffparse.c.

◆ CFF_FIELD_NUM

#define CFF_FIELD_NUM (   code,
  name,
  id 
)    CFF_FIELD( code, name, id, cff_kind_num )

Definition at line 668 of file cffparse.c.

◆ CFF_FIELD_STRING

#define CFF_FIELD_STRING (   code,
  name,
  id 
)    CFF_FIELD( code, name, id, cff_kind_string )

Definition at line 674 of file cffparse.c.

◆ CFFCODE_PRIVATE

#define CFFCODE_PRIVATE   0x2000

Definition at line 680 of file cffparse.c.

◆ CFFCODE_TOPDICT

#define CFFCODE_TOPDICT   0x1000

Definition at line 679 of file cffparse.c.

◆ FT_COMPONENT

#define FT_COMPONENT   trace_cffparse

Definition at line 35 of file cffparse.c.

Function Documentation

◆ cff_parser_init()

cff_parser_init ( CFF_Parser  parser,
FT_UInt  code,
void object,
FT_Library  library 
)

Definition at line 39 of file cffparse.c.

References code, FT_MEM_ZERO, library, and object.

◆ cff_parser_run()

cff_parser_run ( CFF_Parser  parser,
FT_Byte start,
FT_Byte limit 
)