Adonthell
0.4
win_font.h
1
/*
2
(C) Copyright 2000 Joel Vennin
3
Part of the Adonthell Project <http://adonthell.nongnu.org>
4
5
Adonthell is free software; you can redistribute it and/or modify
6
it under the terms of the GNU General Public License as published by
7
the Free Software Foundation; either version 2 of the License, or
8
(at your option) any later version.
9
10
Adonthell is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
GNU General Public License for more details.
14
15
You should have received a copy of the GNU General Public License
16
along with Adonthell. If not, see <http://www.gnu.org/licenses/>.
17
*/
18
19
#ifndef _WIN_FONT_H_
20
#define _WIN_FONT_H_
21
22
#include <iostream>
23
#include <stdlib.h>
24
#include <string.h>
25
26
#include "
str_hash.h
"
27
#include "win_types.h"
28
#include "
image.h
"
29
30
using namespace
std;
31
32
class
win_font
{
33
34
protected
:
35
void
erase();
36
37
hash_map<u_int16, image*> glyphs;
38
39
u_int8
height_;
40
u_int8
length_;
//just for space bar
41
42
public
:
43
44
win_font
(
char
*);
45
46
win_font
(
win_font
&);
47
48
win_font
();
49
50
virtual
~
win_font
();
51
52
void
load(
char
*);
53
54
// void load_font(char *);
55
56
virtual
bool
in_table(
u_int16
tmp);
57
58
virtual
image
& operator[](
u_int16
);
59
60
virtual
s_int8
kerning(
const
u_int16
& char1,
const
u_int16
& char2)
61
{
62
return
0;
63
}
64
65
//win_font & operator=(win_font &);
66
67
u_int16
height(){
return
height_;}
68
69
u_int16
length(){
return
length_;}
70
71
image
* cursor;
72
73
};
74
75
#endif
76
str_hash.h
Declares the hash<string> type, to be able to declare hash_maps with strings as keys.
u_int8
#define u_int8
8 bits long unsigned integer
Definition:
types.h:35
s_int8
#define s_int8
8 bits long signed integer
Definition:
types.h:44
image.h
Declares the image class.
image
Image manipulation class.
Definition:
image.h:45
win_font
Definition:
win_font.h:32
u_int16
#define u_int16
16 bits long unsigned integer
Definition:
types.h:38
src
win_font.h
Generated by
1.8.17