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 | Typedefs | Enumerations | Functions
t42parse.c File Reference
#include "t42parse.h"
#include "t42error.h"

Go to the source code of this file.

Macros

#define FT_COMPONENT   trace_t42
 
#define FT_STRUCTURE   T1_FontInfo
 
#define T1CODE   T1_FIELD_LOCATION_FONT_INFO
 
#define FT_STRUCTURE   PS_FontExtraRec
 
#define T1CODE   T1_FIELD_LOCATION_FONT_EXTRA
 
#define FT_STRUCTURE   T1_FontRec
 
#define T1CODE   T1_FIELD_LOCATION_FONT_DICT
 
#define FT_STRUCTURE   FT_BBox
 
#define T1CODE   T1_FIELD_LOCATION_BBOX
 
#define T1_Add_Table(p, i, o, l)   (p)->funcs.add( (p), i, o, l )
 
#define T1_Done_Table(p)
 
#define T1_Release_Table(p)
 
#define T1_Skip_Spaces(p)   (p)->root.funcs.skip_spaces( &(p)->root )
 
#define T1_Skip_PS_Token(p)   (p)->root.funcs.skip_PS_token( &(p)->root )
 
#define T1_ToInt(p)   (p)->root.funcs.to_int( &(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_ToToken(p, t)   (p)->root.funcs.to_token( &(p)->root, t )
 
#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 )
 

Typedefs

typedef enum T42_Load_Status_ T42_Load_Status
 

Enumerations

enum  T42_Load_Status_ { BEFORE_START, BEFORE_TABLE_DIR, OTHER_TABLES }
 

Functions

 t42_parser_init (T42_Parser parser, FT_Stream stream, FT_Memory memory, PSAux_Service psaux)
 
 t42_parser_done (T42_Parser parser)
 
 t42_parse_dict (T42_Face face, T42_Loader loader, FT_Byte *base, FT_Long size)
 
 t42_loader_init (T42_Loader loader, T42_Face face)
 
 t42_loader_done (T42_Loader loader)
 

Macro Definition Documentation

◆ FT_COMPONENT

#define FT_COMPONENT   trace_t42

Definition at line 33 of file t42parse.c.

◆ FT_STRUCTURE [1/4]

#define FT_STRUCTURE   T1_FontInfo

◆ FT_STRUCTURE [2/4]

#define FT_STRUCTURE   PS_FontExtraRec

◆ FT_STRUCTURE [3/4]

#define FT_STRUCTURE   T1_FontRec

◆ FT_STRUCTURE [4/4]

#define FT_STRUCTURE   FT_BBox

◆ T1_Add_Table

#define T1_Add_Table (   p,
  i,
  o,
 
)    (p)->funcs.add( (p), i, o, l )

Definition at line 106 of file t42parse.c.

◆ T1_Done_Table

#define T1_Done_Table (   p)
Value:
do \
{ \
if ( (p)->funcs.done ) \
(p)->funcs.done( p ); \
} while ( 0 )
GLfloat GLfloat p

Definition at line 107 of file t42parse.c.

◆ T1_Load_Field

#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.

◆ T1_Load_Field_Table

#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.

◆ T1_Release_Table

#define T1_Release_Table (   p)
Value:
do \
{ \
if ( (p)->funcs.release ) \
(p)->funcs.release( p ); \
} while ( 0 )
GLfloat GLfloat p

Definition at line 113 of file t42parse.c.

Referenced by t42_loader_done().

◆ T1_Skip_PS_Token

#define T1_Skip_PS_Token (   p)    (p)->root.funcs.skip_PS_token( &(p)->root )

Definition at line 121 of file t42parse.c.

Referenced by t42_parse_dict().

◆ T1_Skip_Spaces

#define T1_Skip_Spaces (   p)    (p)->root.funcs.skip_spaces( &(p)->root )

Definition at line 120 of file t42parse.c.

Referenced by t42_parse_dict().

◆ T1_ToBytes

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

Definition at line 125 of file t42parse.c.

◆ T1_ToFixedArray

#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.

◆ T1_ToInt

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

Definition at line 123 of file t42parse.c.

◆ T1_ToToken

#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().

◆ T1CODE [1/4]

#define T1CODE   T1_FIELD_LOCATION_FONT_INFO

◆ T1CODE [2/4]

#define T1CODE   T1_FIELD_LOCATION_FONT_EXTRA

◆ T1CODE [3/4]

#define T1CODE   T1_FIELD_LOCATION_FONT_DICT

◆ T1CODE [4/4]

#define T1CODE   T1_FIELD_LOCATION_BBOX

Typedef Documentation

◆ T42_Load_Status

Enumeration Type Documentation

◆ T42_Load_Status_

Enumerator
BEFORE_START 
BEFORE_TABLE_DIR 
OTHER_TABLES 

Definition at line 482 of file t42parse.c.

Function Documentation

◆ t42_loader_done()

t42_loader_done ( T42_Loader  loader)

Definition at line 1171 of file t42parse.c.

References T1_Release_Table, and t42_parser_done().

◆ t42_loader_init()

t42_loader_init ( T42_Loader  loader,
T42_Face  face 
)

Definition at line 1154 of file t42parse.c.

References FT_LOCAL_DEF, FT_MEM_ZERO, and FT_UNUSED.

◆ t42_parse_dict()

t42_parse_dict ( T42_Face  face,
T42_Loader  loader,
FT_Byte base,
FT_Long  size 
)

◆ t42_parser_done()

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_init ( T42_Parser  parser,
FT_Stream  stream,
FT_Memory  memory,
PSAux_Service  psaux 
)