version 0.3.17
[fms.git] / include / freenet / captcha / alternatecaptchafonts.h
1 #ifndef _alternatecaptcha_fonts_\r
2 #define _alternatecaptcha_fonts_\r
3 \r
4 #ifdef ALTERNATE_CAPTCHA\r
5 \r
6 #include "../../ilogger.h"\r
7 #include "freeimage/bitmap.h"\r
8 #include "freeimage/font.h"\r
9 #include <vector>\r
10 \r
11 class AlternateCaptchaFonts:public ILogger\r
12 {\r
13 public:\r
14         AlternateCaptchaFonts();\r
15         \r
16         const std::vector<FreeImage::Font> &Fonts() const               { return m_fonts; }\r
17 \r
18 private:\r
19         void LoadFonts();\r
20 \r
21         static bool m_fontsloaded;\r
22         static std::vector<FreeImage::Font> m_fonts;\r
23 \r
24 };\r
25         \r
26 #endif  // ALTERNATE_CAPTCHA\r
27 \r
28 #endif  // _alternatecaptcha_fonts_\r