font.h
Go to the documentation of this file.
#ifndef __FONT_H
#define __FONT_H
#include <types.h>
#include <stdint.h>
#define FONT_256ENCODING 0
#define FONT_128ENCODING 1
#define FONT_NOENCODING 2
#define FONT_COMPRESSED 4
/* See gb.h/M_NO_SCROLL and gb.h/M_NO_INTERP */
typedef uint16_t font_t;
extern uint8_t font_spect[], font_italic[], font_ibm[], font_min[];
extern uint8_t font_ibm_fixed[];
void font_init(void);
font_t font_load(void *font) OLDCALL;
font_t font_set(font_t font_handle) OLDCALL;
/* Use mode() and color() to set the font modes and colours */
typedef struct sfont_handle mfont_handle;
typedef struct sfont_handle *pmfont_handle;
struct sfont_handle {
uint8_t first_tile;
void *font;
};
void font_color(uint8_t forecolor, uint8_t backcolor) OLDCALL;
#endif /* __FONT_H */
OLDCALL
#define OLDCALL
Definition: types.h:21
font_color
void font_color(uint8_t forecolor, uint8_t backcolor) OLDCALL
font_init
void font_init(void)
font_load
font_t font_load(void *font) OLDCALL
font_set
font_t font_set(font_t font_handle) OLDCALL
font_t
uint16_t font_t
Definition: font.h:24
pmfont_handle
struct sfont_handle * pmfont_handle
Definition: font.h:66
font_ibm
uint8_t font_ibm[]
Definition: font.h:32
font_ibm_fixed
uint8_t font_ibm_fixed[]
font_italic
uint8_t font_italic[]
Definition: font.h:32
font_min
uint8_t font_min[]
Definition: font.h:32
font_spect
uint8_t font_spect[]
stdint.h
uint16_t
unsigned short int uint16_t
Definition: stdint.h:52
uint8_t
unsigned char uint8_t
Definition: stdint.h:51
sfont_handle
Definition: font.h:70
sfont_handle::first_tile
uint8_t first_tile
Definition: font.h:71
sfont_handle::font
void * font
Definition: font.h:72