zenilib
0.5.3.0
|
#include <ft2build.h>
#include <FT_FREETYPE_H>
#include <FT_INTERNAL_DEBUG_H>
#include <FT_INTERNAL_STREAM_H>
#include <FT_INTERNAL_OBJECTS_H>
#include "bdf.h"
#include "bdferror.h"
Go to the source code of this file.
Macros | |
#define | _BDF_BBX 0x0400 |
#define | _BDF_BITMAP 0x0800 |
#define | _BDF_DWIDTH 0x0200 |
#define | _BDF_ENCODING 0x0080 |
#define | _BDF_FONT_BBX 0x0008 |
#define | _BDF_FONT_NAME 0x0002 |
#define | _BDF_GLYPH 0x0040 |
#define | _BDF_GLYPH_BITS |
#define | _BDF_GLYPH_HEIGHT_CHECK 0x80000000UL |
#define | _BDF_GLYPH_WIDTH_CHECK 0x40000000UL |
#define | _BDF_GLYPHS 0x0020 |
#define | _BDF_PROPS 0x0010 |
#define | _BDF_SIZE 0x0004 |
#define | _BDF_START 0x0001 |
#define | _BDF_SWIDTH 0x0100 |
#define | _BDF_SWIDTH_ADJ 0x1000 |
#define | ACMSG1 |
#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 | ACMSG16 "Glyph %ld missing columns padded with zero bits.\n" |
#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 | DBGMSG1 " [%6ld] %s" /* no \n */ |
#define | DBGMSG2 " (0x%lX)\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" |
#define | ERRMSG5 "[line %ld] `%s' value too big.\n" |
#define | ERRMSG6 "[line %ld] Input line too long.\n" |
#define | ERRMSG7 "[line %ld] Font name too long.\n" |
#define | ERRMSG8 "[line %ld] Invalid `%s' value.\n" |
#define | ERRMSG9 "[line %ld] Invalid keyword.\n" |
#define | FT_COMPONENT trace_bdflib |
#define | INITIAL_HT_SIZE 241 |
#define | isdigok(m, d) (m[(d) >> 3] & ( 1 << ( (d) & 7 ) ) ) |
#define | NO_SKIP 256 /* this value cannot be stored in a 'char' */ |
#define | sbitset(m, cc) ( m[(FT_Byte)(cc) >> 3] & ( 1 << ( (cc) & 7 ) ) ) |
#define | setsbit(m, cc) ( m[(FT_Byte)(cc) >> 3] |= (FT_Byte)( 1 << ( (cc) & 7 ) ) ) |
Typedefs | |
typedef FT_Error(* | _bdf_line_func_t )(char *line, unsigned long linelen, unsigned long lineno, void *call_data, void *client_data) |
typedef struct _bdf_list_t_ | _bdf_list_t |
typedef struct _bdf_parse_t_ | _bdf_parse_t |
typedef void(* | hash_free_func )(hashnode node) |
Functions | |
static FT_Error | _bdf_add_comment (bdf_font_t *font, char *comment, unsigned long len) |
static FT_Error | _bdf_add_property (bdf_font_t *font, char *name, char *value, unsigned long lineno) |
static long | _bdf_atol (char *s, char **end, int base) |
static short | _bdf_atos (char *s, char **end, int base) |
static unsigned long | _bdf_atoul (char *s, char **end, int base) |
static int | _bdf_is_atom (char *line, unsigned long linelen, char **name, char **value, bdf_font_t *font) |
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_init (_bdf_list_t *list, FT_Memory memory) |
static char * | _bdf_list_join (_bdf_list_t *list, int c, unsigned long *alen) |
static void | _bdf_list_shift (_bdf_list_t *list, unsigned long n) |
static FT_Error | _bdf_list_split (_bdf_list_t *list, char *separators, char *line, unsigned long linelen) |
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) |
static FT_Error | _bdf_readstream (FT_Stream stream, _bdf_line_func_t callback, void *client_data, unsigned long *lno) |
static FT_Error | _bdf_set_default_spacing (bdf_font_t *font, bdf_options_t *opts, unsigned long lineno) |
static FT_Error | bdf_create_property (char *name, int format, bdf_font_t *font) |
bdf_free_font (bdf_font_t *font) | |
bdf_get_font_property (bdf_font_t *font, const char *name) | |
bdf_get_property (char *name, bdf_font_t *font) | |
bdf_load_font (FT_Stream stream, FT_Memory extmemory, bdf_options_t *opts, bdf_font_t **font) | |
static int | by_encoding (const void *a, const void *b) |
static hashnode * | hash_bucket (const char *key, hashtable *ht) |
static void | hash_free (hashtable *ht, FT_Memory memory) |
static FT_Error | hash_init (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 FT_Error | hash_rehash (hashtable *ht, FT_Memory memory) |
Variables | |
static const bdf_options_t | _bdf_opts |
static const bdf_property_t | _bdf_properties [] |
static const unsigned long | _num_bdf_properties |
static const unsigned char | a2i [128] |
static const unsigned char | ddigits [32] |
static const char | empty [1] = { 0 } |
static const unsigned char | hdigits [32] |
static const unsigned char | nibble_mask [8] |
static const unsigned char | odigits [32] |
#define _BDF_BBX 0x0400 |
Definition at line 1116 of file bdflib.c.
Referenced by _bdf_parse_glyphs().
#define _BDF_BITMAP 0x0800 |
Definition at line 1117 of file bdflib.c.
Referenced by _bdf_parse_glyphs().
#define _BDF_DWIDTH 0x0200 |
Definition at line 1115 of file bdflib.c.
Referenced by _bdf_parse_glyphs().
#define _BDF_ENCODING 0x0080 |
Definition at line 1113 of file bdflib.c.
Referenced by _bdf_parse_glyphs().
#define _BDF_FONT_BBX 0x0008 |
Definition at line 1109 of file bdflib.c.
Referenced by _bdf_parse_start().
#define _BDF_FONT_NAME 0x0002 |
Definition at line 1107 of file bdflib.c.
Referenced by _bdf_parse_start().
#define _BDF_GLYPH 0x0040 |
Definition at line 1112 of file bdflib.c.
Referenced by _bdf_parse_glyphs().
#define _BDF_GLYPH_BITS |
Definition at line 1121 of file bdflib.c.
Referenced by _bdf_parse_glyphs().
#define _BDF_GLYPH_HEIGHT_CHECK 0x80000000UL |
Definition at line 1129 of file bdflib.c.
Referenced by _bdf_parse_glyphs().
#define _BDF_GLYPH_WIDTH_CHECK 0x40000000UL |
Definition at line 1128 of file bdflib.c.
Referenced by _bdf_parse_glyphs().
#define _BDF_GLYPHS 0x0020 |
Definition at line 1111 of file bdflib.c.
Referenced by _bdf_parse_glyphs(), and bdf_load_font().
#define _BDF_PROPS 0x0010 |
Definition at line 1110 of file bdflib.c.
Referenced by _bdf_parse_properties(), and _bdf_parse_start().
#define _BDF_SIZE 0x0004 |
Definition at line 1108 of file bdflib.c.
Referenced by _bdf_parse_start().
#define _BDF_START 0x0001 |
Definition at line 1106 of file bdflib.c.
Referenced by _bdf_parse_glyphs(), _bdf_parse_start(), and bdf_load_font().
#define _BDF_SWIDTH 0x0100 |
Definition at line 1114 of file bdflib.c.
Referenced by _bdf_parse_glyphs().
#define _BDF_SWIDTH_ADJ 0x1000 |
Definition at line 1119 of file bdflib.c.
Referenced by _bdf_parse_glyphs(), and bdf_load_font().
#define ACMSG1 |
Definition at line 173 of file bdflib.c.
Referenced by _bdf_parse_properties(), and _bdf_parse_start().
#define ACMSG10 "DWIDTH field missing at line %ld. Set to glyph width.\n" |
Definition at line 185 of file bdflib.c.
Referenced by _bdf_parse_glyphs().
Definition at line 186 of file bdflib.c.
Referenced by _bdf_parse_start().
#define ACMSG12 "Duplicate encoding %ld (%s) changed to unencoded.\n" |
Definition at line 187 of file bdflib.c.
Referenced by _bdf_parse_glyphs().
#define ACMSG13 "Glyph %ld extra rows removed.\n" |
Definition at line 188 of file bdflib.c.
Referenced by _bdf_parse_glyphs().
#define ACMSG14 "Glyph %ld extra columns removed.\n" |
Definition at line 189 of file bdflib.c.
Referenced by _bdf_parse_glyphs().
#define ACMSG15 "Incorrect glyph count: %ld indicated but %ld found.\n" |
Definition at line 190 of file bdflib.c.
Referenced by bdf_load_font().
Definition at line 191 of file bdflib.c.
Referenced by _bdf_parse_glyphs().
#define ACMSG2 |
Definition at line 175 of file bdflib.c.
Referenced by _bdf_parse_properties(), and _bdf_parse_start().
Definition at line 177 of file bdflib.c.
Referenced by bdf_load_font().
#define ACMSG4 |
Definition at line 178 of file bdflib.c.
Referenced by bdf_load_font().
#define ACMSG5 "Font ascent != actual ascent. Old: %hd New: %hd.\n" |
Definition at line 180 of file bdflib.c.
Referenced by bdf_load_font().
#define ACMSG6 "Font descent != actual descent. Old: %hd New: %hd.\n" |
Definition at line 181 of file bdflib.c.
Referenced by bdf_load_font().
Definition at line 182 of file bdflib.c.
Referenced by bdf_load_font().
Definition at line 183 of file bdflib.c.
Referenced by bdf_load_font().
#define ACMSG9 "SWIDTH field missing at line %ld. Set automatically.\n" |
Definition at line 184 of file bdflib.c.
Referenced by _bdf_parse_glyphs().
#define DBGMSG1 " [%6ld] %s" /* no \n */ |
Definition at line 205 of file bdflib.c.
Referenced by _bdf_parse_glyphs().
#define DBGMSG2 " (0x%lX)\n" |
Definition at line 206 of file bdflib.c.
Referenced by _bdf_parse_glyphs().
Definition at line 194 of file bdflib.c.
Referenced by _bdf_parse_glyphs(), and _bdf_parse_start().
Definition at line 195 of file bdflib.c.
Referenced by bdf_load_font().
#define ERRMSG3 "[line %ld] Font glyphs corrupted or missing fields.\n" |
Definition at line 196 of file bdflib.c.
Referenced by bdf_load_font().
#define ERRMSG4 "[line %ld] BBX too big.\n" |
Definition at line 197 of file bdflib.c.
Referenced by _bdf_parse_glyphs().
Definition at line 198 of file bdflib.c.
Referenced by _bdf_parse_glyphs().
#define ERRMSG6 "[line %ld] Input line too long.\n" |
Definition at line 199 of file bdflib.c.
Referenced by _bdf_readstream().
Definition at line 200 of file bdflib.c.
Referenced by _bdf_set_default_spacing().
Definition at line 201 of file bdflib.c.
Referenced by _bdf_add_property(), _bdf_parse_glyphs(), and _bdf_parse_start().
#define ERRMSG9 "[line %ld] Invalid keyword.\n" |
Definition at line 202 of file bdflib.c.
Referenced by _bdf_parse_glyphs(), and _bdf_parse_start().
#define INITIAL_HT_SIZE 241 |
Definition at line 218 of file bdflib.c.
Referenced by hash_init().
Definition at line 844 of file bdflib.c.
Referenced by _bdf_atol(), _bdf_atos(), _bdf_atoul(), and _bdf_parse_glyphs().
Definition at line 656 of file bdflib.c.
Referenced by _bdf_readstream().
Definition at line 428 of file bdflib.c.
Referenced by _bdf_list_split().
Definition at line 426 of file bdflib.c.
Referenced by _bdf_list_split().
typedef struct _bdf_list_t_ _bdf_list_t |
typedef struct _bdf_parse_t_ _bdf_parse_t |
|
static |
Definition at line 1133 of file bdflib.c.
References bdf_font_t_::comments, bdf_font_t_::comments_len, cp, error, FT_MEM_COPY, FT_RENEW_ARRAY, and bdf_font_t_::memory.
Referenced by _bdf_parse_glyphs(), and _bdf_parse_start().
|
static |
Definition at line 1294 of file bdflib.c.
References _bdf_atol(), _bdf_atoul(), _num_bdf_properties, bdf_property_t_::atom, 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, ERRMSG8, error, bdf_font_t_::font_ascent, bdf_font_t_::font_descent, bdf_property_t_::format, FT_ERROR, FT_FREE, FT_MEM_ZERO, ft_memcmp, FT_NEW_ARRAY, FT_RENEW_ARRAY, FT_STRDUP, hash_insert(), hash_lookup(), bdf_font_t_::internal, bdf_property_t_::l, 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, bdf_font_t_::spacing, bdf_property_t_::ul, bdf_font_t_::user_props, and bdf_property_t_::value.
Referenced by _bdf_parse_properties(), and _bdf_parse_start().
|
static |
Definition at line 896 of file bdflib.c.
References ddigits, hdigits, isdigok, and odigits.
Referenced by _bdf_add_property(), and _bdf_parse_glyphs().
|
static |
Definition at line 951 of file bdflib.c.
References ddigits, hdigits, int, isdigok, and odigits.
Referenced by _bdf_parse_glyphs(), and _bdf_parse_start().
|
static |
Definition at line 849 of file bdflib.c.
References ddigits, hdigits, isdigok, and odigits.
Referenced by _bdf_add_property(), _bdf_parse_glyphs(), and _bdf_parse_start().
|
static |
Definition at line 1230 of file bdflib.c.
References BDF_ATOM, bdf_get_property(), and bdf_property_t_::format.
Referenced by _bdf_parse_properties().
|
static |
Definition at line 442 of file bdflib.c.
References FT_FREE, and FT_ZERO.
Referenced by _bdf_set_default_spacing(), and bdf_load_font().
|
static |
Definition at line 456 of file bdflib.c.
References error, FT_INT_MAX, and FT_RENEW_ARRAY.
Referenced by _bdf_list_split().
|
static |
Definition at line 433 of file bdflib.c.
References FT_ZERO.
Referenced by _bdf_set_default_spacing(), and bdf_load_font().
|
static |
Definition at line 517 of file bdflib.c.
Referenced by _bdf_parse_glyphs(), _bdf_parse_properties(), and _bdf_parse_start().
|
static |
Definition at line 490 of file bdflib.c.
Referenced by _bdf_parse_glyphs(), _bdf_parse_properties(), and _bdf_parse_start().
|
static |
Definition at line 553 of file bdflib.c.
References _bdf_list_ensure(), empty, error, FT_MEM_ZERO, sbitset, and setsbit.
Referenced by _bdf_parse_glyphs(), _bdf_parse_properties(), _bdf_parse_start(), and _bdf_set_default_spacing().
|
static |
Definition at line 1461 of file bdflib.c.
References _bdf_add_comment(), _bdf_atol(), _bdf_atos(), _bdf_atoul(), _BDF_BBX, _BDF_BITMAP, _BDF_DWIDTH, _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, _BDF_SWIDTH, _BDF_SWIDTH_ADJ, ACMSG10, ACMSG12, ACMSG13, ACMSG14, ACMSG16, ACMSG9, bdf_bbx_t_::ascent, bdf_glyph_t_::bbx, bdf_glyph_t_::bitmap, bp, bdf_glyph_t_::bpr, by_encoding(), bdf_glyph_t_::bytes, DBGMSG1, DBGMSG2, bdf_bbx_t_::descent, bdf_glyph_t_::dwidth, bdf_glyph_t_::encoding, ERRMSG1, ERRMSG4, ERRMSG5, ERRMSG8, ERRMSG9, error, FT_ERROR, FT_FREE, FT_MAX, FT_MEM_COPY, ft_memcmp, FT_MIN, FT_MulDiv(), FT_NEW_ARRAY, ft_qsort, FT_RENEW_ARRAY, FT_TRACE2, FT_TRACE4, FT_UNUSED, bdf_font_t_::glyphs, bdf_font_t_::glyphs_size, bdf_font_t_::glyphs_used, bdf_bbx_t_::height, i, isdigok, bdf_font_t_::memory, bdf_font_t_::modified, bdf_glyph_t_::name, bdf_font_t_::nmod, bdf_font_t_::point_size, bdf_font_t_::resolution_x, sizeof(), bdf_glyph_t_::swidth, bdf_font_t_::umod, bdf_font_t_::unencoded, bdf_font_t_::unencoded_size, bdf_font_t_::unencoded_used, bdf_bbx_t_::width, bdf_bbx_t_::x_offset, and bdf_bbx_t_::y_offset.
Referenced by _bdf_parse_properties(), and _bdf_parse_start().
|
static |
Definition at line 1952 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, and FT_UNUSED.
Referenced by _bdf_parse_start().
|
static |
Definition at line 2057 of file bdflib.c.
References _bdf_add_comment(), _bdf_add_property(), _bdf_atos(), _bdf_atoul(), _BDF_FONT_BBX, _BDF_FONT_NAME, _bdf_list_join(), _bdf_list_shift(), _bdf_list_split(), _bdf_parse_glyphs(), _bdf_parse_properties(), _BDF_PROPS, _bdf_set_default_spacing(), _BDF_SIZE, _BDF_START, _num_bdf_properties, ACMSG1, ACMSG11, ACMSG2, ERRMSG1, ERRMSG8, ERRMSG9, error, FT_ALLOC, FT_ERROR, FT_FREE, FT_MEM_COPY, ft_memcmp, FT_NEW, FT_NEW_ARRAY, ft_sprintf, FT_TRACE2, FT_UNUSED, hash_init(), hash_insert(), i, bdf_font_t_::memory, bdf_property_t_::name, NULL, bdf_font_t_::proptbl, and sizeof().
Referenced by bdf_load_font().
|
static |
Definition at line 660 of file bdflib.c.
References ERRMSG6, error, FT_ERROR, FT_FREE, FT_MEM_COPY, FT_NEW_ARRAY, FT_RENEW_ARRAY, FT_Stream_TryRead(), FT_StreamRec_::memory, and NO_SKIP.
Referenced by bdf_load_font().
|
static |
Definition at line 1162 of file bdflib.c.
References _bdf_list_done(), _bdf_list_init(), _bdf_list_split(), BDF_CHARCELL, BDF_MONOWIDTH, BDF_PROPORTIONAL, ERRMSG7, error, bdf_options_t_::font_spacing, FT_ERROR, FT_MEM_COPY, ft_strlen, bdf_font_t_::memory, bdf_font_t_::name, and bdf_font_t_::spacing.
Referenced by _bdf_parse_start().
|
static |
Definition at line 1026 of file bdflib.c.
References _num_bdf_properties, bdf_property_t_::builtin, error, bdf_property_t_::format, FT_MEM_COPY, FT_NEW_ARRAY, FT_RENEW_ARRAY, ft_strlen, FT_ULONG_MAX, FT_ZERO, hash_insert(), hash_lookup(), bdf_font_t_::memory, bdf_property_t_::name, bdf_font_t_::nuser_props, bdf_font_t_::proptbl, and bdf_font_t_::user_props.
Referenced by _bdf_add_property().
bdf_free_font | ( | bdf_font_t * | font | ) |
Definition at line 2517 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 2598 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 1076 of file bdflib.c.
References _num_bdf_properties, _hashnode_::data, and hash_lookup().
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 2359 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, and NULL.
Referenced by BDF_Face_Init().
Definition at line 1006 of file bdflib.c.
References bdf_glyph_t_::encoding.
Referenced by _bdf_parse_glyphs().
Definition at line 224 of file bdflib.c.
References bp, ft_strcmp, _hashnode_::key, hashtable_::size, and hashtable_::table.
Referenced by hash_insert(), hash_lookup(), and hash_rehash().
Definition at line 302 of file bdflib.c.
References bp, FT_FREE, i, hashtable_::size, and hashtable_::table.
Referenced by bdf_free_font().
Definition at line 282 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().
Definition at line 320 of file bdflib.c.
References bp, _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().
Definition at line 356 of file bdflib.c.
References hash_bucket().
Referenced by _bdf_add_property(), bdf_create_property(), bdf_get_font_property(), and bdf_get_property().
Definition at line 252 of file bdflib.c.
References bp, error, FT_FREE, FT_NEW_ARRAY, hash_bucket(), i, hashtable_::limit, hashtable_::size, and hashtable_::table.
Referenced by hash_insert().
|
static |
Definition at line 62 of file bdflib.c.
Referenced by bdf_load_font().
|
static |
|
static |
Definition at line 168 of file bdflib.c.
Referenced by _bdf_add_property(), _bdf_parse_start(), bdf_create_property(), and bdf_get_property().
|
static |
|
static |
Definition at line 827 of file bdflib.c.
Referenced by _bdf_atol(), _bdf_atos(), and _bdf_atoul().
|
static |
Definition at line 513 of file bdflib.c.
Referenced by _bdf_list_split().
|
static |
Definition at line 835 of file bdflib.c.
Referenced by _bdf_atol(), _bdf_atos(), and _bdf_atoul().
|
static |
|
static |
Definition at line 819 of file bdflib.c.
Referenced by _bdf_atol(), _bdf_atos(), and _bdf_atoul().