version 0.3.14
[fms.git] / include / freenet / captcha / freeimage / font.h
1 #ifndef _freeimage_font_\r
2 #define _freeimage_font_\r
3 \r
4 #include "bitmap.h"\r
5 \r
6 namespace FreeImage\r
7 {\r
8 \r
9 class Font\r
10 {\r
11 public:\r
12         Font();\r
13         Font(const Bitmap &bmp);\r
14         ~Font();\r
15         \r
16         const bool Load(const Bitmap &bmp);\r
17 \r
18         const Bitmap &Char(const int num);\r
19 \r
20         const int FontWidth() const             { return m_fontwidth; }\r
21         const int FontHeight() const    { return m_fontheight; }\r
22 \r
23 private:\r
24         int m_fontwidth;\r
25         int m_fontheight;\r
26         Bitmap m_blank;\r
27         std::vector<Bitmap> m_chars;\r
28 \r
29 };\r
30 \r
31 }\r
32 \r
33 #endif  // _freeimage_font_\r