sdk-world v2026.11.05
PS2 SDK - world tier (copyleft-allowed, non-essential packages)
Loading...
Searching...
No Matches
bdf.h File Reference

Go to the source code of this file.

Classes

struct  bdf_property_t_
struct  bdf_bbx_t_
struct  bdf_glyph_t_
struct  bdf_font_t_

Macros

#define _bdf_glyph_modified(map, e)
#define _bdf_set_glyph_modified(map, e)
#define _bdf_clear_glyph_modified(map, e)
#define BDF_CORRECT_METRICS   0x1000
#define BDF_KEEP_COMMENTS   0x2000
#define BDF_KEEP_UNENCODED   0x4000
#define BDF_PROPORTIONAL   0x08
#define BDF_MONOWIDTH   0x10
#define BDF_CHARCELL   0x20
#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_property_t_ bdf_property_t
typedef struct bdf_bbx_t_ bdf_bbx_t
typedef struct bdf_glyph_t_ bdf_glyph_t
typedef struct bdf_font_t_ bdf_font_t

Functions

 bdf_load_font (FT_Stream stream, FT_Memory memory, unsigned long flags, bdf_font_t **font)
 bdf_free_font (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,
e )
Value:
( (map)[(e) >> 5] &= ~( 1UL << ( (e) & 31 ) ) )

Definition at line 51 of file bdf.h.

◆ _bdf_glyph_modified

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

Definition at line 47 of file bdf.h.

◆ _bdf_set_glyph_modified

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

Definition at line 49 of file bdf.h.

◆ BDF_ATOM

#define BDF_ATOM   1

Definition at line 80 of file bdf.h.

◆ BDF_CARDINAL

#define BDF_CARDINAL   3

Definition at line 82 of file bdf.h.

◆ BDF_CHARCELL

#define BDF_CHARCELL   0x20

Definition at line 70 of file bdf.h.

◆ BDF_CORRECT_METRICS

#define BDF_CORRECT_METRICS   0x1000

Definition at line 64 of file bdf.h.

◆ BDF_INTEGER

#define BDF_INTEGER   2

Definition at line 81 of file bdf.h.

◆ BDF_INVALID_LINE

#define BDF_INVALID_LINE   -100

Definition at line 199 of file bdf.h.

◆ BDF_KEEP_COMMENTS

#define BDF_KEEP_COMMENTS   0x2000

Definition at line 65 of file bdf.h.

◆ BDF_KEEP_UNENCODED

#define BDF_KEEP_UNENCODED   0x4000

Definition at line 66 of file bdf.h.

◆ BDF_MISSING_BBX

#define BDF_MISSING_BBX   -7

Definition at line 195 of file bdf.h.

◆ BDF_MISSING_CHARS

#define BDF_MISSING_CHARS   -4

Definition at line 192 of file bdf.h.

◆ BDF_MISSING_ENCODING

#define BDF_MISSING_ENCODING   -6

Definition at line 194 of file bdf.h.

◆ BDF_MISSING_FONTNAME

#define BDF_MISSING_FONTNAME   -2

Definition at line 190 of file bdf.h.

◆ BDF_MISSING_SIZE

#define BDF_MISSING_SIZE   -3

Definition at line 191 of file bdf.h.

◆ BDF_MISSING_START

#define BDF_MISSING_START   -1

Definition at line 189 of file bdf.h.

◆ BDF_MISSING_STARTCHAR

#define BDF_MISSING_STARTCHAR   -5

Definition at line 193 of file bdf.h.

◆ BDF_MONOWIDTH

#define BDF_MONOWIDTH   0x10

Definition at line 69 of file bdf.h.

◆ BDF_OUT_OF_MEMORY

#define BDF_OUT_OF_MEMORY   -20

Definition at line 197 of file bdf.h.

◆ BDF_PROPORTIONAL

#define BDF_PROPORTIONAL   0x08

Definition at line 68 of file bdf.h.

Function Documentation

◆ bdf_free_font()

bdf_free_font ( bdf_font_t * font)

Definition at line 1696 of file bdflib.c.

◆ bdf_get_font_property()

bdf_get_font_property ( bdf_font_t * font,
const char * name )

Definition at line 1763 of file bdflib.c.

◆ bdf_load_font()

bdf_load_font ( FT_Stream stream,
FT_Memory memory,
unsigned long flags,
bdf_font_t ** font )

Definition at line 1577 of file bdflib.c.