cidload.c File Reference

#include <ft2build.h>
#include "cidload.h"
#include "ciderrs.h"
#include "cidtoken.h"

Go to the source code of this file.

Defines

#define FT_COMPONENT   trace_cidload

Functions

 cid_get_offset (FT_Byte **start, FT_Byte offsize)
static FT_Error cid_load_keyword (CID_Face face, CID_Loader *loader, const T1_Field keyword)
 parse_font_matrix (CID_Face face, CID_Parser *parser)
 parse_fd_array (CID_Face face, CID_Parser *parser)
 parse_expansion_factor (CID_Face face, CID_Parser *parser)
static FT_Error cid_parse_dict (CID_Face face, CID_Loader *loader, FT_Byte *base, FT_Long size)
static FT_Error cid_read_subrs (CID_Face face)
static void t1_init_loader (CID_Loader *loader, CID_Face face)
static void t1_done_loader (CID_Loader *loader)
static FT_Error cid_hex_to_binary (FT_Byte *data, FT_Long data_len, FT_ULong offset, CID_Face face)
 cid_face_open (CID_Face face, FT_Int face_index)

Variables

static const T1_FieldRec cid_field_records []


Define Documentation

#define FT_COMPONENT   trace_cidload

Definition at line 37 of file cidload.c.


Function Documentation

cid_face_open ( CID_Face  face,
FT_Int  face_index 
)

Definition at line 730 of file cidload.c.

Referenced by cid_face_init().

cid_get_offset ( FT_Byte **  start,
FT_Byte  offsize 
)

Definition at line 42 of file cidload.c.

References p, and result().

Referenced by cid_load_glyph(), and cid_parse_dict().

static FT_Error cid_hex_to_binary ( FT_Byte data,
FT_Long  data_len,
FT_ULong  offset,
CID_Face  face 
) [static]

Definition at line 632 of file cidload.c.

static FT_Error cid_load_keyword ( CID_Face  face,
CID_Loader loader,
const T1_Field  keyword 
) [static]

Definition at line 70 of file cidload.c.

References error, CID_FaceInfoRec_::font_bbox, CID_FaceInfoRec_::font_dicts, CID_FaceInfoRec_::font_info, FT_ERROR, T1_FieldRec_::ident, if(), T1_FieldRec_::location, object, T1_FieldRec_::reader, T1_FIELD_LOCATION_BBOX, T1_FIELD_LOCATION_CID_INFO, T1_FIELD_LOCATION_FONT_EXTRA, T1_FIELD_LOCATION_FONT_INFO, T1_FIELD_LOCATION_PRIVATE, T1_FIELD_TYPE_CALLBACK, and T1_FieldRec_::type.

static FT_Error cid_parse_dict ( CID_Face  face,
CID_Loader loader,
FT_Byte base,
FT_Long  size 
) [static]

Definition at line 392 of file cidload.c.

References cid_get_offset(), CID_SubrsRec_::code, CID_FaceInfoRec_::data_offset, CID_FaceInfoRec_::font_dicts, for(), FT_ALLOC, FT_FRAME_ENTER, FT_FRAME_EXIT, FT_NEW_ARRAY, FT_PAD_CEIL, FT_RENEW_ARRAY, FT_STREAM_READ, FT_STREAM_SEEK, if(), lenIV, CID_SubrsRec_::num_subrs, p, PC3::stream(), and PSAux_ServiceRec_::t1_decrypt.

static FT_Error cid_read_subrs ( CID_Face  face  )  [static]

Definition at line 503 of file cidload.c.

parse_expansion_factor ( CID_Face  face,
CID_Parser parser 
)

Definition at line 246 of file cidload.c.

References cid_parser_to_fixed, CID_FaceDictRec_::expansion_factor, PS_PrivateRec_::expansion_factor, and CID_FaceDictRec_::private_dict.

parse_fd_array ( CID_Face  face,
CID_Parser parser 
)

Definition at line 204 of file cidload.c.

References cid_parser_to_int, error, CID_FaceInfoRec_::font_dicts, FT_NEW_ARRAY, PS_PrivateRec_::lenIV, n, CID_FaceInfoRec_::num_dicts, and CID_FaceDictRec_::private_dict.

parse_font_matrix ( CID_Face  face,
CID_Parser parser 
)

Definition at line 150 of file cidload.c.

References cid_parser_to_fixed_array, CID_FaceDictRec_::font_matrix, CID_FaceDictRec_::font_offset, FT_ABS, FT_DivFix(), if(), RooFitShortHand::L(), root, void, and x10000L.

static void t1_done_loader ( CID_Loader loader  )  [static]

Definition at line 621 of file cidload.c.

static void t1_init_loader ( CID_Loader loader,
CID_Face  face 
) [static]

Definition at line 611 of file cidload.c.


Variable Documentation

const T1_FieldRec cid_field_records[] [static]

Definition at line 265 of file cidload.c.


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