#include <freetype/internal/ftdebug.h>
#include <freetype/internal/ftstream.h>
#include <freetype/internal/ftobjs.h>
#include "pcf.h"
#include "pcfread.h"
#include "pcferror.h"
#undef FT_COMPONENT
#define FT_COMPONENT …
#ifdef FT_DEBUG_LEVEL_TRACE
static const char* const tableNames[] =
{
"properties",
"accelerators",
"metrics",
"bitmaps",
"ink metrics",
"encodings",
"swidths",
"glyph names",
"BDF accelerators"
};
#endif
static
const FT_Frame_Field pcf_toc_header[] = …;
static
const FT_Frame_Field pcf_table_header[] = …;
static FT_Error
pcf_read_TOC( FT_Stream stream,
PCF_Face face )
{ … }
#define PCF_METRIC_SIZE …
static
const FT_Frame_Field pcf_metric_header[] = …;
static
const FT_Frame_Field pcf_metric_msb_header[] = …;
#define PCF_COMPRESSED_METRIC_SIZE …
static
const FT_Frame_Field pcf_compressed_metric_header[] = …;
static FT_Error
pcf_get_metric( FT_Stream stream,
FT_ULong format,
PCF_Metric metric )
{ … }
static FT_Error
pcf_seek_to_table_type( FT_Stream stream,
PCF_Table tables,
FT_ULong ntables,
FT_ULong type,
FT_ULong *aformat,
FT_ULong *asize )
{ … }
static FT_Bool
pcf_has_table_type( PCF_Table tables,
FT_ULong ntables,
FT_ULong type )
{ … }
#define PCF_PROPERTY_SIZE …
static
const FT_Frame_Field pcf_property_header[] = …;
static
const FT_Frame_Field pcf_property_msb_header[] = …;
FT_LOCAL_DEF( PCF_Property )
pcf_find_property( PCF_Face face,
const FT_String* prop )
{ … }
static FT_Error
pcf_get_properties( FT_Stream stream,
PCF_Face face )
{ … }
static FT_Error
pcf_get_metrics( FT_Stream stream,
PCF_Face face )
{ … }
static FT_Error
pcf_get_bitmaps( FT_Stream stream,
PCF_Face face )
{ … }
#define PCF_ENC_SIZE …
static
const FT_Frame_Field pcf_enc_header[] = …;
static
const FT_Frame_Field pcf_enc_msb_header[] = …;
static FT_Error
pcf_get_encodings( FT_Stream stream,
PCF_Face face )
{ … }
static
const FT_Frame_Field pcf_accel_header[] = …;
static
const FT_Frame_Field pcf_accel_msb_header[] = …;
static FT_Error
pcf_get_accel( FT_Stream stream,
PCF_Face face,
FT_ULong type )
{ … }
static FT_Error
pcf_interpret_style( PCF_Face pcf )
{ … }
FT_LOCAL_DEF( FT_Error )
pcf_load_font( FT_Stream stream,
PCF_Face face,
FT_Long face_index )
{ … }