bdf.h File Reference

#include <ft2build.h>

Go to the source code of this file.

Classes

struct  bdf_options_t_
struct  bdf_property_t_
struct  bdf_bbx_t_
struct  bdf_glyph_t_
struct  _hashnode_
struct  hashtable_
struct  bdf_glyphlist_t_
struct  bdf_font_t_

Defines

#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_clear_glyph_modified(map, e)   ( (map)[(e) >> 5] &= ~( 1 << ( (e) & 31 ) ) )
#define BDF_CORRECT_METRICS   0x01
#define BDF_KEEP_COMMENTS   0x02
#define BDF_KEEP_UNENCODED   0x04
#define BDF_PROPORTIONAL   0x08
#define BDF_MONOWIDTH   0x10
#define BDF_CHARCELL   0x20
#define BDF_ALL_SPACING
#define BDF_DEFAULT_LOAD_OPTIONS
#define BDF_ATOM   1
#define BDF_INTEGER   2
#define BDF_CARDINAL   3
#define BDF_MISSING_START   -1
#define BDF_MISSING_FONTNAME   -2
#define BDF_MISSING_SIZE   -3
#define BDF_MISSING_CHARS   -4
#define BDF_MISSING_STARTCHAR   -5
#define BDF_MISSING_ENCODING   -6
#define BDF_MISSING_BBX   -7
#define BDF_OUT_OF_MEMORY   -20
#define BDF_INVALID_LINE   -100

Typedefs

typedef bdf_options_t_ bdf_options_t
typedef int(*) bdf_options_callback_t (bdf_options_t *opts, char **params, unsigned long nparams, void *client_data)
typedef bdf_property_t_ bdf_property_t
typedef bdf_bbx_t_ bdf_bbx_t
typedef bdf_glyph_t_ bdf_glyph_t
typedef _hashnode_ _hashnode
typedef _hashnode_hashnode
typedef hashtable_ hashtable
typedef bdf_glyphlist_t_ bdf_glyphlist_t
typedef bdf_font_t_ bdf_font_t

Functions

 bdf_load_font (FT_Stream stream, FT_Memory memory, bdf_options_t *opts, bdf_font_t **font)
 bdf_free_font (bdf_font_t *font)
 bdf_get_property (char *name, bdf_font_t *font)
 bdf_get_font_property (bdf_font_t *font, const char *name)


Define Documentation

#define _bdf_clear_glyph_modified ( map,
 )     ( (map)[(e) >> 5] &= ~( 1 << ( (e) & 31 ) ) )

Definition at line 47 of file bdf.h.

#define _bdf_glyph_modified ( map,
 )     ( (map)[(e) >> 5] & ( 1 << ( (e) & 31 ) ) )

Definition at line 43 of file bdf.h.

Referenced by _bdf_parse_glyphs().

#define _bdf_set_glyph_modified ( map,
 )     ( (map)[(e) >> 5] |= ( 1 << ( (e) & 31 ) ) )

Definition at line 45 of file bdf.h.

Referenced by _bdf_parse_glyphs().

#define BDF_ALL_SPACING

Value:

Definition at line 67 of file bdf.h.

#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

Definition at line 65 of file bdf.h.

Referenced by _bdf_add_property(), and _bdf_set_default_spacing().

#define BDF_CORRECT_METRICS   0x01

Definition at line 60 of file bdf.h.

#define BDF_DEFAULT_LOAD_OPTIONS

Value:

Definition at line 71 of file bdf.h.

#define BDF_INTEGER   2

Definition at line 103 of file bdf.h.

Referenced by _bdf_add_property(), and bdf_get_bdf_property().

#define BDF_INVALID_LINE   -100

Definition at line 262 of file bdf.h.

#define BDF_KEEP_COMMENTS   0x02

Definition at line 61 of file bdf.h.

#define BDF_KEEP_UNENCODED   0x04

Definition at line 62 of file bdf.h.

#define BDF_MISSING_BBX   -7

Definition at line 258 of file bdf.h.

#define BDF_MISSING_CHARS   -4

Definition at line 255 of file bdf.h.

#define BDF_MISSING_ENCODING   -6

Definition at line 257 of file bdf.h.

#define BDF_MISSING_FONTNAME   -2

Definition at line 253 of file bdf.h.

#define BDF_MISSING_SIZE   -3

Definition at line 254 of file bdf.h.

#define BDF_MISSING_START   -1

Definition at line 252 of file bdf.h.

#define BDF_MISSING_STARTCHAR   -5

Definition at line 256 of file bdf.h.

#define BDF_MONOWIDTH   0x10

Definition at line 64 of file bdf.h.

Referenced by _bdf_add_property(), and _bdf_set_default_spacing().

#define BDF_OUT_OF_MEMORY   -20

Definition at line 260 of file bdf.h.

#define BDF_PROPORTIONAL   0x08

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 Documentation

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)

Definition at line 89 of file bdf.h.

typedef struct bdf_options_t_ bdf_options_t

typedef struct bdf_property_t_ bdf_property_t

typedef struct _hashnode_ * hashnode

typedef struct hashtable_ hashtable


Function Documentation

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  memory,
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().


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