t1decode.c File Reference

#include <ft2build.h>
#include "t1decode.h"
#include "psobjs.h"
#include "psauxerr.h"

Go to the source code of this file.

Defines

#define FT_COMPONENT   trace_t1decode
#define start_point   t1_builder_start_point
#define check_points   t1_builder_check_points
#define add_point   t1_builder_add_point
#define add_point1   t1_builder_add_point1
#define add_contour   t1_builder_add_contour
#define close_contour   t1_builder_close_contour

Typedefs

typedef enum T1_Operator_ T1_Operator

Enumerations

enum  T1_Operator_

Functions

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)
 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)
 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_done (T1_Decoder decoder)

Variables

static const FT_Int t1_args_count [op_max]


Define Documentation

#define add_contour   t1_builder_add_contour

#define add_point   t1_builder_add_point

Referenced by t1_decoder_parse_charstrings().

#define add_point1   t1_builder_add_point1

Referenced by t1_decoder_parse_charstrings().

#define check_points   t1_builder_check_points

Referenced by cff_builder_add_point1(), cff_decoder_parse_charstrings(), check_points(), and t1_decoder_parse_charstrings().

#define close_contour   t1_builder_close_contour

Referenced by t1_decoder_parse_charstrings().

#define FT_COMPONENT   trace_t1decode

Definition at line 39 of file t1decode.c.

#define start_point   t1_builder_start_point

Referenced by af_loader_load_g(), draw_transp_bevel_line(), load_truetype_glyph(), and t1_decoder_parse_charstrings().


Typedef Documentation

typedef enum T1_Operator_ T1_Operator


Enumeration Type Documentation

enum T1_Operator_

Definition at line 42 of file t1decode.c.


Function Documentation

t1_decoder_done ( T1_Decoder  decoder  ) 

Definition at line 1586 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 
)

Definition at line 1538 of file t1decode.c.

References FT_ERROR, FT_FACE_FIND_GLOBAL_SERVICE, FT_MEM_ZERO, t1_builder_init(), and t1_decoder_funcs.

t1_decoder_parse_charstrings ( T1_Decoder  decoder,
FT_Byte charstring_base,
FT_UInt  charstring_len 
)

Definition at line 354 of file t1decode.c.

References add_point, add_point1, T1_BuilderRec_::advance, T1_Hints_FuncsRec_::apply, T1_Decoder_ZoneRec_::base, check_points, T1_Hints_FuncsRec_::close, close_contour, T1_BuilderRec_::current, T1_Decoder_ZoneRec_::cursor, error, FALSE, 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, 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, routine, seed, start_point, T1_Hints_FuncsRec_::stem, T1_Hints_FuncsRec_::stem3, t1_args_count, 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(), top(), TRUE, value, PS_BlendRec_::weight_vector, FT_Vector_::x, x, x10000L, XXX, FT_Vector_::y, y, and zones().

t1_decoder_parse_glyph ( T1_Decoder  decoder,
FT_UInt  glyph 
)

Definition at line 1529 of file t1decode.c.

Referenced by t1operator_seac().

static FT_Int t1_lookup_glyph_by_stdcharcode ( T1_Decoder  decoder,
FT_Int  charcode 
) [static]

Definition at line 129 of file t1decode.c.

References ft_strcmp, T1_DecoderRec_::glyph_names, if(), n, name, T1_DecoderRec_::num_glyphs, and T1_DecoderRec_::psnames.

Referenced by t1operator_seac().

static FT_Error t1operator_seac ( T1_Decoder  decoder,
FT_Pos  asb,
FT_Pos  adx,
FT_Pos  ady,
FT_Int  bchar,
FT_Int  achar 
) [static]

Definition at line 184 of file t1decode.c.

References T1_BuilderRec_::advance, T1_BuilderRec_::base, T1_DecoderRec_::builder, error, T1_BuilderRec_::face, FALSE, FIXED_TO_INT, FT_GlyphSlotRec_::format, FT_ERROR, FT_GLYPH_FORMAT_COMPOSITE, FT_GlyphLoader_CheckSubGlyphs(), FT_GlyphLoader_Prepare(), FT_SUBGLYPH_FLAG_ARGS_ARE_XY_VALUES, FT_SUBGLYPH_FLAG_USE_MY_METRICS, T1_BuilderRec_::glyph, T1_DecoderRec_::glyph_names, if(), FT_GlyphSlotRec_::internal, T1_BuilderRec_::left_bearing, FT_Slot_InternalRec_::loader, T1_BuilderRec_::loader, T1_BuilderRec_::no_recurse, FT_GlyphSlotRec_::num_subglyphs, T1_BuilderRec_::pos_x, T1_BuilderRec_::pos_y, T1_DecoderRec_::seac, FT_GlyphSlotRec_::subglyphs, t1_decoder_parse_glyph(), t1_lookup_glyph_by_stdcharcode(), TRUE, FT_Vector_::x, and FT_Vector_::y.

Referenced by t1_decoder_parse_charstrings().


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 78 of file t1decode.c.

Referenced by t1_decoder_parse_charstrings().


Generated on Tue Jul 5 15:58:24 2011 for ROOT_528-00b_version by  doxygen 1.5.1