20 #ifndef __DC_BIOSFONT_H
21 #define __DC_BIOSFONT_H
23 #include <sys/cdefs.h>
61 #define BFONT_CODE_ISO8859_1 0
62 #define BFONT_CODE_EUC 1
63 #define BFONT_CODE_SJIS 2
126 void bfont_draw(
void *buffer,
int bufwidth,
int opaque,
int c);
140 void bfont_draw_thin(
void *buffer,
int bufwidth,
int opaque,
int c,
int iskana);
167 void bfont_draw_str(
void *buffer,
int width,
int opaque,
char *str);
void bfont_draw_str(void *buffer, int width, int opaque, char *str)
Draw a full string to a buffer.
uint32 bfont_set_foreground_color(uint32 c)
Set the font foreground color.
uint8 * bfont_find_char_jp(int ch)
Find an full-width Japanese character in the font.
uint32 bfont_set_background_color(uint32 c)
Set the font background color.
void bfont_draw_thin(void *buffer, int bufwidth, int opaque, int c, int iskana)
Draw a single thin character to a buffer.
void bfont_draw_wide(void *buffer, int bufwidth, int opaque, int c)
Draw a single wide character to a buffer.
unsigned long uint32
32-bit unsigned integer
Definition: types.h:28
unsigned char uint8
8-bit unsigned integer
Definition: types.h:30
uint8 * bfont_find_char(int ch)
Find an ISO-8859-1 character in the font.
int bfont_set_32bit_mode(int on)
Set the font to draw 32-bit color.
uint8 * bfont_find_char_jp_half(int ch)
Find an half-width Japanese character in the font.
void bfont_set_encoding(int enc)
Set the font encoding.
void bfont_draw(void *buffer, int bufwidth, int opaque, int c)
Draw a single character to a buffer.