zenilib  0.5.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
t1decode.c File Reference
#include <ft2build.h>
#include <FT_INTERNAL_CALC_H>
#include <FT_INTERNAL_DEBUG_H>
#include <FT_INTERNAL_POSTSCRIPT_HINTS_H>
#include <FT_OUTLINE_H>
#include "t1decode.h"
#include "psobjs.h"
#include "psauxerr.h"

Go to the source code of this file.

Macros

#define Fix2Int(f)   ( (FT_Int)(FT_Short)( (f) >> 16 ) )
 
#define FT_COMPONENT   trace_t1decode
 

Typedefs

typedef enum T1_Operator_ T1_Operator
 

Enumerations

enum  T1_Operator_ {
  op_none = 0, op_endchar, op_hsbw, op_seac,
  op_sbw, op_closepath, op_hlineto, op_hmoveto,
  op_hvcurveto, op_rlineto, op_rmoveto, op_rrcurveto,
  op_vhcurveto, op_vlineto, op_vmoveto, op_dotsection,
  op_hstem, op_hstem3, op_vstem, op_vstem3,
  op_div, op_callothersubr, op_callsubr, op_pop,
  op_return, op_setcurrentpoint, op_unknown15, op_max
}
 

Functions

 t1_decoder_done (T1_Decoder decoder)
 
 t1_decoder_init (T1_Decoder decoder, FT_Face face, FT_Size size, FT_GlyphSlot slot, FT_Byte **glyph_names, PS_Blend blend, FT_Bool hinting, FT_Render_Mode hint_mode, T1_Decoder_Callback parse_callback)
 
 t1_decoder_parse_charstrings (T1_Decoder decoder, FT_Byte *charstring_base, FT_UInt charstring_len)
 
 t1_decoder_parse_glyph (T1_Decoder decoder, FT_UInt glyph)
 
static FT_Int t1_lookup_glyph_by_stdcharcode (T1_Decoder decoder, FT_Int charcode)
 
static FT_Error t1operator_seac (T1_Decoder decoder, FT_Pos asb, FT_Pos adx, FT_Pos ady, FT_Int bchar, FT_Int achar)
 

Variables

static const FT_Int t1_args_count [op_max]
 

Macro Definition Documentation

#define Fix2Int (   f)    ( (FT_Int)(FT_Short)( (f) >> 16 ) )

Definition at line 31 of file t1decode.c.

Referenced by t1_decoder_parse_charstrings().

#define FT_COMPONENT   trace_t1decode

Definition at line 40 of file t1decode.c.

Typedef Documentation

typedef enum T1_Operator_ T1_Operator

Enumeration Type Documentation

Enumerator
op_none 
op_endchar 
op_hsbw 
op_seac 
op_sbw 
op_closepath 
op_hlineto 
op_hmoveto 
op_hvcurveto 
op_rlineto 
op_rmoveto 
op_rrcurveto 
op_vhcurveto 
op_vlineto 
op_vmoveto 
op_dotsection 
op_hstem 
op_hstem3 
op_vstem 
op_vstem3 
op_div 
op_callothersubr 
op_callsubr 
op_pop 
op_return 
op_setcurrentpoint 
op_unknown15 
op_max 

Definition at line 43 of file t1decode.c.

Function Documentation

t1_decoder_done ( T1_Decoder  decoder)

Definition at line 1608 of file t1decode.c.

References t1_builder_done().

t1_decoder_init ( T1_Decoder  decoder,
FT_Face  face,
FT_Size  size,
FT_GlyphSlot  slot,
FT_Byte **  glyph_names,
PS_Blend  blend,
FT_Bool  hinting,
FT_Render_Mode  hint_mode,
T1_Decoder_Callback  parse_callback 
)
t1_decoder_parse_charstrings ( T1_Decoder  decoder,
FT_Byte charstring_base,
FT_UInt  charstring_len 
)

Definition at line 355 of file t1decode.c.

References T1_BuilderRec_::advance, T1_Hints_FuncsRec_::apply, T1_Decoder_ZoneRec_::base, T1_Hints_FuncsRec_::close, T1_BuilderRec_::current, T1_Decoder_ZoneRec_::cursor, error, FALSE, Fix2Int, FT_ASSERT, FT_Bool, FT_DivFix(), FT_ERROR, FT_GlyphLoader_Add(), ft_memcpy, ft_memset, FT_MulFix(), FT_Pos, FT_TRACE0, FT_TRACE4, FT_TRACE5, FT_ULONG_MAX, FT_UNUSED, T1_Hints_FuncsRec_::hints, T1_BuilderRec_::hints_funcs, T1_BuilderRec_::hints_globals, i, idx, T1_BuilderRec_::left_bearing, T1_Decoder_ZoneRec_::limit, T1_BuilderRec_::loader, T1_BuilderRec_::metrics_only, FT_Outline_::n_points, NULL, PS_BlendRec_::num_designs, op_callothersubr, op_callsubr, op_closepath, op_div, op_dotsection, op_endchar, op_hlineto, op_hmoveto, op_hsbw, op_hstem, op_hstem3, op_hvcurveto, op_none, op_pop, op_return, op_rlineto, op_rmoveto, op_rrcurveto, op_sbw, op_seac, op_setcurrentpoint, op_unknown15, op_vhcurveto, op_vlineto, op_vmoveto, op_vstem, op_vstem3, T1_Hints_FuncsRec_::open, T1_BuilderRec_::parse_state, T1_BuilderRec_::pos_x, T1_BuilderRec_::pos_y, PostScript(), T1_Hints_FuncsRec_::reset, sizeof(), T1_Hints_FuncsRec_::stem, T1_Hints_FuncsRec_::stem3, t1_args_count, t1_builder_add_point(), t1_builder_add_point1(), t1_builder_check_points(), t1_builder_close_contour(), t1_builder_start_point(), T1_MAX_CHARSTRINGS_OPERANDS, T1_MAX_SUBRS_CALLS, T1_Parse_Have_Moveto, T1_Parse_Have_Path, T1_Parse_Have_Width, T1_Parse_Start, t1operator_seac(), TRUE, PS_BlendRec_::weight_vector, FT_Vector_::x, and FT_Vector_::y.

t1_decoder_parse_glyph ( T1_Decoder  decoder,
FT_UInt  glyph 
)

Definition at line 1551 of file t1decode.c.

Referenced by t1operator_seac().

static FT_Int t1_lookup_glyph_by_stdcharcode ( T1_Decoder  decoder,
FT_Int  charcode 
)
static

Variable Documentation

const FT_Int t1_args_count[op_max]
static
Initial value:
=
{
0,
0,
2,
5,
4,
0,
1,
1,
4,
2,
2,
6,
4,
1,
1,
0,
2,
6,
2,
6,
2,
-1,
1,
0,
0,
2,
2
}

Definition at line 79 of file t1decode.c.

Referenced by t1_decoder_parse_charstrings().