zenilib  0.5.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
t42parse.c File Reference
#include "t42parse.h"
#include "t42error.h"
#include <FT_INTERNAL_DEBUG_H>
#include <FT_INTERNAL_STREAM_H>
#include <FT_INTERNAL_POSTSCRIPT_AUX_H>

Go to the source code of this file.

Macros

#define FT_COMPONENT   trace_t42
 
#define FT_STRUCTURE   T1_FontInfo
 
#define FT_STRUCTURE   PS_FontExtraRec
 
#define FT_STRUCTURE   T1_FontRec
 
#define FT_STRUCTURE   FT_BBox
 
#define T1_Add_Table(p, i, o, l)   (p)->funcs.add( (p), i, o, l )
 
#define T1_Done_Table(p)
 
#define T1_Load_Field(p, f, o, m, pf)   (p)->root.funcs.load_field( &(p)->root, f, o, m, pf )
 
#define T1_Load_Field_Table(p, f, o, m, pf)   (p)->root.funcs.load_field_table( &(p)->root, f, o, m, pf )
 
#define T1_Release_Table(p)
 
#define T1_Skip_PS_Token(p)   (p)->root.funcs.skip_PS_token( &(p)->root )
 
#define T1_Skip_Spaces(p)   (p)->root.funcs.skip_spaces( &(p)->root )
 
#define T1_ToBytes(p, b, m, n, d)   (p)->root.funcs.to_bytes( &(p)->root, b, m, n, d )
 
#define T1_ToFixedArray(p, m, f, t)   (p)->root.funcs.to_fixed_array( &(p)->root, m, f, t )
 
#define T1_ToInt(p)   (p)->root.funcs.to_int( &(p)->root )
 
#define T1_ToToken(p, t)   (p)->root.funcs.to_token( &(p)->root, t )
 
#define T1CODE   T1_FIELD_LOCATION_FONT_INFO
 
#define T1CODE   T1_FIELD_LOCATION_FONT_EXTRA
 
#define T1CODE   T1_FIELD_LOCATION_FONT_DICT
 
#define T1CODE   T1_FIELD_LOCATION_BBOX
 

Typedefs

typedef enum T42_Load_Status_ T42_Load_Status
 

Enumerations

enum  T42_Load_Status_ { BEFORE_START, BEFORE_TABLE_DIR, OTHER_TABLES }
 

Functions

static int t42_is_space (FT_Byte c)
 
static FT_Error t42_load_keyword (T42_Face face, T42_Loader loader, T1_Field field)
 
 t42_loader_done (T42_Loader loader)
 
 t42_loader_init (T42_Loader loader, T42_Face face)
 
static void t42_parse_charstrings (T42_Face face, T42_Loader loader)
 
 t42_parse_dict (T42_Face face, T42_Loader loader, FT_Byte *base, FT_Long size)
 
static void t42_parse_encoding (T42_Face face, T42_Loader loader)
 
static void t42_parse_font_matrix (T42_Face face, T42_Loader loader)
 
static void t42_parse_sfnts (T42_Face face, T42_Loader loader)
 
 t42_parser_done (T42_Parser parser)
 
 t42_parser_init (T42_Parser parser, FT_Stream stream, FT_Memory memory, PSAux_Service psaux)
 

Variables

static const T1_FieldRec t42_keywords []
 

Macro Definition Documentation

#define FT_COMPONENT   trace_t42

Definition at line 33 of file t42parse.c.

#define FT_STRUCTURE   T1_FontInfo
#define FT_STRUCTURE   PS_FontExtraRec
#define FT_STRUCTURE   T1_FontRec
#define FT_STRUCTURE   FT_BBox
#define T1_Add_Table (   p,
  i,
  o,
  l 
)    (p)->funcs.add( (p), i, o, l )

Definition at line 106 of file t42parse.c.

Referenced by t42_parse_charstrings(), and t42_parse_encoding().

#define T1_Done_Table (   p)
Value:
do \
{ \
if ( (p)->funcs.done ) \
(p)->funcs.done( p ); \
} while ( 0 )
if(!yyg->yy_init)
GLfloat GLfloat p
Definition: glew.h:14938

Definition at line 107 of file t42parse.c.

#define T1_Load_Field (   p,
  f,
  o,
  m,
  pf 
)    (p)->root.funcs.load_field( &(p)->root, f, o, m, pf )

Definition at line 133 of file t42parse.c.

Referenced by t42_load_keyword().

#define T1_Load_Field_Table (   p,
  f,
  o,
  m,
  pf 
)    (p)->root.funcs.load_field_table( &(p)->root, f, o, m, pf )

Definition at line 135 of file t42parse.c.

Referenced by t42_load_keyword().

#define T1_Release_Table (   p)
Value:
do \
{ \
if ( (p)->funcs.release ) \
(p)->funcs.release( p ); \
} while ( 0 )
if(!yyg->yy_init)
GLfloat GLfloat p
Definition: glew.h:14938

Definition at line 113 of file t42parse.c.

Referenced by t42_loader_done().

#define T1_Skip_PS_Token (   p)    (p)->root.funcs.skip_PS_token( &(p)->root )
#define T1_Skip_Spaces (   p)    (p)->root.funcs.skip_spaces( &(p)->root )
#define T1_ToBytes (   p,
  b,
  m,
  n,
  d 
)    (p)->root.funcs.to_bytes( &(p)->root, b, m, n, d )

Definition at line 125 of file t42parse.c.

Referenced by t42_parse_sfnts().

#define T1_ToFixedArray (   p,
  m,
  f,
  t 
)    (p)->root.funcs.to_fixed_array( &(p)->root, m, f, t )

Definition at line 128 of file t42parse.c.

Referenced by t42_parse_font_matrix().

#define T1_ToInt (   p)    (p)->root.funcs.to_int( &(p)->root )

Definition at line 123 of file t42parse.c.

Referenced by t42_parse_charstrings(), t42_parse_encoding(), and t42_parse_sfnts().

#define T1_ToToken (   p,
  t 
)    (p)->root.funcs.to_token( &(p)->root, t )

Definition at line 130 of file t42parse.c.

Referenced by t42_parse_dict().

#define T1CODE   T1_FIELD_LOCATION_FONT_INFO
#define T1CODE   T1_FIELD_LOCATION_FONT_EXTRA
#define T1CODE   T1_FIELD_LOCATION_FONT_DICT
#define T1CODE   T1_FIELD_LOCATION_BBOX

Typedef Documentation

Enumeration Type Documentation

Enumerator
BEFORE_START 
BEFORE_TABLE_DIR 
OTHER_TABLES 

Definition at line 483 of file t42parse.c.

Function Documentation

static int t42_is_space ( FT_Byte  c)
static

Definition at line 240 of file t42parse.c.

Referenced by t42_parse_charstrings(), and t42_parse_encoding().

t42_loader_done ( T42_Loader  loader)

Definition at line 1172 of file t42parse.c.

References T1_Release_Table, and t42_parser_done().

Referenced by T42_Open_Face().

t42_loader_init ( T42_Loader  loader,
T42_Face  face 
)

Definition at line 1155 of file t42parse.c.

References FT_MEM_ZERO, and FT_UNUSED.

Referenced by T42_Open_Face().

t42_parse_dict ( T42_Face  face,
T42_Loader  loader,
FT_Byte base,
FT_Long  size 
)
static void t42_parse_font_matrix ( T42_Face  face,
T42_Loader  loader 
)
static
t42_parser_done ( T42_Parser  parser)

Definition at line 226 of file t42parse.c.

References FT_FREE.

Referenced by t42_loader_done().

t42_parser_init ( T42_Parser  parser,
FT_Stream  stream,
FT_Memory  memory,
PSAux_Service  psaux 
)

Variable Documentation

const T1_FieldRec t42_keywords[]
static

Definition at line 55 of file t42parse.c.