zenilib  0.5.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
bdf.h File Reference
#include <ft2build.h>
#include <FT_INTERNAL_OBJECTS_H>
#include <FT_INTERNAL_STREAM_H>

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)
 

Macro Definition Documentation

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

Definition at line 47 of file bdf.h.

#define _bdf_glyph_modified (   map,
  e 
)    ( (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,
  e 
)    ( (map)[(e) >> 5] |= ( 1 << ( (e) & 31 ) ) )

Definition at line 45 of file bdf.h.

Referenced by _bdf_parse_glyphs().

#define BDF_ALL_SPACING
Value:
#define BDF_MONOWIDTH
Definition: bdf.h:64
#define BDF_PROPORTIONAL
Definition: bdf.h:63
#define BDF_CHARCELL
Definition: bdf.h:65

Definition at line 67 of file bdf.h.

#define BDF_ATOM   1
#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. */

Definition at line 60 of file bdf.h.

#define BDF_DEFAULT_LOAD_OPTIONS
Value:
#define BDF_KEEP_UNENCODED
Definition: bdf.h:62
#define BDF_KEEP_COMMENTS
Definition: bdf.h:61
#define BDF_CORRECT_METRICS
Definition: bdf.h:60
#define BDF_PROPORTIONAL
Definition: bdf.h:63

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 264 of file bdf.h.

#define BDF_KEEP_COMMENTS   0x02 /* Preserve the font comments. */

Definition at line 61 of file bdf.h.

#define BDF_KEEP_UNENCODED   0x04 /* Keep the unencoded glyphs. */

Definition at line 62 of file bdf.h.

#define BDF_MISSING_BBX   -7

Definition at line 260 of file bdf.h.

#define BDF_MISSING_CHARS   -4

Definition at line 257 of file bdf.h.

#define BDF_MISSING_ENCODING   -6

Definition at line 259 of file bdf.h.

#define BDF_MISSING_FONTNAME   -2

Definition at line 255 of file bdf.h.

#define BDF_MISSING_SIZE   -3

Definition at line 256 of file bdf.h.

#define BDF_MISSING_START   -1

Definition at line 254 of file bdf.h.

#define BDF_MISSING_STARTCHAR   -5

Definition at line 258 of file bdf.h.

#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_OUT_OF_MEMORY   -20

Definition at line 262 of file bdf.h.

#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 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 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 _hashnode_ * hashnode
typedef struct hashtable_ hashtable

Function Documentation

bdf_get_font_property ( bdf_font_t font,
const char *  name 
)
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().