17 |
#include <stdlib.h> |
#include <stdlib.h> |
18 |
#include <string.h> |
#include <string.h> |
19 |
|
|
20 |
|
#if __GNUG__ > 2 |
21 |
|
#include <ext/hash_map> |
22 |
|
using __gnu_cxx::hash_map; |
23 |
|
#else |
24 |
|
#include <hash_map> |
25 |
|
#endif |
26 |
|
|
27 |
#include "win_types.h" |
#include "win_types.h" |
28 |
#include "image.h" |
#include "image.h" |
29 |
|
|
30 |
|
using namespace std; |
31 |
|
|
32 |
class win_font{ |
class win_font{ |
33 |
|
|
34 |
private: |
protected: |
35 |
void erase(); |
void erase(); |
|
void init_in_table(); |
|
36 |
|
|
37 |
bool table_core[WIN_NB_TABLE_CHAR]; |
hash_map<u_int16, image*> glyphs; |
|
|
|
|
image * table; |
|
38 |
|
|
39 |
u_int8 height_; |
u_int8 height_; |
40 |
u_int8 length_; //just for space bar |
u_int8 length_; //just for space bar |
47 |
|
|
48 |
win_font(); |
win_font(); |
49 |
|
|
50 |
~win_font(); |
virtual ~win_font(); |
51 |
|
|
52 |
void load(char *); |
void load(char *); |
53 |
|
|
54 |
// void load_font(char *); |
// void load_font(char *); |
55 |
|
|
56 |
bool in_table(u_int16 tmp); |
virtual bool in_table(u_int16 tmp); |
57 |
|
|
58 |
image & operator[](int); |
virtual image & operator[](u_int16); |
59 |
|
|
60 |
//win_font & operator=(win_font &); |
//win_font & operator=(win_font &); |
61 |
|
|