00001 00005 /* 00006 Copyright (C) 1997-2001 Id Software, Inc. 00007 00008 This program is free software; you can redistribute it and/or 00009 modify it under the terms of the GNU General Public License 00010 as published by the Free Software Foundation; either version 2 00011 of the License, or (at your option) any later version. 00012 00013 This program is distributed in the hope that it will be useful, 00014 but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 00016 00017 See the GNU General Public License for more details. 00018 00019 You should have received a copy of the GNU General Public License 00020 along with this program; if not, write to the Free Software 00021 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00022 00023 */ 00024 00025 #ifndef R_FONTS_H 00026 #define R_FONTS_H 00027 00028 #include <SDL_ttf.h> 00029 00030 /* starting offset for texture numbers used in text chunk cache */ 00031 #define TEXNUM_FONTS (TEXNUM_FRAMEBUFFER_TEXTURES + MAX_GL_FRAMEBUFFERS) 00032 00033 typedef struct font_s { 00034 const char *name; 00035 TTF_Font *font; 00036 SDL_RWops *rw; 00037 byte *buffer; 00038 int style; 00039 int lineSkip; 00040 int height; 00041 } font_t; 00042 00043 /* public */ 00044 void R_FontListCache_f(void); 00045 font_t *R_GetFont(const char *name); 00046 00047 #endif