root/font_text.h

Revision 106, 1.7 kB (checked in by ng, 5 years ago)

mise a jour licence

Line 
1 /***************************************************************************
2  *   This file is part of the 'gemmes' project                             *
3  *                                                                         *
4  *                                                                         *
5  *   Copyright (C) 2007 by                                                 *
6  *         GARCH Soufiane                                                  *
7  *         GUILLAUME Nicolas <ng@ngsoft-fr.com>                            *
8  *                                                                         *
9  *                                                                         *
10  *   This program is free software; you can redistribute it and/or modify  *
11  *   it under the terms of the GNU General Public License as published by  *
12  *   the Free Software Foundation; version 2 of the License only.          *
13  *   See the COPYING file.                                                 *
14  ***************************************************************************/
15
16
17
18 #ifndef FONT_TEXT_H
19 #define FONT_TEXT_H
20
21
22 /* Contains text fonts for text mode of the game*/
23
24
25
26 #define LETTER_SIZE_X 3
27 #define LETTER_SIZE_Y 3
28 #define LETTER_COUNT 16
29
30 #define LETTER_EXTRA 22
31
32 typedef char font_t[LETTER_COUNT][LETTER_SIZE_Y][LETTER_SIZE_X + LETTER_EXTRA];
33
34
35 /* big font */
36 font_t BIG_FONT;
37
38 /* fancy font */
39 font_t FANCY_FONT;
40
41 /* colored font */
42 font_t COLORED_FONT;
43
44 /* colored font */
45 font_t COLORED_FONT2;
46
47
48 /* Get the char (x, y) of the letter l of the font f*/
49 char text_font_get_char(font_t f, char l, int x, int y);
50
51 /* Get the line number y of letter l (return a null terminated string)*/
52 char* text_font_get_line(font_t f, char l, int y);
53
54
55
56
57
58
59
60
61
62
63
64
65 #endif
66
Note: See TracBrowser for help on using the browser.