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
psaux.h File Reference
#include <ft2build.h>

Go to the source code of this file.

Classes

struct  PS_Table_FuncsRec_
 
struct  PS_TableRec_
 
struct  T1_TokenRec_
 
struct  T1_FieldRec_
 
struct  PS_Parser_FuncsRec_
 
struct  PS_ParserRec_
 
struct  T1_Builder_FuncsRec_
 
struct  T1_BuilderRec_
 
struct  T1_Decoder_ZoneRec_
 
struct  T1_Decoder_FuncsRec_
 
struct  T1_DecoderRec_
 
struct  AFM_Parser_FuncsRec_
 
struct  AFM_ParserRec_
 
struct  T1_CMap_ClassesRec_
 
struct  PSAux_ServiceRec_
 

Macros

#define T1_FIELD_DICT_FONTDICT   ( 1 << 0 ) /* also FontInfo and FDArray */
 
#define T1_FIELD_DICT_PRIVATE   ( 1 << 1 )
 
#define T1_NEW_SIMPLE_FIELD(_ident, _type, _fname, _dict)
 
#define T1_NEW_CALLBACK_FIELD(_ident, _reader, _dict)
 
#define T1_NEW_TABLE_FIELD(_ident, _type, _fname, _max, _dict)
 
#define T1_NEW_TABLE_FIELD2(_ident, _type, _fname, _max, _dict)
 
#define T1_FIELD_BOOL(_ident, _fname, _dict)   T1_NEW_SIMPLE_FIELD( _ident, T1_FIELD_TYPE_BOOL, _fname, _dict )
 
#define T1_FIELD_NUM(_ident, _fname, _dict)   T1_NEW_SIMPLE_FIELD( _ident, T1_FIELD_TYPE_INTEGER, _fname, _dict )
 
#define T1_FIELD_FIXED(_ident, _fname, _dict)   T1_NEW_SIMPLE_FIELD( _ident, T1_FIELD_TYPE_FIXED, _fname, _dict )
 
#define T1_FIELD_FIXED_1000(_ident, _fname, _dict)
 
#define T1_FIELD_STRING(_ident, _fname, _dict)   T1_NEW_SIMPLE_FIELD( _ident, T1_FIELD_TYPE_STRING, _fname, _dict )
 
#define T1_FIELD_KEY(_ident, _fname, _dict)   T1_NEW_SIMPLE_FIELD( _ident, T1_FIELD_TYPE_KEY, _fname, _dict )
 
#define T1_FIELD_BBOX(_ident, _fname, _dict)   T1_NEW_SIMPLE_FIELD( _ident, T1_FIELD_TYPE_BBOX, _fname, _dict )
 
#define T1_FIELD_NUM_TABLE(_ident, _fname, _fmax, _dict)
 
#define T1_FIELD_FIXED_TABLE(_ident, _fname, _fmax, _dict)
 
#define T1_FIELD_NUM_TABLE2(_ident, _fname, _fmax, _dict)
 
#define T1_FIELD_FIXED_TABLE2(_ident, _fname, _fmax, _dict)
 
#define T1_FIELD_CALLBACK(_ident, _name, _dict)   T1_NEW_CALLBACK_FIELD( _ident, _name, _dict )
 
#define IS_PS_NEWLINE(ch)
 
#define IS_PS_SPACE(ch)
 
#define IS_PS_SPECIAL(ch)
 
#define IS_PS_DELIM(ch)
 
#define IS_PS_DIGIT(ch)   ( (ch) >= '0' && (ch) <= '9' )
 
#define IS_PS_XDIGIT(ch)
 
#define IS_PS_BASE85(ch)   ( (ch) >= '!' && (ch) <= 'u' )
 
#define IS_PS_TOKEN(cur, limit, token)
 

Typedefs

typedef typedefFT_BEGIN_HEADER struct PS_TableRec_PS_Table
 
typedef const struct PS_Table_FuncsRec_PS_Table_Funcs
 
typedef struct PS_Table_FuncsRec_ PS_Table_FuncsRec
 
typedef struct PS_TableRec_ PS_TableRec
 
typedef struct PS_ParserRec_PS_Parser
 
typedef struct T1_TokenRec_T1_Token
 
typedef struct T1_FieldRec_T1_Field
 
typedef enum T1_TokenType_ T1_TokenType
 
typedef struct T1_TokenRec_ T1_TokenRec
 
typedef enum T1_FieldType_ T1_FieldType
 
typedef enum T1_FieldLocation_ T1_FieldLocation
 
typedef void(* T1_Field_ParseFunc) (FT_Face face, FT_Pointer parser)
 
typedef struct T1_FieldRec_ T1_FieldRec
 
typedef const struct PS_Parser_FuncsRec_PS_Parser_Funcs
 
typedef struct PS_Parser_FuncsRec_ PS_Parser_FuncsRec
 
typedef struct PS_ParserRec_ PS_ParserRec
 
typedef struct T1_BuilderRec_T1_Builder
 
typedef FT_Error(* T1_Builder_Check_Points_Func) (T1_Builder builder, FT_Int count)
 
typedef void(* T1_Builder_Add_Point_Func) (T1_Builder builder, FT_Pos x, FT_Pos y, FT_Byte flag)
 
typedef FT_Error(* T1_Builder_Add_Point1_Func) (T1_Builder builder, FT_Pos x, FT_Pos y)
 
typedef FT_Error(* T1_Builder_Add_Contour_Func) (T1_Builder builder)
 
typedef FT_Error(* T1_Builder_Start_Point_Func) (T1_Builder builder, FT_Pos x, FT_Pos y)
 
typedef void(* T1_Builder_Close_Contour_Func) (T1_Builder builder)
 
typedef const struct T1_Builder_FuncsRec_T1_Builder_Funcs
 
typedef struct T1_Builder_FuncsRec_ T1_Builder_FuncsRec
 
typedef enum T1_ParseState_ T1_ParseState
 
typedef struct T1_BuilderRec_ T1_BuilderRec
 
typedef struct T1_Decoder_ZoneRec_ T1_Decoder_ZoneRec
 
typedef struct T1_Decoder_ZoneRec_T1_Decoder_Zone
 
typedef struct T1_DecoderRec_T1_Decoder
 
typedef const struct T1_Decoder_FuncsRec_T1_Decoder_Funcs
 
typedef FT_Error(* T1_Decoder_Callback) (T1_Decoder decoder, FT_UInt glyph_index)
 
typedef struct T1_Decoder_FuncsRec_ T1_Decoder_FuncsRec
 
typedef struct T1_DecoderRec_ T1_DecoderRec
 
typedef struct AFM_ParserRec_AFM_Parser
 
typedef struct AFM_Parser_FuncsRec_ AFM_Parser_FuncsRec
 
typedef struct AFM_StreamRec_ * AFM_Stream
 
typedef struct AFM_ParserRec_ AFM_ParserRec
 
typedef const struct T1_CMap_ClassesRec_T1_CMap_Classes
 
typedef struct T1_CMap_ClassesRec_ T1_CMap_ClassesRec
 
typedef struct PSAux_ServiceRec_ PSAux_ServiceRec
 
typedef struct PSAux_ServiceRec_PSAux_Service
 
typedef PSAux_ServiceRec PSAux_Interface
 

Enumerations

enum  T1_TokenType_ {
  T1_TOKEN_TYPE_NONE = 0, T1_TOKEN_TYPE_ANY, T1_TOKEN_TYPE_STRING, T1_TOKEN_TYPE_ARRAY,
  T1_TOKEN_TYPE_KEY, T1_TOKEN_TYPE_MAX
}
 
enum  T1_FieldType_ {
  T1_FIELD_TYPE_NONE = 0, T1_FIELD_TYPE_BOOL, T1_FIELD_TYPE_INTEGER, T1_FIELD_TYPE_FIXED,
  T1_FIELD_TYPE_FIXED_1000, T1_FIELD_TYPE_STRING, T1_FIELD_TYPE_KEY, T1_FIELD_TYPE_BBOX,
  T1_FIELD_TYPE_MM_BBOX, T1_FIELD_TYPE_INTEGER_ARRAY, T1_FIELD_TYPE_FIXED_ARRAY, T1_FIELD_TYPE_CALLBACK,
  T1_FIELD_TYPE_MAX
}
 
enum  T1_FieldLocation_ {
  T1_FIELD_LOCATION_CID_INFO, T1_FIELD_LOCATION_FONT_DICT, T1_FIELD_LOCATION_FONT_EXTRA, T1_FIELD_LOCATION_FONT_INFO,
  T1_FIELD_LOCATION_PRIVATE, T1_FIELD_LOCATION_BBOX, T1_FIELD_LOCATION_LOADER, T1_FIELD_LOCATION_FACE,
  T1_FIELD_LOCATION_BLEND, T1_FIELD_LOCATION_MAX
}
 
enum  T1_ParseState_ { T1_Parse_Start, T1_Parse_Have_Width, T1_Parse_Have_Moveto, T1_Parse_Have_Path }
 

Macro Definition Documentation

◆ IS_PS_BASE85

#define IS_PS_BASE85 (   ch)    ( (ch) >= '!' && (ch) <= 'u' )

Definition at line 861 of file psaux.h.

◆ IS_PS_DELIM

#define IS_PS_DELIM (   ch)
Value:
( IS_PS_SPACE( ch ) || \
IS_PS_SPECIAL( ch ) )
#define IS_PS_SPACE(ch)
Definition: psaux.h:834

Definition at line 849 of file psaux.h.

◆ IS_PS_DIGIT

#define IS_PS_DIGIT (   ch)    ( (ch) >= '0' && (ch) <= '9' )

Definition at line 853 of file psaux.h.

Referenced by PS_Conv_ToFixed().

◆ IS_PS_NEWLINE

#define IS_PS_NEWLINE (   ch)
Value:
( (ch) == '\r' || \
(ch) == '\n' )

Definition at line 830 of file psaux.h.

◆ IS_PS_SPACE

#define IS_PS_SPACE (   ch)
Value:
( (ch) == ' ' || \
IS_PS_NEWLINE( ch ) || \
(ch) == '\t' || \
(ch) == '\f' || \
(ch) == '\0' )
#define IS_PS_NEWLINE(ch)
Definition: psaux.h:830

Definition at line 834 of file psaux.h.

Referenced by PS_Conv_ASCIIHexDecode(), PS_Conv_Strtol(), and PS_Conv_ToFixed().

◆ IS_PS_SPECIAL

#define IS_PS_SPECIAL (   ch)
Value:
( (ch) == '/' || \
(ch) == '(' || (ch) == ')' || \
(ch) == '<' || (ch) == '>' || \
(ch) == '[' || (ch) == ']' || \
(ch) == '{' || (ch) == '}' || \
(ch) == '%' )

Definition at line 841 of file psaux.h.

◆ IS_PS_TOKEN

#define IS_PS_TOKEN (   cur,
  limit,
  token 
)
Value:
( (char)(cur)[0] == (token)[0] && \
( (cur) + sizeof ( (token) ) == (limit) || \
( (cur) + sizeof( (token) ) < (limit) && \
IS_PS_DELIM( (cur)[sizeof ( (token) ) - 1] ) ) ) && \
ft_strncmp( (char*)(cur), (token), sizeof ( (token) ) - 1 ) == 0 )
#define ft_strncmp
Definition: ftstdlib.h:88
#define IS_PS_DELIM(ch)
Definition: psaux.h:849
GLint limit

Definition at line 864 of file psaux.h.

◆ IS_PS_XDIGIT

#define IS_PS_XDIGIT (   ch)
Value:
( IS_PS_DIGIT( ch ) || \
( (ch) >= 'A' && (ch) <= 'F' ) || \
( (ch) >= 'a' && (ch) <= 'f' ) )
#define IS_PS_DIGIT(ch)
Definition: psaux.h:853

Definition at line 856 of file psaux.h.

◆ T1_FIELD_BBOX

#define T1_FIELD_BBOX (   _ident,
  _fname,
  _dict 
)    T1_NEW_SIMPLE_FIELD( _ident, T1_FIELD_TYPE_BBOX, _fname, _dict )

Definition at line 308 of file psaux.h.

◆ T1_FIELD_BOOL

#define T1_FIELD_BOOL (   _ident,
  _fname,
  _dict 
)    T1_NEW_SIMPLE_FIELD( _ident, T1_FIELD_TYPE_BOOL, _fname, _dict )

Definition at line 289 of file psaux.h.

◆ T1_FIELD_CALLBACK

#define T1_FIELD_CALLBACK (   _ident,
  _name,
  _dict 
)    T1_NEW_CALLBACK_FIELD( _ident, _name, _dict )

Definition at line 328 of file psaux.h.

◆ T1_FIELD_DICT_FONTDICT

#define T1_FIELD_DICT_FONTDICT   ( 1 << 0 ) /* also FontInfo and FDArray */

Definition at line 243 of file psaux.h.

◆ T1_FIELD_DICT_PRIVATE

#define T1_FIELD_DICT_PRIVATE   ( 1 << 1 )

Definition at line 244 of file psaux.h.

◆ T1_FIELD_FIXED

#define T1_FIELD_FIXED (   _ident,
  _fname,
  _dict 
)    T1_NEW_SIMPLE_FIELD( _ident, T1_FIELD_TYPE_FIXED, _fname, _dict )

Definition at line 295 of file psaux.h.

◆ T1_FIELD_FIXED_1000

#define T1_FIELD_FIXED_1000 (   _ident,
  _fname,
  _dict 
)
Value:
_dict )
#define T1_NEW_SIMPLE_FIELD(_ident, _type, _fname, _dict)
Definition: psaux.h:248

Definition at line 298 of file psaux.h.

◆ T1_FIELD_FIXED_TABLE

#define T1_FIELD_FIXED_TABLE (   _ident,
  _fname,
  _fmax,
  _dict 
)
Value:
_fname, _fmax, _dict )
#define T1_NEW_TABLE_FIELD(_ident, _type, _fname, _max, _dict)
Definition: psaux.h:267

Definition at line 316 of file psaux.h.

◆ T1_FIELD_FIXED_TABLE2

#define T1_FIELD_FIXED_TABLE2 (   _ident,
  _fname,
  _fmax,
  _dict 
)
Value:
_fname, _fmax, _dict )
#define T1_NEW_TABLE_FIELD2(_ident, _type, _fname, _max, _dict)
Definition: psaux.h:278

Definition at line 324 of file psaux.h.

◆ T1_FIELD_KEY

#define T1_FIELD_KEY (   _ident,
  _fname,
  _dict 
)    T1_NEW_SIMPLE_FIELD( _ident, T1_FIELD_TYPE_KEY, _fname, _dict )

Definition at line 305 of file psaux.h.

◆ T1_FIELD_NUM

#define T1_FIELD_NUM (   _ident,
  _fname,
  _dict 
)    T1_NEW_SIMPLE_FIELD( _ident, T1_FIELD_TYPE_INTEGER, _fname, _dict )

Definition at line 292 of file psaux.h.

◆ T1_FIELD_NUM_TABLE

#define T1_FIELD_NUM_TABLE (   _ident,
  _fname,
  _fmax,
  _dict 
)
Value:
_fname, _fmax, _dict )
#define T1_NEW_TABLE_FIELD(_ident, _type, _fname, _max, _dict)
Definition: psaux.h:267

Definition at line 312 of file psaux.h.

◆ T1_FIELD_NUM_TABLE2

#define T1_FIELD_NUM_TABLE2 (   _ident,
  _fname,
  _fmax,
  _dict 
)
Value:
_fname, _fmax, _dict )
#define T1_NEW_TABLE_FIELD2(_ident, _type, _fname, _max, _dict)
Definition: psaux.h:278

Definition at line 320 of file psaux.h.

◆ T1_FIELD_STRING

#define T1_FIELD_STRING (   _ident,
  _fname,
  _dict 
)    T1_NEW_SIMPLE_FIELD( _ident, T1_FIELD_TYPE_STRING, _fname, _dict )

Definition at line 302 of file psaux.h.

◆ T1_NEW_CALLBACK_FIELD

#define T1_NEW_CALLBACK_FIELD (   _ident,
  _reader,
  _dict 
)
Value:
{ \
(T1_Field_ParseFunc)_reader, \
0, 0, \
0, 0, \
_dict \
},
void(* T1_Field_ParseFunc)(FT_Face face, FT_Pointer parser)
Definition: psaux.h:219
#define T1CODE

Definition at line 258 of file psaux.h.

◆ T1_NEW_SIMPLE_FIELD

#define T1_NEW_SIMPLE_FIELD (   _ident,
  _type,
  _fname,
  _dict 
)
Value:
{ \
_ident, T1CODE, _type, \
0, \
FT_FIELD_OFFSET( _fname ), \
FT_FIELD_SIZE( _fname ), \
0, 0, \
_dict \
},
#define T1CODE

Definition at line 248 of file psaux.h.

◆ T1_NEW_TABLE_FIELD

#define T1_NEW_TABLE_FIELD (   _ident,
  _type,
  _fname,
  _max,
  _dict 
)
Value:
{ \
_ident, T1CODE, _type, \
0, \
FT_FIELD_OFFSET( _fname ), \
FT_FIELD_SIZE_DELTA( _fname ), \
_max, \
FT_FIELD_OFFSET( num_ ## _fname ), \
_dict \
},
#define T1CODE

Definition at line 267 of file psaux.h.

◆ T1_NEW_TABLE_FIELD2

#define T1_NEW_TABLE_FIELD2 (   _ident,
  _type,
  _fname,
  _max,
  _dict 
)
Value:
{ \
_ident, T1CODE, _type, \
0, \
FT_FIELD_OFFSET( _fname ), \
FT_FIELD_SIZE_DELTA( _fname ), \
_max, 0, \
_dict \
},
#define T1CODE

Definition at line 278 of file psaux.h.

Typedef Documentation

◆ AFM_Parser

typedef struct AFM_ParserRec_* AFM_Parser

Definition at line 712 of file psaux.h.

◆ AFM_Parser_FuncsRec

◆ AFM_ParserRec

typedef struct AFM_ParserRec_ AFM_ParserRec

◆ AFM_Stream

typedef struct AFM_StreamRec_* AFM_Stream

Definition at line 731 of file psaux.h.

◆ PS_Parser

typedef struct PS_ParserRec_* PS_Parser

Definition at line 146 of file psaux.h.

◆ PS_Parser_Funcs

Definition at line 340 of file psaux.h.

◆ PS_Parser_FuncsRec

◆ PS_ParserRec

typedef struct PS_ParserRec_ PS_ParserRec

◆ PS_Table

typedef typedefFT_BEGIN_HEADER struct PS_TableRec_* PS_Table

Definition at line 42 of file psaux.h.

◆ PS_Table_Funcs

Definition at line 43 of file psaux.h.

◆ PS_Table_FuncsRec

◆ PS_TableRec

typedef struct PS_TableRec_ PS_TableRec

◆ PSAux_Interface

Definition at line 819 of file psaux.h.

◆ PSAux_Service

typedef struct PSAux_ServiceRec_ * PSAux_Service

◆ PSAux_ServiceRec

◆ T1_Builder

typedef struct T1_BuilderRec_* T1_Builder

Definition at line 450 of file psaux.h.

◆ T1_Builder_Add_Contour_Func

typedef FT_Error(* T1_Builder_Add_Contour_Func) (T1_Builder builder)

Definition at line 469 of file psaux.h.

◆ T1_Builder_Add_Point1_Func

typedef FT_Error(* T1_Builder_Add_Point1_Func) (T1_Builder builder, FT_Pos x, FT_Pos y)

Definition at line 464 of file psaux.h.

◆ T1_Builder_Add_Point_Func

typedef void(* T1_Builder_Add_Point_Func) (T1_Builder builder, FT_Pos x, FT_Pos y, FT_Byte flag)

Definition at line 458 of file psaux.h.

◆ T1_Builder_Check_Points_Func

typedef FT_Error(* T1_Builder_Check_Points_Func) (T1_Builder builder, FT_Int count)

Definition at line 454 of file psaux.h.

◆ T1_Builder_Close_Contour_Func

typedef void(* T1_Builder_Close_Contour_Func) (T1_Builder builder)

Definition at line 477 of file psaux.h.

◆ T1_Builder_Funcs

Definition at line 480 of file psaux.h.

◆ T1_Builder_FuncsRec

◆ T1_Builder_Start_Point_Func

typedef FT_Error(* T1_Builder_Start_Point_Func) (T1_Builder builder, FT_Pos x, FT_Pos y)

Definition at line 472 of file psaux.h.

◆ T1_BuilderRec

typedef struct T1_BuilderRec_ T1_BuilderRec

◆ T1_CMap_Classes

Definition at line 778 of file psaux.h.

◆ T1_CMap_ClassesRec

◆ T1_Decoder

typedef struct T1_DecoderRec_* T1_Decoder

Definition at line 630 of file psaux.h.

◆ T1_Decoder_Callback

typedef FT_Error(* T1_Decoder_Callback) (T1_Decoder decoder, FT_UInt glyph_index)

Definition at line 635 of file psaux.h.

◆ T1_Decoder_Funcs

Definition at line 631 of file psaux.h.

◆ T1_Decoder_FuncsRec

◆ T1_Decoder_Zone

◆ T1_Decoder_ZoneRec

◆ T1_DecoderRec

typedef struct T1_DecoderRec_ T1_DecoderRec

◆ T1_Field

typedef struct T1_FieldRec_* T1_Field

Definition at line 150 of file psaux.h.

◆ T1_Field_ParseFunc

typedef void(* T1_Field_ParseFunc) (FT_Face face, FT_Pointer parser)

Definition at line 219 of file psaux.h.

◆ T1_FieldLocation

◆ T1_FieldRec

typedef struct T1_FieldRec_ T1_FieldRec

◆ T1_FieldType

◆ T1_ParseState

◆ T1_Token

typedef struct T1_TokenRec_* T1_Token

Definition at line 148 of file psaux.h.

◆ T1_TokenRec

typedef struct T1_TokenRec_ T1_TokenRec

◆ T1_TokenType

Enumeration Type Documentation

◆ T1_FieldLocation_

Enumerator
T1_FIELD_LOCATION_CID_INFO 
T1_FIELD_LOCATION_FONT_DICT 
T1_FIELD_LOCATION_FONT_EXTRA 
T1_FIELD_LOCATION_FONT_INFO 
T1_FIELD_LOCATION_PRIVATE 
T1_FIELD_LOCATION_BBOX 
T1_FIELD_LOCATION_LOADER 
T1_FIELD_LOCATION_FACE 
T1_FIELD_LOCATION_BLEND 
T1_FIELD_LOCATION_MAX 

Definition at line 200 of file psaux.h.

◆ T1_FieldType_

Enumerator
T1_FIELD_TYPE_NONE 
T1_FIELD_TYPE_BOOL 
T1_FIELD_TYPE_INTEGER 
T1_FIELD_TYPE_FIXED 
T1_FIELD_TYPE_FIXED_1000 
T1_FIELD_TYPE_STRING 
T1_FIELD_TYPE_KEY 
T1_FIELD_TYPE_BBOX 
T1_FIELD_TYPE_MM_BBOX 
T1_FIELD_TYPE_INTEGER_ARRAY 
T1_FIELD_TYPE_FIXED_ARRAY 
T1_FIELD_TYPE_CALLBACK 
T1_FIELD_TYPE_MAX 

Definition at line 179 of file psaux.h.

◆ T1_ParseState_

Enumerator
T1_Parse_Start 
T1_Parse_Have_Width 
T1_Parse_Have_Moveto 
T1_Parse_Have_Path 

Definition at line 505 of file psaux.h.

◆ T1_TokenType_

Enumerator
T1_TOKEN_TYPE_NONE 
T1_TOKEN_TYPE_ANY 
T1_TOKEN_TYPE_STRING 
T1_TOKEN_TYPE_ARRAY 
T1_TOKEN_TYPE_KEY 
T1_TOKEN_TYPE_MAX 

Definition at line 154 of file psaux.h.