diff options
| author | Magnus Auvinen <magnus.auvinen@gmail.com> | 2009-06-07 14:36:54 +0000 |
|---|---|---|
| committer | Magnus Auvinen <magnus.auvinen@gmail.com> | 2009-06-07 14:36:54 +0000 |
| commit | cdc5f26900dc10e10679ba76a30f195e8b3f5505 (patch) | |
| tree | 415b28219072589b09031c145d34def8e0f8956b /src/engine/client/ec_font.h | |
| parent | 4bb1df318905f491740f4298c69cda317fb53fcb (diff) | |
| download | zcatch-cdc5f26900dc10e10679ba76a30f195e8b3f5505.tar.gz zcatch-cdc5f26900dc10e10679ba76a30f195e8b3f5505.zip | |
new font rendering system using freetype2. only compiles under linux for now
Diffstat (limited to 'src/engine/client/ec_font.h')
| -rw-r--r-- | src/engine/client/ec_font.h | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/src/engine/client/ec_font.h b/src/engine/client/ec_font.h deleted file mode 100644 index e38b11b7..00000000 --- a/src/engine/client/ec_font.h +++ /dev/null @@ -1,41 +0,0 @@ -/* copyright (c) 2007 magnus auvinen, see licence.txt for more info */ -#ifndef _FONT_H -#define _FONT_H - -typedef struct -{ - float tex_x0; - float tex_y0; - float tex_x1; - float tex_y1; - float width; - float height; - float x_offset; - float y_offset; - float x_advance; -} -CHARACTER; - -typedef struct -{ - int text_texture; - int outline_texture; - int size; - CHARACTER characters[256]; - char kerning[256*256]; -} FONT; - -typedef struct -{ - int font_count; - FONT fonts[14]; -} FONT_SET; - -int font_load(FONT *font, const char *filename); -int font_set_load(FONT_SET *font_set, const char *font_filename, const char *text_texture_filename, const char *outline_texture_filename, int fonts, ...); -float font_text_width(FONT *font, const char *text, float size, int width); -void font_character_info(FONT *font, unsigned char c, float *tex_x0, float *tex_y0, float *tex_x1, float *tex_y1, float *width, float *height, float *x_offset, float *y_offset, float *x_advance); -float font_kerning(FONT *font, unsigned char c1, unsigned char c2); -FONT *font_set_pick(FONT_SET *font_set, float size); - -#endif |