bdflib.c File Reference

#include <ft2build.h>
#include "bdf.h"
#include "bdferror.h"

Go to the source code of this file.

Classes

struct  _bdf_list_t_
struct  _bdf_parse_t_

Defines

#define FT_COMPONENT   trace_bdflib
#define INITIAL_HT_SIZE   241
#define setsbit(m, cc)   ( m[(FT_Byte)(cc) >> 3] |= (FT_Byte)( 1 << ( (cc) & 7 ) ) )
#define sbitset(m, cc)   ( m[(FT_Byte)(cc) >> 3] & ( 1 << ( (cc) & 7 ) ) )
#define NO_SKIP   256
#define isdigok(m, d)   (m[(d) >> 3] & ( 1 << ( (d) & 7 ) ) )
#define _BDF_START   0x0001
#define _BDF_FONT_NAME   0x0002
#define _BDF_SIZE   0x0004
#define _BDF_FONT_BBX   0x0008
#define _BDF_PROPS   0x0010
#define _BDF_GLYPHS   0x0020
#define _BDF_GLYPH   0x0040
#define _BDF_ENCODING   0x0080
#define _BDF_SWIDTH   0x0100
#define _BDF_DWIDTH   0x0200
#define _BDF_BBX   0x0400
#define _BDF_BITMAP   0x0800
#define _BDF_SWIDTH_ADJ   0x1000
#define _BDF_GLYPH_BITS
#define _BDF_GLYPH_WIDTH_CHECK   0x40000000UL
#define _BDF_GLYPH_HEIGHT_CHECK   0x80000000UL
#define ACMSG1
#define ACMSG2
#define ACMSG3   "Font width != actual width. Old: %hd New: %hd.\n"
#define ACMSG4
#define ACMSG5   "Font ascent != actual ascent. Old: %hd New: %hd.\n"
#define ACMSG6   "Font descent != actual descent. Old: %hd New: %hd.\n"
#define ACMSG7   "Font height != actual height. Old: %hd New: %hd.\n"
#define ACMSG8   "Glyph scalable width (SWIDTH) adjustments made.\n"
#define ACMSG9   "SWIDTH field missing at line %ld. Set automatically.\n"
#define ACMSG10   "DWIDTH field missing at line %ld. Set to glyph width.\n"
#define ACMSG11   "SIZE bits per pixel field adjusted to %hd.\n"
#define ACMSG12   "Duplicate encoding %ld (%s) changed to unencoded.\n"
#define ACMSG13   "Glyph %ld extra rows removed.\n"
#define ACMSG14   "Glyph %ld extra columns removed.\n"
#define ACMSG15   "Incorrect glyph count: %ld indicated but %ld found.\n"
#define ERRMSG1   "[line %ld] Missing \"%s\" line.\n"
#define ERRMSG2   "[line %ld] Font header corrupted or missing fields.\n"
#define ERRMSG3   "[line %ld] Font glyphs corrupted or missing fields.\n"
#define ERRMSG4   "[line %ld] BBX too big.\n"

Typedefs

typedef void(*) hash_free_func (hashnode node)
typedef FT_Error(*) _bdf_line_func_t (char *line, unsigned long linelen, unsigned long lineno, void *call_data, void *client_data)
typedef _bdf_list_t_ _bdf_list_t
typedef _bdf_parse_t_ _bdf_parse_t

Functions

static hashnodehash_bucket (const char *key, hashtable *ht)
static FT_Error hash_rehash (hashtable *ht, FT_Memory memory)
static FT_Error hash_init (hashtable *ht, FT_Memory memory)
static void hash_free (hashtable *ht, FT_Memory memory)
static FT_Error hash_insert (char *key, size_t data, hashtable *ht, FT_Memory memory)
static hashnode hash_lookup (const char *key, hashtable *ht)
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 char * _bdf_list_join (_bdf_list_t *list, int c, unsigned long *alen)
static FT_Error _bdf_list_split (_bdf_list_t *list, char *separators, char *line, unsigned long linelen)
static FT_Error _bdf_readstream (FT_Stream stream, _bdf_line_func_t callback, void *client_data, unsigned long *lno)
static unsigned long _bdf_atoul (char *s, char **end, int base)
static long _bdf_atol (char *s, char **end, int base)
static short _bdf_atos (char *s, char **end, int base)
static int by_encoding (const void *a, const void *b)
static FT_Error bdf_create_property (char *name, int format, bdf_font_t *font)
 bdf_get_property (char *name, bdf_font_t *font)
static FT_Error _bdf_add_comment (bdf_font_t *font, char *comment, unsigned long len)
static FT_Error _bdf_set_default_spacing (bdf_font_t *font, bdf_options_t *opts)
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, char *name, char *value)
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)
 bdf_load_font (FT_Stream stream, FT_Memory extmemory, bdf_options_t *opts, bdf_font_t **font)
 bdf_free_font (bdf_font_t *font)
 bdf_get_font_property (bdf_font_t *font, const char *name)

Variables

static const bdf_options_t _bdf_opts
static const bdf_property_t _bdf_properties []
static const unsigned long _num_bdf_properties
static const char empty [1] = { 0 }
static const unsigned char a2i [128]
static const unsigned char odigits [32]
static const unsigned char ddigits [32]
static const unsigned char hdigits [32]
static const unsigned char nibble_mask [8]


Define Documentation

#define _BDF_BBX   0x0400

Definition at line 1060 of file bdflib.c.

#define _BDF_BITMAP   0x0800

Definition at line 1061 of file bdflib.c.

Referenced by _bdf_parse_glyphs().

#define _BDF_DWIDTH   0x0200

Definition at line 1059 of file bdflib.c.

#define _BDF_ENCODING   0x0080

Definition at line 1057 of file bdflib.c.

Referenced by _bdf_parse_glyphs().

#define _BDF_FONT_BBX   0x0008

Definition at line 1053 of file bdflib.c.

Referenced by _bdf_parse_start().

#define _BDF_FONT_NAME   0x0002

Definition at line 1051 of file bdflib.c.

Referenced by _bdf_parse_start().

#define _BDF_GLYPH   0x0040

Definition at line 1056 of file bdflib.c.

Referenced by _bdf_parse_glyphs().

#define _BDF_GLYPH_BITS

Value:

Definition at line 1065 of file bdflib.c.

Referenced by _bdf_parse_glyphs().

#define _BDF_GLYPH_HEIGHT_CHECK   0x80000000UL

Definition at line 1073 of file bdflib.c.

Referenced by _bdf_parse_glyphs().

#define _BDF_GLYPH_WIDTH_CHECK   0x40000000UL

Definition at line 1072 of file bdflib.c.

Referenced by _bdf_parse_glyphs().

#define _BDF_GLYPHS   0x0020

Definition at line 1055 of file bdflib.c.

Referenced by _bdf_parse_glyphs(), and bdf_load_font().

#define _BDF_PROPS   0x0010

Definition at line 1054 of file bdflib.c.

Referenced by _bdf_parse_properties(), and _bdf_parse_start().

#define _BDF_SIZE   0x0004

Definition at line 1052 of file bdflib.c.

Referenced by _bdf_parse_start().

#define _BDF_START   0x0001

Definition at line 1050 of file bdflib.c.

Referenced by _bdf_parse_glyphs(), _bdf_parse_start(), and bdf_load_font().

#define _BDF_SWIDTH   0x0100

Definition at line 1058 of file bdflib.c.

#define _BDF_SWIDTH_ADJ   0x1000

Definition at line 1063 of file bdflib.c.

Referenced by bdf_load_font().

#define ACMSG1

Value:

"FONT_ASCENT property missing.  " \
                 "Added \"FONT_ASCENT %hd\".\n"

Definition at line 1077 of file bdflib.c.

Referenced by _bdf_parse_properties().

#define ACMSG10   "DWIDTH field missing at line %ld. Set to glyph width.\n"

Definition at line 1089 of file bdflib.c.

#define ACMSG11   "SIZE bits per pixel field adjusted to %hd.\n"

Definition at line 1090 of file bdflib.c.

Referenced by _bdf_parse_start().

#define ACMSG12   "Duplicate encoding %ld (%s) changed to unencoded.\n"

Definition at line 1091 of file bdflib.c.

Referenced by _bdf_parse_glyphs().

#define ACMSG13   "Glyph %ld extra rows removed.\n"

Definition at line 1092 of file bdflib.c.

Referenced by _bdf_parse_glyphs().

#define ACMSG14   "Glyph %ld extra columns removed.\n"

Definition at line 1093 of file bdflib.c.

Referenced by _bdf_parse_glyphs().

#define ACMSG15   "Incorrect glyph count: %ld indicated but %ld found.\n"

Definition at line 1094 of file bdflib.c.

Referenced by bdf_load_font().

#define ACMSG2

Value:

"FONT_DESCENT property missing.  " \
                 "Added \"FONT_DESCENT %hd\".\n"

Definition at line 1079 of file bdflib.c.

Referenced by _bdf_parse_properties().

#define ACMSG3   "Font width != actual width. Old: %hd New: %hd.\n"

Definition at line 1081 of file bdflib.c.

Referenced by bdf_load_font().

#define ACMSG4

Value:

"Font left bearing != actual left bearing.  " \
                 "Old: %hd New: %hd.\n"

Definition at line 1082 of file bdflib.c.

Referenced by bdf_load_font().

#define ACMSG5   "Font ascent != actual ascent. Old: %hd New: %hd.\n"

Definition at line 1084 of file bdflib.c.

Referenced by bdf_load_font().

#define ACMSG6   "Font descent != actual descent. Old: %hd New: %hd.\n"

Definition at line 1085 of file bdflib.c.

Referenced by bdf_load_font().

#define ACMSG7   "Font height != actual height. Old: %hd New: %hd.\n"

Definition at line 1086 of file bdflib.c.

Referenced by bdf_load_font().

#define ACMSG8   "Glyph scalable width (SWIDTH) adjustments made.\n"

Definition at line 1087 of file bdflib.c.

Referenced by bdf_load_font().

#define ACMSG9   "SWIDTH field missing at line %ld. Set automatically.\n"

Definition at line 1088 of file bdflib.c.

#define ERRMSG1   "[line %ld] Missing \"%s\" line.\n"

Definition at line 1097 of file bdflib.c.

Referenced by _bdf_parse_glyphs(), and _bdf_parse_start().

#define ERRMSG2   "[line %ld] Font header corrupted or missing fields.\n"

Definition at line 1098 of file bdflib.c.

Referenced by bdf_load_font().

#define ERRMSG3   "[line %ld] Font glyphs corrupted or missing fields.\n"

Definition at line 1099 of file bdflib.c.

Referenced by bdf_load_font().

#define ERRMSG4   "[line %ld] BBX too big.\n"

Definition at line 1100 of file bdflib.c.

#define FT_COMPONENT   trace_bdflib

Definition at line 52 of file bdflib.c.

#define INITIAL_HT_SIZE   241

Definition at line 181 of file bdflib.c.

Referenced by hash_init().

#define isdigok ( m,
d   )     (m[(d) >> 3] & ( 1 << ( (d) & 7 ) ) )

Definition at line 788 of file bdflib.c.

Referenced by _bdf_atol(), _bdf_atos(), and _bdf_atoul().

#define NO_SKIP   256

Definition at line 606 of file bdflib.c.

Referenced by _bdf_readstream().

#define sbitset ( m,
cc   )     ( m[(FT_Byte)(cc) >> 3] & ( 1 << ( (cc) & 7 ) ) )

Definition at line 390 of file bdflib.c.

Referenced by _bdf_list_split().

#define setsbit ( m,
cc   )     ( m[(FT_Byte)(cc) >> 3] |= (FT_Byte)( 1 << ( (cc) & 7 ) ) )

Definition at line 388 of file bdflib.c.

Referenced by _bdf_list_split().


Typedef Documentation

typedef FT_Error(*) _bdf_line_func_t(char *line, unsigned long linelen, unsigned long lineno, void *call_data, void *client_data)

Definition at line 339 of file bdflib.c.

typedef struct _bdf_list_t_ _bdf_list_t

typedef struct _bdf_parse_t_ _bdf_parse_t

typedef void(*) hash_free_func(hashnode node)

Definition at line 184 of file bdflib.c.


Function Documentation

static FT_Error _bdf_add_comment ( bdf_font_t font,
char *  comment,
unsigned long  len 
) [static]

Definition at line 1104 of file bdflib.c.

References bdf_font_t_::comments, bdf_font_t_::comments_len, error, FT_MEM_COPY, FT_RENEW_ARRAY, and bdf_font_t_::memory.

Referenced by _bdf_parse_glyphs(), and _bdf_parse_start().

static FT_Error _bdf_add_property ( bdf_font_t font,
char *  name,
char *  value 
) [static]

Definition at line 1262 of file bdflib.c.

References _bdf_atol(), _bdf_atoul(), _num_bdf_properties, BDF_ATOM, BDF_CARDINAL, BDF_CHARCELL, bdf_create_property(), BDF_INTEGER, BDF_MONOWIDTH, BDF_PROPORTIONAL, bdf_property_t_::builtin, _hashnode_::data, bdf_font_t_::default_char, error, bdf_font_t_::font_ascent, bdf_font_t_::font_descent, bdf_property_t_::format, fp, FT_FREE, FT_MEM_ZERO, ft_memcmp, FT_NEW_ARRAY, FT_RENEW_ARRAY, FT_STRDUP, hash_insert(), hash_lookup(), bdf_font_t_::internal, bdf_font_t_::memory, bdf_property_t_::name, bdf_font_t_::props, bdf_font_t_::props_size, bdf_font_t_::props_used, bdf_font_t_::proptbl, size_t, bdf_font_t_::spacing, and bdf_font_t_::user_props.

Referenced by _bdf_parse_properties().

static long _bdf_atol ( char *  s,
char **  end,
int  base 
) [static]

Definition at line 840 of file bdflib.c.

References isdigok.

Referenced by _bdf_add_property(), and _bdf_parse_glyphs().

static short _bdf_atos ( char *  s,
char **  end,
int  base 
) [static]

Definition at line 895 of file bdflib.c.

References int, and isdigok.

Referenced by _bdf_parse_start().

static unsigned long _bdf_atoul ( char *  s,
char **  end,
int  base 
) [static]

Definition at line 793 of file bdflib.c.

References isdigok.

Referenced by _bdf_add_property(), _bdf_parse_glyphs(), and _bdf_parse_start().

static int _bdf_is_atom ( char *  line,
unsigned long  linelen,
char **  name,
char **  value,
bdf_font_t font 
) [static]

Definition at line 1199 of file bdflib.c.

References BDF_ATOM, bdf_get_property(), and p.

Referenced by _bdf_parse_properties().

static void _bdf_list_done ( _bdf_list_t list  )  [static]

Definition at line 404 of file bdflib.c.

References FT_FREE, FT_ZERO, and list.

Referenced by _bdf_set_default_spacing(), and bdf_load_font().

static FT_Error _bdf_list_ensure ( _bdf_list_t list,
unsigned long  num_items 
) [static]

Definition at line 418 of file bdflib.c.

References error, FT_INT_MAX, FT_RENEW_ARRAY, list, and long.

Referenced by _bdf_list_split().

static void _bdf_list_init ( _bdf_list_t list,
FT_Memory  memory 
) [static]

Definition at line 395 of file bdflib.c.

References FT_ZERO, and list.

Referenced by _bdf_set_default_spacing(), and bdf_load_font().

static char* _bdf_list_join ( _bdf_list_t list,
int  c,
unsigned long alen 
) [static]

Definition at line 474 of file bdflib.c.

References fp, i, j, and list.

Referenced by _bdf_parse_glyphs(), _bdf_parse_properties(), and _bdf_parse_start().

static void _bdf_list_shift ( _bdf_list_t list,
unsigned long  n 
) [static]

Definition at line 452 of file bdflib.c.

References i, list, and u.

Referenced by _bdf_parse_glyphs(), _bdf_parse_properties(), and _bdf_parse_start().

static FT_Error _bdf_list_split ( _bdf_list_t list,
char *  separators,
char *  line,
unsigned long  linelen 
) [static]

Definition at line 510 of file bdflib.c.

References _bdf_list_ensure(), error, FT_MEM_ZERO, list, sbitset, and setsbit.

Referenced by _bdf_parse_glyphs(), _bdf_parse_properties(), _bdf_parse_start(), and _bdf_set_default_spacing().

static FT_Error _bdf_parse_glyphs ( char *  line,
unsigned long  linelen,
unsigned long  lineno,
void *  call_data,
void *  client_data 
) [static]

Definition at line 1426 of file bdflib.c.

References _bdf_add_comment(), _bdf_atol(), _bdf_atoul(), _BDF_BITMAP, _BDF_ENCODING, _BDF_GLYPH, _BDF_GLYPH_BITS, _BDF_GLYPH_HEIGHT_CHECK, _bdf_glyph_modified, _BDF_GLYPH_WIDTH_CHECK, _BDF_GLYPHS, _bdf_list_join(), _bdf_list_shift(), _bdf_list_split(), _bdf_set_glyph_modified, _BDF_START, ACMSG12, ACMSG13, ACMSG14, bdf_glyph_t_::bbx, bdf_glyph_t_::bitmap, bdf_glyph_t_::bpr, by_encoding(), c, bdf_glyph_t_::encoding, ERRMSG1, error, FT_ERROR, FT_FREE, FT_MEM_COPY, ft_memcmp, FT_NEW_ARRAY, ft_qsort, FT_RENEW_ARRAY, FT_TRACE2, FT_UNUSED, bdf_font_t_::glyphs, bdf_font_t_::glyphs_size, bdf_font_t_::glyphs_used, bdf_bbx_t_::height, i, if(), bdf_font_t_::memory, bdf_font_t_::modified, bdf_glyph_t_::name, p, s, size_t, sizeof(), bdf_font_t_::unencoded, bdf_font_t_::unencoded_size, bdf_font_t_::unencoded_used, and bdf_bbx_t_::width.

Referenced by _bdf_parse_properties().

static FT_Error _bdf_parse_properties ( char *  line,
unsigned long  linelen,
unsigned long  lineno,
void *  call_data,
void *  client_data 
) [static]

Definition at line 1876 of file bdflib.c.

References _bdf_add_property(), _bdf_is_atom(), _bdf_list_join(), _bdf_list_shift(), _bdf_list_split(), _bdf_parse_glyphs(), _BDF_PROPS, ACMSG1, ACMSG2, bdf_get_font_property(), error, ft_memcmp, ft_sprintf, FT_TRACE2, FT_UNUSED, name, p, and value.

Referenced by _bdf_parse_start().

static FT_Error _bdf_parse_start ( char *  line,
unsigned long  linelen,
unsigned long  lineno,
void *  call_data,
void *  client_data 
) [static]

Definition at line 1979 of file bdflib.c.

References _bdf_add_comment(), _bdf_atos(), _bdf_atoul(), _BDF_FONT_BBX, _BDF_FONT_NAME, _bdf_list_join(), _bdf_list_shift(), _bdf_list_split(), _bdf_parse_properties(), _BDF_PROPS, _bdf_set_default_spacing(), _BDF_SIZE, _BDF_START, _num_bdf_properties, ACMSG11, ERRMSG1, error, FT_ALLOC, FT_ERROR, FT_MEM_COPY, ft_memcmp, FT_NEW, FT_NEW_ARRAY, FT_TRACE2, FT_UNUSED, hash_init(), hash_insert(), i, if(), bdf_font_t_::memory, bdf_property_t_::name, NULL, p, bdf_font_t_::proptbl, s, short, size_t, and sizeof().

Referenced by bdf_load_font().

static FT_Error _bdf_readstream ( FT_Stream  stream,
_bdf_line_func_t  callback,
void *  client_data,
unsigned long lno 
) [static]

Definition at line 610 of file bdflib.c.

References buf, error, FT_FREE, FT_MEM_COPY, FT_NEW_ARRAY, FT_RENEW_ARRAY, FT_Stream_TryRead(), NO_SKIP, start, and PC3::stream().

Referenced by bdf_load_font().

static FT_Error _bdf_set_default_spacing ( bdf_font_t font,
bdf_options_t opts 
) [static]

Definition at line 1133 of file bdflib.c.

References _bdf_list_done(), _bdf_list_init(), _bdf_list_split(), BDF_CHARCELL, BDF_MONOWIDTH, BDF_PROPORTIONAL, error, FT_MEM_COPY, ft_strlen, len, list, bdf_font_t_::memory, name, bdf_font_t_::name, opts, size_t, and bdf_font_t_::spacing.

Referenced by _bdf_parse_start().

static FT_Error bdf_create_property ( char *  name,
int  format,
bdf_font_t font 
) [static]

Definition at line 970 of file bdflib.c.

References _num_bdf_properties, error, FT_MEM_COPY, FT_NEW_ARRAY, FT_RENEW_ARRAY, ft_strlen, FT_ULONG_MAX, FT_ZERO, hash_insert(), hash_lookup(), bdf_font_t_::memory, n, bdf_font_t_::nuser_props, p, bdf_font_t_::proptbl, size_t, and bdf_font_t_::user_props.

Referenced by _bdf_add_property().

bdf_free_font ( bdf_font_t font  ) 

Definition at line 2385 of file bdflib.c.

References bdf_property_t_::atom, BDF_ATOM, bdf_glyph_t_::bitmap, bdf_property_t_::format, FT_FREE, hash_free(), i, bdf_property_t_::name, bdf_glyph_t_::name, and bdf_property_t_::value.

Referenced by BDF_Face_Done(), and bdf_load_font().

bdf_get_font_property ( bdf_font_t font,
const char *  name 
)

Definition at line 2466 of file bdflib.c.

References _hashnode_::data, and hash_lookup().

Referenced by _bdf_parse_properties(), BDF_Face_Init(), bdf_get_bdf_property(), and bdf_interpret_style().

bdf_get_property ( char *  name,
bdf_font_t font 
)

Definition at line 1020 of file bdflib.c.

References _num_bdf_properties, _hashnode_::data, hash_lookup(), and size_t.

Referenced by _bdf_is_atom().

bdf_load_font ( FT_Stream  stream,
FT_Memory  extmemory,
bdf_options_t opts,
bdf_font_t **  font 
)

Definition at line 2226 of file bdflib.c.

References _BDF_GLYPHS, _bdf_list_done(), _bdf_list_init(), _bdf_opts, _bdf_parse_start(), _bdf_readstream(), _BDF_START, _BDF_SWIDTH_ADJ, ACMSG15, ACMSG3, ACMSG4, ACMSG5, ACMSG6, ACMSG7, ACMSG8, bdf_free_font(), BDF_PROPORTIONAL, ERRMSG2, ERRMSG3, error, FT_ERROR, FT_FREE, FT_NEW, FT_RENEW_ARRAY, FT_TRACE2, NULL, p, and short.

Referenced by BDF_Face_Init().

static int by_encoding ( const void *  a,
const void *  b 
) [static]

Definition at line 950 of file bdflib.c.

References c1, and bdf_glyph_t_::encoding.

Referenced by _bdf_parse_glyphs().

static hashnode* hash_bucket ( const char *  key,
hashtable ht 
) [static]

Definition at line 187 of file bdflib.c.

References ft_strcmp, _hashnode_::key, hashtable_::size, and hashtable_::table.

Referenced by hash_insert(), hash_lookup(), and hash_rehash().

static void hash_free ( hashtable ht,
FT_Memory  memory 
) [static]

Definition at line 265 of file bdflib.c.

References FT_FREE, i, hashtable_::size, and hashtable_::table.

Referenced by bdf_free_font().

static FT_Error hash_init ( hashtable ht,
FT_Memory  memory 
) [static]

Definition at line 245 of file bdflib.c.

References error, FT_NEW_ARRAY, INITIAL_HT_SIZE, hashtable_::limit, hashtable_::size, hashtable_::table, and hashtable_::used.

Referenced by _bdf_parse_start().

static FT_Error hash_insert ( char *  key,
size_t  data,
hashtable ht,
FT_Memory  memory 
) [static]

Definition at line 283 of file bdflib.c.

References _hashnode_::data, error, FT_NEW, hash_bucket(), hash_rehash(), _hashnode_::key, hashtable_::limit, and hashtable_::used.

Referenced by _bdf_add_property(), _bdf_parse_start(), and bdf_create_property().

static hashnode hash_lookup ( const char *  key,
hashtable ht 
) [static]

Definition at line 319 of file bdflib.c.

References hash_bucket().

Referenced by _bdf_add_property(), bdf_create_property(), bdf_get_font_property(), and bdf_get_property().

static FT_Error hash_rehash ( hashtable ht,
FT_Memory  memory 
) [static]

Definition at line 215 of file bdflib.c.

References error, FT_FREE, FT_NEW_ARRAY, hash_bucket(), i, hashtable_::limit, hashtable_::size, and hashtable_::table.

Referenced by hash_insert().


Variable Documentation

const bdf_options_t _bdf_opts [static]

Initial value:

  {
    1,                
    1,                
    0,                
    BDF_PROPORTIONAL  
  }

Definition at line 62 of file bdflib.c.

Referenced by bdf_load_font().

const bdf_property_t _bdf_properties[] [static]

Definition at line 80 of file bdflib.c.

const unsigned long _num_bdf_properties [static]

Initial value:

 sizeof ( _bdf_properties ) /
                        sizeof ( _bdf_properties[0] )

Definition at line 168 of file bdflib.c.

Referenced by _bdf_add_property(), _bdf_parse_start(), bdf_create_property(), and bdf_get_property().

const unsigned char a2i[128] [static]

Initial value:

  {
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
    0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x00, 0x00,
    0x00, 0x00, 0x00, 0x00, 0x00, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f, 0x00,
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
    0x00, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f, 0x00, 0x00, 0x00, 0x00, 0x00,
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
  }

Definition at line 748 of file bdflib.c.

const unsigned char ddigits[32] [static]

Initial value:

  {
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0x03,
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  }

Definition at line 771 of file bdflib.c.

const char empty[1] = { 0 } [static]

Definition at line 506 of file bdflib.c.

Referenced by TLimitDataSource::AddChannel(), asim_xml_parse(), RooAbsReal::createPlotProjection(), G__G__Base2_253_0_11(), G__G__Base2_344_0_11(), G__G__Base2_53_0_78(), G__G__Cont_172_0_11(), G__G__Eve1_156_0_8(), G__G__Eve1_179_0_6(), G__G__Eve1_584_0_11(), G__G__GenVector_208_0_11(), G__G__GenVector_212_0_11(), G__G__GenVector_216_0_11(), G__G__GenVector_220_0_11(), G__G__GenVector_224_0_11(), G__G__GenVector_228_0_11(), G__G__MathCore_132_0_11(), G__G__MathCore_237_0_11(), G__G__MathFit_156_0_11(), G__G__Meta_173_0_11(), G__G__Proof_148_0_6(), G__G__ProofDraw_150_0_11(), G__G__ProofDraw_157_0_11(), G__G__RooFitCore3_257_0_10(), G__G__RooFitCore3_264_0_10(), G__G__RooFitCore3_271_0_10(), G__G__RooFitCore3_437_0_10(), G__G__RooFitCore3_538_0_6(), G__G__RooFitCore3_542_0_6(), G__G__RooFitCore3_837_0_6(), G__G__RooFitCore3_932_0_10(), XrdClientAbs::GetCurrentUrl(), THostAuth::GetDetails(), TGraph2D::GetHistogram(), TClassEdit::InsertStd(), TClassEdit::TSplitType::IsSTLCont(), TEveProjection::PreScaleVariable(), TClassEdit::TSplitType::ShortType(), and TEveBoxProjected::UpdateProjection().

const unsigned char hdigits[32] [static]

Initial value:

  {
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0x03,
    0x7e, 0x00, 0x00, 0x00, 0x7e, 0x00, 0x00, 0x00,
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  }

Definition at line 779 of file bdflib.c.

const unsigned char nibble_mask[8] [static]

Initial value:

  {
    0xFF, 0x80, 0xC0, 0xE0, 0xF0, 0xF8, 0xFC, 0xFE
  }

Definition at line 1418 of file bdflib.c.

const unsigned char odigits[32] [static]

Initial value:

  {
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0x00,
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  }

Definition at line 763 of file bdflib.c.


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