zenilib  0.5.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
pcfread.c File Reference
#include <ft2build.h>
#include <FT_INTERNAL_DEBUG_H>
#include <FT_INTERNAL_STREAM_H>
#include <FT_INTERNAL_OBJECTS_H>
#include "pcf.h"
#include "pcfread.h"
#include "pcferror.h"

Go to the source code of this file.

Macros

#define FT_COMPONENT   trace_pcfread
 
#define FT_STRUCTURE   PCF_TocRec
 
#define FT_STRUCTURE   PCF_TableRec
 
#define FT_STRUCTURE   PCF_MetricRec
 
#define FT_STRUCTURE   PCF_MetricRec
 
#define FT_STRUCTURE   PCF_Compressed_MetricRec
 
#define FT_STRUCTURE   PCF_ParsePropertyRec
 
#define FT_STRUCTURE   PCF_ParsePropertyRec
 
#define FT_STRUCTURE   PCF_AccelRec
 
#define FT_STRUCTURE   PCF_AccelRec
 
#define PCF_COMPRESSED_METRIC_SIZE   5
 
#define PCF_METRIC_SIZE   12
 
#define PCF_PROPERTY_SIZE   9
 

Functions

 pcf_find_property (PCF_Face face, const FT_String *prop)
 
static FT_Error pcf_get_accel (FT_Stream stream, PCF_Face face, FT_ULong type)
 
static FT_Error pcf_get_bitmaps (FT_Stream stream, PCF_Face face)
 
static FT_Error pcf_get_encodings (FT_Stream stream, PCF_Face face)
 
static FT_Error pcf_get_metric (FT_Stream stream, FT_ULong format, PCF_Metric metric)
 
static FT_Error pcf_get_metrics (FT_Stream stream, PCF_Face face)
 
static FT_Error pcf_get_properties (FT_Stream stream, PCF_Face face)
 
static FT_Bool pcf_has_table_type (PCF_Table tables, FT_ULong ntables, FT_ULong type)
 
static FT_Error pcf_interpret_style (PCF_Face pcf)
 
 pcf_load_font (FT_Stream stream, PCF_Face face)
 
static FT_Error pcf_read_TOC (FT_Stream stream, PCF_Face face)
 
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)
 

Variables

static const FT_Frame_Field pcf_accel_header []
 
static const FT_Frame_Field pcf_accel_msb_header []
 
static const FT_Frame_Field pcf_compressed_metric_header []
 
static const FT_Frame_Field pcf_metric_header []
 
static const FT_Frame_Field pcf_metric_msb_header []
 
static const FT_Frame_Field pcf_property_header []
 
static const FT_Frame_Field pcf_property_msb_header []
 
static const FT_Frame_Field pcf_table_header []
 
static const FT_Frame_Field pcf_toc_header []
 

Macro Definition Documentation

#define FT_COMPONENT   trace_pcfread

Definition at line 47 of file pcfread.c.

#define FT_STRUCTURE   PCF_TocRec
#define FT_STRUCTURE   PCF_TableRec
#define FT_STRUCTURE   PCF_MetricRec
#define FT_STRUCTURE   PCF_MetricRec
#define FT_STRUCTURE   PCF_Compressed_MetricRec
#define FT_STRUCTURE   PCF_ParsePropertyRec
#define FT_STRUCTURE   PCF_ParsePropertyRec
#define FT_STRUCTURE   PCF_AccelRec
#define FT_STRUCTURE   PCF_AccelRec
#define PCF_COMPRESSED_METRIC_SIZE   5

Definition at line 228 of file pcfread.c.

Referenced by pcf_get_metrics().

#define PCF_METRIC_SIZE   12

Definition at line 192 of file pcfread.c.

Referenced by pcf_get_metrics().

#define PCF_PROPERTY_SIZE   9

Definition at line 344 of file pcfread.c.

Referenced by pcf_get_properties().

Function Documentation

pcf_find_property ( PCF_Face  face,
const FT_String prop 
)

Definition at line 375 of file pcfread.c.

References FT_Bool, ft_strcmp, i, and NULL.

Referenced by pcf_get_bdf_property(), pcf_interpret_style(), and pcf_load_font().

static FT_Bool pcf_has_table_type ( PCF_Table  tables,
FT_ULong  ntables,
FT_ULong  type 
)
static

Definition at line 329 of file pcfread.c.

References FALSE, i, and TRUE.

Referenced by pcf_load_font().

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

Variable Documentation

const FT_Frame_Field pcf_accel_header[]
static
Initial value:
=
{
#define FT_STRUCTURE
FT_FRAME_BYTE ( noOverlap ),
FT_FRAME_BYTE ( constantMetrics ),
FT_FRAME_BYTE ( terminalFont ),
FT_FRAME_BYTE ( constantWidth ),
FT_FRAME_BYTE ( inkInside ),
FT_FRAME_BYTE ( inkMetrics ),
FT_FRAME_BYTE ( drawDirection ),
FT_FRAME_LONG_LE ( fontAscent ),
FT_FRAME_LONG_LE ( fontDescent ),
FT_FRAME_LONG_LE ( maxOverlap ),
}
#define FT_FRAME_SKIP_BYTES(count)
Definition: ftstream.h:147
#define FT_FRAME_END
Definition: ftstream.h:118
#define FT_FRAME_BYTE(f)
Definition: ftstream.h:126
#define FT_FRAME_LONG_LE(f)
Definition: ftstream.h:129
#define FT_FRAME_START(size)
Definition: ftstream.h:117

Definition at line 877 of file pcfread.c.

const FT_Frame_Field pcf_accel_msb_header[]
static
Initial value:
=
{
#define FT_STRUCTURE
FT_FRAME_BYTE ( noOverlap ),
FT_FRAME_BYTE ( constantMetrics ),
FT_FRAME_BYTE ( terminalFont ),
FT_FRAME_BYTE ( constantWidth ),
FT_FRAME_BYTE ( inkInside ),
FT_FRAME_BYTE ( inkMetrics ),
FT_FRAME_BYTE ( drawDirection ),
FT_FRAME_LONG ( fontAscent ),
FT_FRAME_LONG ( fontDescent ),
FT_FRAME_LONG ( maxOverlap ),
}
#define FT_FRAME_LONG(f)
Definition: ftstream.h:120
#define FT_FRAME_SKIP_BYTES(count)
Definition: ftstream.h:147
#define FT_FRAME_END
Definition: ftstream.h:118
#define FT_FRAME_BYTE(f)
Definition: ftstream.h:126
#define FT_FRAME_START(size)
Definition: ftstream.h:117

Definition at line 899 of file pcfread.c.

const FT_Frame_Field pcf_compressed_metric_header[]
static
Initial value:
=
{
#define FT_STRUCTURE
FT_FRAME_BYTE( leftSideBearing ),
FT_FRAME_BYTE( rightSideBearing ),
FT_FRAME_BYTE( characterWidth ),
FT_FRAME_BYTE( ascent ),
FT_FRAME_BYTE( descent ),
}
#define FT_FRAME_END
Definition: ftstream.h:118
#define FT_FRAME_BYTE(f)
Definition: ftstream.h:126
#define PCF_COMPRESSED_METRIC_SIZE
Definition: pcfread.c:228
#define FT_FRAME_START(size)
Definition: ftstream.h:117

Definition at line 231 of file pcfread.c.

const FT_Frame_Field pcf_metric_header[]
static
Initial value:
=
{
#define FT_STRUCTURE
FT_FRAME_SHORT_LE( leftSideBearing ),
FT_FRAME_SHORT_LE( rightSideBearing ),
FT_FRAME_SHORT_LE( characterWidth ),
FT_FRAME_SHORT_LE( ascent ),
FT_FRAME_SHORT_LE( descent ),
FT_FRAME_SHORT_LE( attributes ),
}
#define FT_FRAME_SHORT_LE(f)
Definition: ftstream.h:131
#define FT_FRAME_END
Definition: ftstream.h:118
#define PCF_METRIC_SIZE
Definition: pcfread.c:192
#define FT_FRAME_START(size)
Definition: ftstream.h:117

Definition at line 195 of file pcfread.c.

Referenced by pcf_get_metric().

const FT_Frame_Field pcf_metric_msb_header[]
static
Initial value:
=
{
#define FT_STRUCTURE
FT_FRAME_SHORT( leftSideBearing ),
FT_FRAME_SHORT( rightSideBearing ),
FT_FRAME_SHORT( characterWidth ),
FT_FRAME_SHORT( ascent ),
FT_FRAME_SHORT( descent ),
FT_FRAME_SHORT( attributes ),
}
#define FT_FRAME_END
Definition: ftstream.h:118
#define PCF_METRIC_SIZE
Definition: pcfread.c:192
#define FT_FRAME_SHORT(f)
Definition: ftstream.h:122
#define FT_FRAME_START(size)
Definition: ftstream.h:117

Definition at line 212 of file pcfread.c.

const FT_Frame_Field pcf_property_header[]
static
Initial value:
=
{
#define FT_STRUCTURE
FT_FRAME_BYTE ( isString ),
}
EGLImageKHR EGLint * name
Definition: eglext.h:284
#define FT_FRAME_END
Definition: ftstream.h:118
#define PCF_PROPERTY_SIZE
Definition: pcfread.c:344
EGLSurface EGLint void ** value
Definition: eglext.h:301
#define FT_FRAME_BYTE(f)
Definition: ftstream.h:126
#define FT_FRAME_LONG_LE(f)
Definition: ftstream.h:129
#define FT_FRAME_START(size)
Definition: ftstream.h:117

Definition at line 347 of file pcfread.c.

const FT_Frame_Field pcf_property_msb_header[]
static
Initial value:
=
{
#define FT_STRUCTURE
FT_FRAME_BYTE( isString ),
}
#define FT_FRAME_LONG(f)
Definition: ftstream.h:120
EGLImageKHR EGLint * name
Definition: eglext.h:284
#define FT_FRAME_END
Definition: ftstream.h:118
#define PCF_PROPERTY_SIZE
Definition: pcfread.c:344
EGLSurface EGLint void ** value
Definition: eglext.h:301
#define FT_FRAME_BYTE(f)
Definition: ftstream.h:126
#define FT_FRAME_START(size)
Definition: ftstream.h:117

Definition at line 361 of file pcfread.c.

const FT_Frame_Field pcf_table_header[]
static
Initial value:
=
{
#define FT_STRUCTURE
}
GLint GLenum GLsizei GLsizei GLsizei GLint GLenum GLenum type
Definition: gl2ext.h:845
#define FT_FRAME_ULONG_LE(f)
Definition: ftstream.h:130
#define FT_FRAME_END
Definition: ftstream.h:118
GLint GLenum GLsizei GLsizei GLsizei GLint GLenum format
Definition: gl2ext.h:845
GLintptr offset
Definition: glew.h:1668
#define FT_FRAME_START(size)
Definition: ftstream.h:117
GLsizei size
Definition: gl2ext.h:1467

Definition at line 73 of file pcfread.c.

const FT_Frame_Field pcf_toc_header[]
static
Initial value:
=
{
#define FT_STRUCTURE
}
int const char * version
Definition: zlib.h:813
#define FT_FRAME_ULONG_LE(f)
Definition: ftstream.h:130
#define FT_FRAME_END
Definition: ftstream.h:118
GLint GLsizei count
Definition: gl2ext.h:1011
#define FT_FRAME_START(size)
Definition: ftstream.h:117

Definition at line 60 of file pcfread.c.