zenilib
0.5.3.0
|
Go to the source code of this file.
Classes | |
struct | _hashnode_ |
struct | bdf_bbx_t_ |
struct | bdf_font_t_ |
struct | bdf_glyph_t_ |
struct | bdf_glyphlist_t_ |
struct | bdf_options_t_ |
struct | bdf_property_t_ |
struct | hashtable_ |
Macros | |
#define | _bdf_clear_glyph_modified(map, e) ( (map)[(e) >> 5] &= ~( 1 << ( (e) & 31 ) ) ) |
#define | _bdf_glyph_modified(map, e) ( (map)[(e) >> 5] & ( 1 << ( (e) & 31 ) ) ) |
#define | _bdf_set_glyph_modified(map, e) ( (map)[(e) >> 5] |= ( 1 << ( (e) & 31 ) ) ) |
#define | BDF_ALL_SPACING |
#define | BDF_ATOM 1 |
#define | BDF_CARDINAL 3 |
#define | BDF_CHARCELL 0x20 /* Font has charcell spacing. */ |
#define | BDF_CORRECT_METRICS 0x01 /* Correct invalid metrics when loading. */ |
#define | BDF_DEFAULT_LOAD_OPTIONS |
#define | BDF_INTEGER 2 |
#define | BDF_INVALID_LINE -100 |
#define | BDF_KEEP_COMMENTS 0x02 /* Preserve the font comments. */ |
#define | BDF_KEEP_UNENCODED 0x04 /* Keep the unencoded glyphs. */ |
#define | BDF_MISSING_BBX -7 |
#define | BDF_MISSING_CHARS -4 |
#define | BDF_MISSING_ENCODING -6 |
#define | BDF_MISSING_FONTNAME -2 |
#define | BDF_MISSING_SIZE -3 |
#define | BDF_MISSING_START -1 |
#define | BDF_MISSING_STARTCHAR -5 |
#define | BDF_MONOWIDTH 0x10 /* Font has mono width. */ |
#define | BDF_OUT_OF_MEMORY -20 |
#define | BDF_PROPORTIONAL 0x08 /* Font has proportional spacing. */ |
Typedefs | |
typedef struct _hashnode_ | _hashnode |
typedef struct bdf_bbx_t_ | bdf_bbx_t |
typedef struct bdf_font_t_ | bdf_font_t |
typedef struct bdf_glyph_t_ | bdf_glyph_t |
typedef struct bdf_glyphlist_t_ | bdf_glyphlist_t |
typedef int(* | bdf_options_callback_t )(bdf_options_t *opts, char **params, unsigned long nparams, void *client_data) |
typedef struct bdf_options_t_ | bdf_options_t |
typedef struct bdf_property_t_ | bdf_property_t |
typedef struct _hashnode_ * | hashnode |
typedef struct hashtable_ | hashtable |
Functions | |
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 memory, bdf_options_t *opts, bdf_font_t **font) | |
Definition at line 43 of file bdf.h.
Referenced by _bdf_parse_glyphs().
Definition at line 45 of file bdf.h.
Referenced by _bdf_parse_glyphs().
#define BDF_ALL_SPACING |
#define BDF_ATOM 1 |
Definition at line 102 of file bdf.h.
Referenced by _bdf_add_property(), _bdf_is_atom(), BDF_Face_Init(), bdf_free_font(), bdf_get_bdf_property(), and bdf_interpret_style().
#define BDF_CARDINAL 3 |
Definition at line 104 of file bdf.h.
Referenced by _bdf_add_property(), and bdf_get_bdf_property().
#define BDF_CHARCELL 0x20 /* Font has charcell spacing. */ |
Definition at line 65 of file bdf.h.
Referenced by _bdf_add_property(), and _bdf_set_default_spacing().
#define BDF_CORRECT_METRICS 0x01 /* Correct invalid metrics when loading. */ |
#define BDF_DEFAULT_LOAD_OPTIONS |
#define BDF_INTEGER 2 |
Definition at line 103 of file bdf.h.
Referenced by _bdf_add_property(), and bdf_get_bdf_property().
#define BDF_KEEP_COMMENTS 0x02 /* Preserve the font comments. */ |
#define BDF_KEEP_UNENCODED 0x04 /* Keep the unencoded glyphs. */ |
#define BDF_MONOWIDTH 0x10 /* Font has mono width. */ |
Definition at line 64 of file bdf.h.
Referenced by _bdf_add_property(), and _bdf_set_default_spacing().
#define BDF_PROPORTIONAL 0x08 /* Font has proportional spacing. */ |
Definition at line 63 of file bdf.h.
Referenced by _bdf_add_property(), _bdf_set_default_spacing(), BDF_Face_Init(), and bdf_load_font().
typedef struct _hashnode_ _hashnode |
typedef struct bdf_bbx_t_ bdf_bbx_t |
typedef struct bdf_font_t_ bdf_font_t |
typedef struct bdf_glyph_t_ bdf_glyph_t |
typedef struct bdf_glyphlist_t_ bdf_glyphlist_t |
typedef int(* bdf_options_callback_t)(bdf_options_t *opts, char **params, unsigned long nparams, void *client_data) |
typedef struct bdf_options_t_ bdf_options_t |
typedef struct bdf_property_t_ bdf_property_t |
typedef struct _hashnode_ * hashnode |
typedef struct hashtable_ hashtable |
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 | memory, | ||
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().