version 0.3.14
[fms.git] / include / freenet / captcha / freeimage / font.h
diff --git a/include/freenet/captcha/freeimage/font.h b/include/freenet/captcha/freeimage/font.h
new file mode 100644 (file)
index 0000000..047cd19
--- /dev/null
@@ -0,0 +1,33 @@
+#ifndef _freeimage_font_\r
+#define _freeimage_font_\r
+\r
+#include "bitmap.h"\r
+\r
+namespace FreeImage\r
+{\r
+\r
+class Font\r
+{\r
+public:\r
+       Font();\r
+       Font(const Bitmap &bmp);\r
+       ~Font();\r
+       \r
+       const bool Load(const Bitmap &bmp);\r
+\r
+       const Bitmap &Char(const int num);\r
+\r
+       const int FontWidth() const             { return m_fontwidth; }\r
+       const int FontHeight() const    { return m_fontheight; }\r
+\r
+private:\r
+       int m_fontwidth;\r
+       int m_fontheight;\r
+       Bitmap m_blank;\r
+       std::vector<Bitmap> m_chars;\r
+\r
+};\r
+\r
+}\r
+\r
+#endif // _freeimage_font_\r