pcfdrivr.c File Reference

#include <ft2build.h>
#include "pcf.h"
#include "pcfdrivr.h"
#include "pcfread.h"
#include "pcferror.h"
#include "pcfutil.h"

Go to the source code of this file.

Classes

struct  PCF_CMapRec_

Defines

#define FT_COMPONENT   trace_pcfread
#define FT_COMPONENT   trace_pcfdriver

Typedefs

typedef PCF_CMapRec_ PCF_CMapRec
typedef PCF_CMapRec_PCF_CMap

Functions

 pcf_cmap_init (FT_CMap pcfcmap, FT_Pointer init_data)
 pcf_cmap_done (FT_CMap pcfcmap)
 pcf_cmap_char_index (FT_CMap pcfcmap, FT_UInt32 charcode)
 pcf_cmap_char_next (FT_CMap pcfcmap, FT_UInt32 *acharcode)
 PCF_Face_Done (FT_Face pcfface)
 PCF_Face_Init (FT_Stream stream, FT_Face pcfface, FT_Int face_index, FT_Int num_params, FT_Parameter *params)
 PCF_Size_Select (FT_Size size, FT_ULong strike_index)
 PCF_Size_Request (FT_Size size, FT_Size_Request req)
 PCF_Glyph_Load (FT_GlyphSlot slot, FT_Size size, FT_UInt glyph_index, FT_Int32 load_flags)
static FT_Error pcf_get_bdf_property (PCF_Face face, const char *prop_name, BDF_PropertyRec *aproperty)
static FT_Error pcf_get_charset_id (PCF_Face face, const char **acharset_encoding, const char **acharset_registry)
 pcf_driver_requester (FT_Module module, const char *name)

Variables

FT_CALLBACK_TABLE_DEF const
FT_CMap_ClassRec 
pcf_cmap_class
static const FT_Service_BDFRec pcf_service_bdf
static const FT_ServiceDescRec pcf_services []
FT_CALLBACK_TABLE_DEF const
FT_Driver_ClassRec 
pcf_driver_class


Define Documentation

#define FT_COMPONENT   trace_pcfdriver

Definition at line 59 of file pcfdrivr.c.

#define FT_COMPONENT   trace_pcfread

Definition at line 59 of file pcfdrivr.c.


Typedef Documentation

typedef struct PCF_CMapRec_ * PCF_CMap

typedef struct PCF_CMapRec_ PCF_CMapRec


Function Documentation

pcf_cmap_char_index ( FT_CMap  pcfcmap,
FT_UInt32  charcode 
)

Definition at line 100 of file pcfdrivr.c.

References PCF_EncodingRec_::enc, PCF_CMapRec_::encodings, PCF_EncodingRec_::glyph, max, min, PCF_CMapRec_::num_encodings, and result().

pcf_cmap_char_next ( FT_CMap  pcfcmap,
FT_UInt32 acharcode 
)

Definition at line 137 of file pcfdrivr.c.

References PCF_EncodingRec_::enc, PCF_CMapRec_::encodings, FT_TRACE1, PCF_EncodingRec_::glyph, max, min, PCF_CMapRec_::num_encodings, and result().

pcf_cmap_done ( FT_CMap  pcfcmap  ) 

Definition at line 89 of file pcfdrivr.c.

References PCF_CMapRec_::encodings, NULL, and PCF_CMapRec_::num_encodings.

pcf_cmap_init ( FT_CMap  pcfcmap,
FT_Pointer  init_data 
)

Definition at line 72 of file pcfdrivr.c.

References PCF_CMapRec_::encodings, FT_CMAP_FACE, FT_UNUSED, and PCF_CMapRec_::num_encodings.

pcf_driver_requester ( FT_Module  module,
const char *  name 
)

Definition at line 641 of file pcfdrivr.c.

References ft_service_list_lookup(), FT_UNUSED, and pcf_services.

PCF_Face_Done ( FT_Face  pcfface  ) 

Definition at line 204 of file pcfdrivr.c.

References FT_FACE_MEMORY, FT_FREE, FT_Stream_Close(), FT_TRACE4, i, and if().

Referenced by PCF_Face_Init().

PCF_Face_Init ( FT_Stream  stream,
FT_Face  pcfface,
FT_Int  face_index,
FT_Int  num_params,
FT_Parameter params 
)

Definition at line 259 of file pcfdrivr.c.

References FT_CharMapRec_::encoding, FT_CharMapRec_::encoding_id, error, FT_CharMapRec_::face, FT_Bool, FT_CMap_New(), FT_ENCODING_NONE, FT_ENCODING_UNICODE, FT_ERROR_BASE, FT_FACE, ft_strcmp, FT_Stream_OpenGzip(), FT_Stream_OpenLZW(), FT_TRACE2, FT_UNUSED, NULL, pcf_cmap_class, PCF_Face_Done(), pcf_load_font(), FT_CharMapRec_::platform_id, and s.

static FT_Error pcf_get_bdf_property ( PCF_Face  face,
const char *  prop_name,
BDF_PropertyRec aproperty 
) [static]

Definition at line 571 of file pcfdrivr.c.

References BDF_PropertyRec_::atom, PCF_PropertyRec_::atom, BDF_PROPERTY_TYPE_ATOM, BDF_PROPERTY_TYPE_INTEGER, FT_TRACE1, BDF_PropertyRec_::integer, PCF_PropertyRec_::isString, PCF_PropertyRec_::l, NULL, pcf_find_property(), BDF_PropertyRec_::type, BDF_PropertyRec_::u, and PCF_PropertyRec_::value.

static FT_Error pcf_get_charset_id ( PCF_Face  face,
const char **  acharset_encoding,
const char **  acharset_registry 
) [static]

Definition at line 608 of file pcfdrivr.c.

PCF_Glyph_Load ( FT_GlyphSlot  slot,
FT_Size  size,
FT_UInt  glyph_index,
FT_Int32  load_flags 
)

Definition at line 448 of file pcfdrivr.c.

References PCF_MetricRec_::ascent, BitOrderInvert(), PCF_MetricRec_::bits, FT_Bitmap_::buffer, PCF_MetricRec_::characterWidth, PCF_MetricRec_::descent, error, FourByteSwap(), FT_GLYPH_FORMAT_BITMAP, ft_glyphslot_alloc_bitmap(), FT_PIXEL_MODE_MONO, FT_SIZE_FACE, FT_STREAM_READ, FT_STREAM_SEEK, ft_synthesize_vertical_metrics(), FT_TRACE4, FT_TRACE6, FT_UNUSED, PCF_MetricRec_::leftSideBearing, MSBFirst, FT_Bitmap_::num_grays, PCF_BIT_ORDER, PCF_BYTE_ORDER, PCF_GLYPH_PAD, PCF_SCAN_UNIT, FT_Bitmap_::pitch, FT_Bitmap_::pixel_mode, PCF_MetricRec_::rightSideBearing, FT_Bitmap_::rows, PC3::stream(), TwoByteSwap(), and FT_Bitmap_::width.

PCF_Size_Request ( FT_Size  size,
FT_Size_Request  req 
)

Definition at line 410 of file pcfdrivr.c.

References bsize, error, FT_REQUEST_HEIGHT, FT_SIZE_REQUEST_TYPE_NOMINAL, FT_SIZE_REQUEST_TYPE_REAL_DIM, height, and PCF_Size_Select().

PCF_Size_Select ( FT_Size  size,
FT_ULong  strike_index 
)

Definition at line 393 of file pcfdrivr.c.

References PCF_MetricRec_::characterWidth, PCF_AccelRec_::fontAscent, PCF_AccelRec_::fontDescent, FT_Select_Metrics(), and PCF_AccelRec_::maxbounds.

Referenced by PCF_Size_Request().


Variable Documentation

FT_CALLBACK_TABLE_DEF const FT_CMap_ClassRec pcf_cmap_class

Initial value:

Definition at line 191 of file pcfdrivr.c.

Referenced by PCF_Face_Init().

FT_CALLBACK_TABLE_DEF const FT_Driver_ClassRec pcf_driver_class

Definition at line 651 of file pcfdrivr.c.

const FT_Service_BDFRec pcf_service_bdf [static]

Initial value:

Definition at line 619 of file pcfdrivr.c.

const FT_ServiceDescRec pcf_services[] [static]

Initial value:

Definition at line 632 of file pcfdrivr.c.

Referenced by pcf_driver_requester().


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