From cdc5f26900dc10e10679ba76a30f195e8b3f5505 Mon Sep 17 00:00:00 2001 From: Magnus Auvinen Date: Sun, 7 Jun 2009 14:36:54 +0000 Subject: new font rendering system using freetype2. only compiles under linux for now --- src/engine/e_if_gfx.h | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'src/engine/e_if_gfx.h') diff --git a/src/engine/e_if_gfx.h b/src/engine/e_if_gfx.h index 8221c81d..61a76bad 100644 --- a/src/engine/e_if_gfx.h +++ b/src/engine/e_if_gfx.h @@ -10,6 +10,11 @@ Section: Structures */ +/* + Structure: FONT +*/ +struct FONT; + /* Structure: IMAGE_INFO */ @@ -321,7 +326,7 @@ void gfx_text_color(float r, float g, float b, float a); See Also: */ -void gfx_text_set_default_font(void *font); +void gfx_text_set_default_font(struct FONT *font); /* Group: Other @@ -654,7 +659,8 @@ typedef struct float start_y; float line_width; float x, y; - void *font_set; + + struct FONT *font; float font_size; } TEXT_CURSOR; @@ -662,6 +668,8 @@ void gfx_text_set_cursor(TEXT_CURSOR *cursor, float x, float y, float font_size, void gfx_text_ex(TEXT_CURSOR *cursor, const char *text, int length); +struct FONT *gfx_font_load(const char *filename); +void gfx_font_destroy(struct FONT *font); #endif -- cgit 1.4.1