Visualization Library 2.0.0-b5

A lightweight C++ OpenGL middleware for 2D/3D graphics

VL     Star     Watch     Fork     Issue

[Download] [Tutorials] [All Classes] [Grouped Classes]
Classes | Macros | Typedefs | Functions
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_
 

Macros

#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 /* Correct invalid metrics when loading. */
 
#define BDF_KEEP_COMMENTS   0x02 /* Preserve the font comments. */
 
#define BDF_KEEP_UNENCODED   0x04 /* Keep the unencoded glyphs. */
 
#define BDF_PROPORTIONAL   0x08 /* Font has proportional spacing. */
 
#define BDF_MONOWIDTH   0x10 /* Font has mono width. */
 
#define BDF_CHARCELL   0x20 /* Font has charcell spacing. */
 
#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 struct 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 struct bdf_property_t_ bdf_property_t
 
typedef struct bdf_bbx_t_ bdf_bbx_t
 
typedef struct bdf_glyph_t_ bdf_glyph_t
 
typedef struct _hashnode_ _hashnode
 
typedef struct _hashnode_hashnode
 
typedef struct hashtable_ hashtable
 
typedef struct bdf_glyphlist_t_ bdf_glyphlist_t
 
typedef struct 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)
 

Macro Definition Documentation

◆ _bdf_clear_glyph_modified

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

Definition at line 47 of file bdf.h.

◆ _bdf_glyph_modified

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

Definition at line 43 of file bdf.h.

◆ _bdf_set_glyph_modified

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

Definition at line 45 of file bdf.h.

◆ BDF_ALL_SPACING

#define BDF_ALL_SPACING
Value:
BDF_MONOWIDTH | \
BDF_CHARCELL )
#define BDF_PROPORTIONAL
Definition: bdf.h:63

Definition at line 67 of file bdf.h.

◆ BDF_ATOM

#define BDF_ATOM   1

Definition at line 102 of file bdf.h.

Referenced by BDF_Face_Init().

◆ BDF_CARDINAL

#define BDF_CARDINAL   3

Definition at line 104 of file bdf.h.

◆ BDF_CHARCELL

#define BDF_CHARCELL   0x20 /* Font has charcell spacing. */

Definition at line 65 of file bdf.h.

◆ BDF_CORRECT_METRICS

#define BDF_CORRECT_METRICS   0x01 /* Correct invalid metrics when loading. */

Definition at line 60 of file bdf.h.

◆ BDF_DEFAULT_LOAD_OPTIONS

#define BDF_DEFAULT_LOAD_OPTIONS
Value:
BDF_KEEP_COMMENTS | \
BDF_KEEP_UNENCODED | \
BDF_PROPORTIONAL )
#define BDF_CORRECT_METRICS
Definition: bdf.h:60

Definition at line 71 of file bdf.h.

◆ BDF_INTEGER

#define BDF_INTEGER   2

Definition at line 103 of file bdf.h.

◆ BDF_INVALID_LINE

#define BDF_INVALID_LINE   -100

Definition at line 264 of file bdf.h.

◆ BDF_KEEP_COMMENTS

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

Definition at line 61 of file bdf.h.

◆ BDF_KEEP_UNENCODED

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

Definition at line 62 of file bdf.h.

◆ BDF_MISSING_BBX

#define BDF_MISSING_BBX   -7

Definition at line 260 of file bdf.h.

◆ BDF_MISSING_CHARS

#define BDF_MISSING_CHARS   -4

Definition at line 257 of file bdf.h.

◆ BDF_MISSING_ENCODING

#define BDF_MISSING_ENCODING   -6

Definition at line 259 of file bdf.h.

◆ BDF_MISSING_FONTNAME

#define BDF_MISSING_FONTNAME   -2

Definition at line 255 of file bdf.h.

◆ BDF_MISSING_SIZE

#define BDF_MISSING_SIZE   -3

Definition at line 256 of file bdf.h.

◆ BDF_MISSING_START

#define BDF_MISSING_START   -1

Definition at line 254 of file bdf.h.

◆ BDF_MISSING_STARTCHAR

#define BDF_MISSING_STARTCHAR   -5

Definition at line 258 of file bdf.h.

◆ BDF_MONOWIDTH

#define BDF_MONOWIDTH   0x10 /* Font has mono width. */

Definition at line 64 of file bdf.h.

◆ BDF_OUT_OF_MEMORY

#define BDF_OUT_OF_MEMORY   -20

Definition at line 262 of file bdf.h.

◆ BDF_PROPORTIONAL

#define BDF_PROPORTIONAL   0x08 /* Font has proportional spacing. */

Definition at line 63 of file bdf.h.

Referenced by BDF_Face_Init().

Typedef Documentation

◆ _hashnode

typedef struct _hashnode_ _hashnode

◆ bdf_bbx_t

typedef struct bdf_bbx_t_ bdf_bbx_t

◆ bdf_font_t

typedef struct bdf_font_t_ bdf_font_t

◆ bdf_glyph_t

typedef struct bdf_glyph_t_ bdf_glyph_t

◆ bdf_glyphlist_t

◆ bdf_options_callback_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.

◆ bdf_options_t

typedef struct bdf_options_t_ bdf_options_t

◆ bdf_property_t

◆ hashnode

typedef struct _hashnode_ * hashnode

◆ hashtable

typedef struct hashtable_ hashtable

Function Documentation

◆ bdf_free_font()

bdf_free_font ( bdf_font_t font)

Definition at line 2523 of file bdflib.c.

References FT_FREE, and i.

Referenced by BDF_Face_Done().

◆ bdf_get_font_property()

bdf_get_font_property ( bdf_font_t font,
const char *  name 
)

Definition at line 2604 of file bdflib.c.

Referenced by BDF_Face_Init().

◆ bdf_get_property()

bdf_get_property ( char *  name,
bdf_font_t font 
)

Definition at line 1075 of file bdflib.c.

◆ bdf_load_font()

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

Definition at line 2365 of file bdflib.c.

References error, FT_Err_Ok, FT_NEW, and NULL.

Referenced by BDF_Face_Init().