22 #ifndef M4_GRAPHICS_GR_FONT_H 23 #define M4_GRAPHICS_GR_FONT_H 25 #include "common/str.h" 26 #include "m4/m4_types.h" 40 void gr_font_system_shutdown();
41 void gr_font_dealloc(
Font *killMe);
42 Font *gr_font_create_system_font();
43 void gr_font_set_color(uint8 foreground);
45 void gr_font_set(
Font *font);
46 int32 gr_font_get_height();
47 int32 gr_font_write(
Buffer *target,
char *out_string, int32 x, int32 y,
48 int32 w, int32 auto_spacing = 1);
49 int32 gr_font_write(
Buffer *target,
const char *out_string, int32 x, int32 y,
50 int32 w, int32 auto_spacing);
51 int32 gr_font_string_width(
char *out_string, int32 auto_spacing = 1);
52 int32 gr_font_string_width(
const Common::String &str, int32 auto_spacing = 1);
54 Font *gr_font_load(
const char *fontName);
56 void font_set_colors(uint8 alt1, uint8 alt2, uint8 foreground);
Definition: m4_types.h:67
Definition: database.h:28