JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
Changes from August-November 2006 -- detailed history was lost.
[vor.git] / font.h
1 //  Copyright (C) 2006 Jason Woofenden  PUBLIC DOMAIN
2
3 #ifndef __font_h__
4 #define __font_h__
5
6 typedef struct {
7         SDL_Surface *pixels;    
8         SDL_Rect bounds[94];
9         int space_width;
10         int letter_spacing;
11 } font;
12
13 font *font_load(const char* filename); // sets as the current font
14 void font_free(font*);
15 void font_set(font*);
16 void font_write(int x, int y, const char* message);
17 int font_width(const char* message);
18 int font_height();
19
20 #endif