1 /***********************************************************
2 * Artsoft Retro-Game Library                               *
3 *----------------------------------------------------------*
4 * (c) 1994-2001 Artsoft Entertainment                      *
5 *               Holger Schemel                             *
6 *               Detmolder Strasse 189                      *
7 *               33604 Bielefeld                            *
8 *               Germany                                    *
9 *               e-mail: info@artsoft.org                   *
10 *----------------------------------------------------------*
11 * text.h                                                   *
12 ***********************************************************/
13 
14 #ifndef TEXT_H
15 #define TEXT_H
16 
17 #include "system.h"
18 
19 
20 /* font types */
21 #define FS_SMALL		0
22 #define FS_BIG			1
23 #define FS_MEDIUM		2
24 
25 /* font colors */
26 #define FC_RED			0
27 #define FC_BLUE			1
28 #define FC_GREEN		2
29 #define FC_YELLOW		3
30 #define FC_SPECIAL1		4
31 #define FC_SPECIAL2		5
32 #define FC_SPECIAL3		6
33 
34 /* font graphics definitions */
35 #define FONT1_XSIZE		32
36 #define FONT1_YSIZE		32
37 #define FONT2_XSIZE		14
38 #define FONT2_YSIZE		14
39 #define FONT3_XSIZE		11
40 #define FONT3_YSIZE		14
41 #define FONT4_XSIZE		16
42 #define FONT4_YSIZE		16
43 #define FONT5_XSIZE		10
44 #define FONT5_YSIZE		14
45 #define FONT6_XSIZE		16
46 #define FONT6_YSIZE		32
47 
48 #define FONT_CHARS_PER_LINE	16
49 #define FONT_LINES_PER_FONT	4
50 
51 /* text output definitions */
52 #define MAX_OUTPUT_LINESIZE	256
53 
54 /* font structure definitions */
55 
56 struct FontInfo
57 {
58   Bitmap *bitmap_big;
59   Bitmap *bitmap_medium;
60   Bitmap *bitmap_small;
61 };
62 
63 
64 void InitFontInfo(Bitmap *, Bitmap *, Bitmap *);
65 int getFontWidth(int, int);
66 int getFontHeight(int, int);
67 void DrawInitText(char *, int, int);
68 void DrawTextF(int, int, int, char *, ...);
69 void DrawTextFCentered(int, int, char *, ...);
70 void DrawText(int, int, char *, int, int);
71 void DrawTextExt(DrawBuffer *, int, int, char *, int, int);
72 
73 #endif	/* TEXT_H */
74