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
psobjs.c File Reference
#include <ft2build.h>
#include "psobjs.h"
#include "psconv.h"
#include "psauxerr.h"

Go to the source code of this file.

Macros

#define FT_COMPONENT   trace_psobjs
 
#define IS_OCTAL_DIGIT(c)   ( '0' <= (c) && (c) <= '7' )
 
#define T1_MAX_TABLE_ELEMENTS   32
 

Functions

 ps_table_new (PS_Table table, FT_Int count, FT_Memory memory)
 
 ps_table_add (PS_Table table, FT_Int idx, void *object, FT_PtrDist length)
 
 ps_table_done (PS_Table table)
 
 ps_table_release (PS_Table table)
 
 ps_parser_skip_PS_token (PS_Parser parser)
 
 ps_parser_skip_spaces (PS_Parser parser)
 
 ps_parser_to_token (PS_Parser parser, T1_Token token)
 
 ps_parser_to_token_array (PS_Parser parser, T1_Token tokens, FT_UInt max_tokens, FT_Int *pnum_tokens)
 
 ps_parser_load_field (PS_Parser parser, const T1_Field field, void **objects, FT_UInt max_objects, FT_ULong *pflags)
 
 ps_parser_load_field_table (PS_Parser parser, const T1_Field field, void **objects, FT_UInt max_objects, FT_ULong *pflags)
 
 ps_parser_to_int (PS_Parser parser)
 
 ps_parser_to_bytes (PS_Parser parser, FT_Byte *bytes, FT_Offset max_bytes, FT_Long *pnum_bytes, FT_Bool delimiters)
 
 ps_parser_to_fixed (PS_Parser parser, FT_Int power_ten)
 
 ps_parser_to_coord_array (PS_Parser parser, FT_Int max_coords, FT_Short *coords)
 
 ps_parser_to_fixed_array (PS_Parser parser, FT_Int max_values, FT_Fixed *values, FT_Int power_ten)
 
 ps_parser_init (PS_Parser parser, FT_Byte *base, FT_Byte *limit, FT_Memory memory)
 
 ps_parser_done (PS_Parser parser)
 
 t1_builder_init (T1_Builder builder, FT_Face face, FT_Size size, FT_GlyphSlot glyph, FT_Bool hinting)
 
 t1_builder_done (T1_Builder builder)
 
 t1_builder_check_points (T1_Builder builder, FT_Int count)
 
 t1_builder_add_point (T1_Builder builder, FT_Pos x, FT_Pos y, FT_Byte flag)
 
 t1_builder_add_point1 (T1_Builder builder, FT_Pos x, FT_Pos y)
 
 t1_builder_add_contour (T1_Builder builder)
 
 t1_builder_start_point (T1_Builder builder, FT_Pos x, FT_Pos y)
 
 t1_builder_close_contour (T1_Builder builder)
 
 t1_decrypt (FT_Byte *buffer, FT_Offset length, FT_UShort seed)
 

Macro Definition Documentation

◆ FT_COMPONENT

#define FT_COMPONENT   trace_psobjs

Definition at line 37 of file psobjs.c.

◆ IS_OCTAL_DIGIT

#define IS_OCTAL_DIGIT (   c)    ( '0' <= (c) && (c) <= '7' )

Definition at line 332 of file psobjs.c.

◆ T1_MAX_TABLE_ELEMENTS

#define T1_MAX_TABLE_ELEMENTS   32

Definition at line 1290 of file psobjs.c.

Referenced by ps_parser_load_field_table().

Function Documentation

◆ ps_parser_done()

ps_parser_done ( PS_Parser  parser)

Definition at line 1487 of file psobjs.c.

References FT_LOCAL_DEF, and FT_UNUSED.

◆ ps_parser_init()

ps_parser_init ( PS_Parser  parser,
FT_Byte base,
FT_Byte limit,
FT_Memory  memory 
)

◆ ps_parser_load_field()

ps_parser_load_field ( PS_Parser  parser,
const T1_Field  field,
void **  objects,
FT_UInt  max_objects,
FT_ULong pflags 
)

◆ ps_parser_load_field_table()

ps_parser_load_field_table ( PS_Parser  parser,
const T1_Field  field,
void **  objects,
FT_UInt  max_objects,
FT_ULong pflags 
)

◆ ps_parser_skip_PS_token()

ps_parser_skip_PS_token ( PS_Parser  parser)

Definition at line 514 of file psobjs.c.

References error, FT_ERROR, FT_LOCAL_DEF, and FT_THROW().

◆ ps_parser_skip_spaces()

ps_parser_skip_spaces ( PS_Parser  parser)

◆ ps_parser_to_bytes()

ps_parser_to_bytes ( PS_Parser  parser,
FT_Byte bytes,
FT_Offset  max_bytes,
FT_Long pnum_bytes,
FT_Bool  delimiters 
)

◆ ps_parser_to_coord_array()

ps_parser_to_coord_array ( PS_Parser  parser,
FT_Int  max_coords,
FT_Short coords 
)

Definition at line 1431 of file psobjs.c.

References ps_parser_skip_spaces().

◆ ps_parser_to_fixed()

ps_parser_to_fixed ( PS_Parser  parser,
FT_Int  power_ten 
)

Definition at line 1422 of file psobjs.c.

References FT_LOCAL_DEF, PS_Conv_ToFixed(), and ps_parser_skip_spaces().

◆ ps_parser_to_fixed_array()

ps_parser_to_fixed_array ( PS_Parser  parser,
FT_Int  max_values,
FT_Fixed values,
FT_Int  power_ten 
)

Definition at line 1442 of file psobjs.c.

References ps_parser_skip_spaces().

◆ ps_parser_to_int()

ps_parser_to_int ( PS_Parser  parser)

Definition at line 1359 of file psobjs.c.

References FT_LOCAL_DEF, PS_Conv_ToInt(), and ps_parser_skip_spaces().

◆ ps_parser_to_token()

ps_parser_to_token ( PS_Parser  parser,
T1_Token  token 
)

◆ ps_parser_to_token_array()

ps_parser_to_token_array ( PS_Parser  parser,
T1_Token  tokens,
FT_UInt  max_tokens,
FT_Int pnum_tokens 
)

◆ ps_table_add()

ps_table_add ( PS_Table  table,
FT_Int  idx,
void object,
FT_PtrDist  length 
)

Definition at line 168 of file psobjs.c.

References error, FT_ERROR, FT_PAD_CEIL, FT_THROW(), and if().

◆ ps_table_done()

ps_table_done ( PS_Table  table)

Definition at line 240 of file psobjs.c.

References error, FT_ALLOC, and FT_MEM_COPY.

◆ ps_table_new()

ps_table_new ( PS_Table  table,
FT_Int  count,
FT_Memory  memory 
)

Definition at line 69 of file psobjs.c.

References error, FT_FREE, FT_NEW_ARRAY, if(), and ps_table_funcs.

◆ ps_table_release()

ps_table_release ( PS_Table  table)

Definition at line 264 of file psobjs.c.

References FT_FREE.

◆ t1_builder_add_contour()

t1_builder_add_contour ( T1_Builder  builder)

◆ t1_builder_add_point()

t1_builder_add_point ( T1_Builder  builder,
FT_Pos  x,
FT_Pos  y,
FT_Byte  flag 
)

◆ t1_builder_add_point1()

t1_builder_add_point1 ( T1_Builder  builder,
FT_Pos  x,
FT_Pos  y 
)

Definition at line 1623 of file psobjs.c.

References error, FT_LOCAL_DEF, t1_builder_add_point(), and t1_builder_check_points().

Referenced by t1_builder_start_point().

◆ t1_builder_check_points()

t1_builder_check_points ( T1_Builder  builder,
FT_Int  count 
)

Definition at line 1590 of file psobjs.c.

References FT_GLYPHLOADER_CHECK_POINTS, and FT_LOCAL_DEF.

Referenced by t1_builder_add_point1(), and t1_decoder_parse_charstrings().

◆ t1_builder_close_contour()

t1_builder_close_contour ( T1_Builder  builder)

◆ t1_builder_done()

t1_builder_done ( T1_Builder  builder)

Definition at line 1578 of file psobjs.c.

References FT_LOCAL_DEF, and FT_GlyphSlotRec_::outline.

Referenced by t1_decoder_done().

◆ t1_builder_init()

t1_builder_init ( T1_Builder  builder,
FT_Face  face,
FT_Size  size,
FT_GlyphSlot  glyph,
FT_Bool  hinting 
)

Definition at line 1522 of file psobjs.c.

References FT_GlyphLoader_Rewind(), FT_LOCAL_DEF, t1_builder_funcs, and T1_Parse_Start.

Referenced by t1_decoder_init().

◆ t1_builder_start_point()

t1_builder_start_point ( T1_Builder  builder,
FT_Pos  x,
FT_Pos  y 
)

◆ t1_decrypt()

t1_decrypt ( FT_Byte buffer,
FT_Offset  length,
FT_UShort  seed 
)

Definition at line 1753 of file psobjs.c.

References PS_Conv_EexecDecode().