zenilib
0.5.3.0
|
#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 [] |
#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().
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().
Definition at line 921 of file pcfread.c.
References PCF_FaceRec_::accel, PCF_TocRec_::count, error, FT_READ_ULONG_LE, FT_STREAM_READ_FIELDS, PCF_AccelRec_::ink_maxbounds, PCF_AccelRec_::ink_minbounds, PCF_AccelRec_::maxbounds, PCF_AccelRec_::minbounds, MSBFirst, PCF_ACCEL_W_INKBOUNDS, PCF_BYTE_ORDER, PCF_DEFAULT_FORMAT, PCF_FORMAT_MASK, PCF_FORMAT_MATCH, pcf_get_metric(), pcf_seek_to_table_type(), PCF_TocRec_::tables, and PCF_FaceRec_::toc.
Referenced by pcf_load_font().
Definition at line 663 of file pcfread.c.
References PCF_FaceRec_::bitmapsFormat, PCF_MetricRec_::bits, PCF_TocRec_::count, error, FT_FACE, FT_FREE, FT_GET_ULONG, FT_GET_ULONG_LE, FT_NEW_ARRAY, FT_READ_LONG, FT_READ_LONG_LE, FT_Stream_EnterFrame(), FT_Stream_ExitFrame(), FT_TRACE0, FT_TRACE4, FT_TRACE5, FT_UNUSED, GLYPHPADOPTIONS, i, PCF_FaceRec_::metrics, MSBFirst, PCF_FaceRec_::nmetrics, NULL, PCF_BITMAPS, PCF_BYTE_ORDER, PCF_DEFAULT_FORMAT, PCF_FORMAT_MATCH, PCF_GLYPH_PAD_INDEX, pcf_seek_to_table_type(), FT_StreamRec_::pos, PCF_TocRec_::tables, and PCF_FaceRec_::toc.
Referenced by pcf_load_font().
Definition at line 765 of file pcfread.c.
References PCF_TocRec_::count, PCF_FaceRec_::defaultChar, PCF_EncodingRec_::enc, PCF_FaceRec_::encodings, error, FT_FACE, FT_FREE, FT_GET_SHORT, FT_GET_SHORT_LE, FT_GET_ULONG_LE, FT_NEW_ARRAY, FT_Stream_EnterFrame(), FT_Stream_ExitFrame(), FT_TRACE4, FT_TRACE5, PCF_EncodingRec_::glyph, i, j, MSBFirst, PCF_FaceRec_::nencodings, NULL, PCF_BDF_ENCODINGS, PCF_BYTE_ORDER, PCF_DEFAULT_FORMAT, PCF_FORMAT_MATCH, pcf_seek_to_table_type(), PCF_TocRec_::tables, and PCF_FaceRec_::toc.
Referenced by pcf_load_font().
|
static |
Definition at line 247 of file pcfread.c.
References PCF_Compressed_MetricRec_::ascent, PCF_MetricRec_::ascent, PCF_MetricRec_::attributes, PCF_Compressed_MetricRec_::characterWidth, PCF_MetricRec_::characterWidth, PCF_Compressed_MetricRec_::descent, PCF_MetricRec_::descent, error, FT_STREAM_READ_FIELDS, PCF_Compressed_MetricRec_::leftSideBearing, PCF_MetricRec_::leftSideBearing, MSBFirst, PCF_BYTE_ORDER, PCF_DEFAULT_FORMAT, PCF_FORMAT_MATCH, pcf_metric_header, PCF_Compressed_MetricRec_::rightSideBearing, and PCF_MetricRec_::rightSideBearing.
Referenced by pcf_get_accel(), and pcf_get_metrics().
Definition at line 566 of file pcfread.c.
References PCF_MetricRec_::bits, PCF_TocRec_::count, error, FT_FACE, FT_FREE, FT_NEW_ARRAY, FT_READ_ULONG, FT_READ_ULONG_LE, FT_READ_USHORT, FT_READ_USHORT_LE, FT_TRACE4, FT_TRACE5, i, PCF_FaceRec_::metrics, MSBFirst, PCF_FaceRec_::nmetrics, PCF_BYTE_ORDER, PCF_COMPRESSED_METRIC_SIZE, PCF_COMPRESSED_METRICS, PCF_DEFAULT_FORMAT, PCF_FORMAT_MATCH, pcf_get_metric(), PCF_METRIC_SIZE, PCF_METRICS, pcf_seek_to_table_type(), PCF_TocRec_::tables, and PCF_FaceRec_::toc.
Referenced by pcf_load_font().
Definition at line 397 of file pcfread.c.
References PCF_PropertyRec_::atom, PCF_TocRec_::count, error, FT_FACE, FT_FREE, FT_NEW_ARRAY, FT_READ_ULONG, FT_READ_ULONG_LE, FT_STRDUP, FT_Stream_Read(), FT_STREAM_READ_FIELDS, FT_STREAM_SKIP, FT_TRACE4, i, int, PCF_ParsePropertyRec_::isString, PCF_PropertyRec_::isString, PCF_PropertyRec_::l, MSBFirst, PCF_ParsePropertyRec_::name, PCF_FaceRec_::nprops, NULL, PCF_BYTE_ORDER, PCF_DEFAULT_FORMAT, PCF_FORMAT_MATCH, PCF_PROPERTIES, PCF_PROPERTY_SIZE, pcf_seek_to_table_type(), PCF_FaceRec_::properties, PCF_TocRec_::tables, PCF_FaceRec_::toc, PCF_ParsePropertyRec_::value, and PCF_PropertyRec_::value.
Referenced by pcf_load_font().
Definition at line 995 of file pcfread.c.
References PCF_PropertyRec_::atom, error, FT_ALLOC, FT_FACE, ft_memcpy, ft_strlen, FT_STYLE_FLAG_BOLD, FT_STYLE_FLAG_ITALIC, PCF_PropertyRec_::isString, FT_FaceRec_::memory, NULL, pcf_find_property(), FT_FaceRec_::style_flags, FT_FaceRec_::style_name, and PCF_PropertyRec_::value.
Referenced by pcf_load_font().
Definition at line 1105 of file pcfread.c.
References PCF_PropertyRec_::atom, FT_FaceRec_::available_sizes, error, FT_FaceRec_::face_flags, FT_FaceRec_::face_index, FT_FaceRec_::family_name, FT_Bool, FT_FACE, FT_FACE_FLAG_FAST_GLYPHS, FT_FACE_FLAG_FIXED_SIZES, FT_FACE_FLAG_FIXED_WIDTH, FT_FACE_FLAG_HORIZONTAL, FT_MEM_ZERO, FT_NEW_ARRAY, FT_Pos, FT_STRDUP, FT_Bitmap_Size_::height, if(), PCF_PropertyRec_::isString, PCF_PropertyRec_::l, NULL, FT_FaceRec_::num_faces, FT_FaceRec_::num_fixed_sizes, FT_FaceRec_::num_glyphs, PCF_ACCELERATORS, PCF_BDF_ACCELERATORS, pcf_find_property(), pcf_get_accel(), pcf_get_bitmaps(), pcf_get_encodings(), pcf_get_metrics(), pcf_get_properties(), pcf_has_table_type(), pcf_interpret_style(), pcf_read_TOC(), FT_Bitmap_Size_::size, PCF_PropertyRec_::value, FT_Bitmap_Size_::width, FT_Bitmap_Size_::x_ppem, and FT_Bitmap_Size_::y_ppem.
Referenced by PCF_Face_Init().
Definition at line 88 of file pcfread.c.
References PCF_TocRec_::count, error, FT_ARRAY_MAX, FT_FACE, FT_FREE, FT_NEW_ARRAY, FT_STREAM_READ_FIELDS, FT_STREAM_SEEK, FT_TRACE4, i, j, PCF_FILE_VERSION, PCF_TocRec_::tables, PCF_FaceRec_::toc, and PCF_TocRec_::version.
Referenced by pcf_load_font().
|
static |
Definition at line 290 of file pcfread.c.
References error, FT_STREAM_SKIP, i, and FT_StreamRec_::pos.
Referenced by pcf_get_accel(), pcf_get_bitmaps(), pcf_get_encodings(), pcf_get_metrics(), and pcf_get_properties().
|
static |
|
static |
|
static |
|
static |
Definition at line 195 of file pcfread.c.
Referenced by pcf_get_metric().
|
static |
|
static |
|
static |
|
static |
|
static |