#include <freetype/freetype.h>
#include <freetype/internal/ftdebug.h>
#include <freetype/internal/ftstream.h>
#include <freetype/internal/ftobjs.h>
#include "bdf.h"
#include "bdferror.h"
#undef FT_COMPONENT
#define FT_COMPONENT …
#define BUFSIZE …
static const bdf_options_t bdf_opts_ = …;
static const bdf_property_t bdf_properties_[] = …;
static const unsigned long
num_bdf_properties_ = …;
#define _bdf_strncmp( name, property, n ) …
#define ACMSG1 …
#define ACMSG2 …
#define ACMSG3 …
#define ACMSG4 …
#define ACMSG5 …
#define ACMSG6 …
#define ACMSG7 …
#define ACMSG8 …
#define ACMSG9 …
#define ACMSG10 …
#define ACMSG11 …
#define ACMSG13 …
#define ACMSG14 …
#define ACMSG15 …
#define ACMSG16 …
#define ACMSG17 …
#define ERRMSG1 …
#define ERRMSG2 …
#define ERRMSG3 …
#define ERRMSG4 …
#define ERRMSG5 …
#define ERRMSG6 …
#define ERRMSG7 …
#define ERRMSG8 …
#define ERRMSG9 …
#define DBGMSG1 …
#define DBGMSG2 …
bdf_line_func_t_;
bdf_list_t_;
bdf_parse_t_;
#define setsbit( m, cc ) …
#define sbitset( m, cc ) …
static void
bdf_list_init_( bdf_list_t_* list,
FT_Memory memory )
{ … }
static void
bdf_list_done_( bdf_list_t_* list )
{ … }
static FT_Error
bdf_list_ensure_( bdf_list_t_* list,
unsigned long num_items )
{ … }
static void
bdf_list_shift_( bdf_list_t_* list,
unsigned long n )
{ … }
static const char empty[] = …;
static char *
bdf_list_join_( bdf_list_t_* list,
int c,
unsigned long *alen )
{ … }
static FT_Error
bdf_list_split_( bdf_list_t_* list,
const char* separators,
char* line,
unsigned long linelen )
{ … }
#define NO_SKIP …
static FT_Error
bdf_readstream_( FT_Stream stream,
bdf_line_func_t_ callback,
void* client_data,
unsigned long *lno )
{ … }
static const unsigned char a2i[128] = …;
static const unsigned char ddigits[32] = …;
static const unsigned char hdigits[32] = …;
static unsigned long
bdf_atoul_( const char* s )
{ … }
static long
bdf_atol_( const char* s )
{ … }
static unsigned short
bdf_atous_( const char* s )
{ … }
static short
bdf_atos_( const char* s )
{ … }
FT_COMPARE_DEF( int )
by_encoding( const void* a,
const void* b )
{ … }
static FT_Error
bdf_create_property( const char* name,
int format,
bdf_font_t* font )
{ … }
static bdf_property_t*
bdf_get_property( const char* name,
bdf_font_t* font )
{ … }
#define BDF_START_ …
#define BDF_FONT_NAME_ …
#define BDF_SIZE_ …
#define BDF_FONT_BBX_ …
#define BDF_PROPS_ …
#define BDF_GLYPHS_ …
#define BDF_GLYPH_ …
#define BDF_ENCODING_ …
#define BDF_SWIDTH_ …
#define BDF_DWIDTH_ …
#define BDF_BBX_ …
#define BDF_BITMAP_ …
#define BDF_SWIDTH_ADJ_ …
#define BDF_GLYPH_BITS_ …
#define BDF_GLYPH_WIDTH_CHECK_ …
#define BDF_GLYPH_HEIGHT_CHECK_ …
static FT_Error
bdf_add_comment_( bdf_font_t* font,
const char* comment,
unsigned long len )
{ … }
static FT_Error
bdf_set_default_spacing_( bdf_font_t* font,
bdf_options_t* opts,
unsigned long lineno )
{ … }
static int
bdf_is_atom_( char* line,
unsigned long linelen,
char** name,
char** value,
bdf_font_t* font )
{ … }
static FT_Error
bdf_add_property_( bdf_font_t* font,
const char* name,
char* value,
unsigned long lineno )
{ … }
static const unsigned char nibble_mask[8] = …;
static FT_Error
bdf_parse_end_( char* line,
unsigned long linelen,
unsigned long lineno,
void* call_data,
void* client_data )
{ … }
static FT_Error
bdf_parse_glyphs_( char* line,
unsigned long linelen,
unsigned long lineno,
void* call_data,
void* client_data )
{ … }
static FT_Error
bdf_parse_properties_( char* line,
unsigned long linelen,
unsigned long lineno,
void* call_data,
void* client_data )
{ … }
static FT_Error
bdf_parse_start_( char* line,
unsigned long linelen,
unsigned long lineno,
void* call_data,
void* client_data )
{ … }
FT_LOCAL_DEF( FT_Error )
bdf_load_font( FT_Stream stream,
FT_Memory memory,
bdf_options_t* opts,
bdf_font_t* *font )
{ … }
FT_LOCAL_DEF( void )
bdf_free_font( bdf_font_t* font )
{ … }
FT_LOCAL_DEF( bdf_property_t * )
bdf_get_font_property( bdf_font_t* font,
const char* name )
{ … }