5 // allowed values for CONSOLE_FONT (do not use BITFONT_START)
8 #define BITFONT_START 2
9 #define INT10FONT08 (BITFONT_START + 0)
10 #define INT10FONT14 (BITFONT_START + 1)
11 #define INT10FONT16 (BITFONT_START + 2)
13 /* for usage with rcb you need to set -DCONSOLE_FONT=INT10FONT14
14 * or another one while compiling. this will get the right headers
15 * and the c files they link to, to be added to the build */
17 #ifndef CONSOLE_BACKEND
18 # error "CONSOLE_BACKEND must be set"
21 /* we don't need a font for terminal backends */
22 #if (CONSOLE_FONT==NOFONT) || !defined(CONSOLE_FONT)
23 # if (CONSOLE_BACKEND==SDL_CONSOLE)
25 # error "SDL_CONSOLE backend requires use of a font"
27 # include "testfont.h"
28 # include "int10font08.h"
29 # include "int10font14.h"
30 # include "int10font16.h"
32 # define FONT (&int10font08)
42 #elif (CONSOLE_FONT==TESTFONT)
43 # include "testfont.h"
44 # define FONT (&testfont)
45 #elif (CONSOLE_FONT >= BITFONT_START)
46 # if (CONSOLE_FONT==INT10FONT08)
47 # include "int10font08.h"
48 # define FONT (&int10font08)
49 # elif (CONSOLE_FONT==INT10FONT14)
50 # include "int10font14.h"
51 # define FONT (&int10font14)
52 # elif (CONSOLE_FONT==INT10FONT16)
53 # include "int10font16.h"
54 # define FONT (&int10font16)
56 # error "unknown font"