X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;ds=sidebyside;f=include%2Ffreenet%2Fcaptcha%2Ffreeimage%2Ffont.h;fp=include%2Ffreenet%2Fcaptcha%2Ffreeimage%2Ffont.h;h=047cd19e6953db7104a151891003dc58dcea1688;hb=822f84f5dac64183c556bd86fea8cd7b0527f528;hp=0000000000000000000000000000000000000000;hpb=fcb124f8d6d3f5678e82049fb8e5e23c8cfaec6d;p=fms.git diff --git a/include/freenet/captcha/freeimage/font.h b/include/freenet/captcha/freeimage/font.h new file mode 100644 index 0000000..047cd19 --- /dev/null +++ b/include/freenet/captcha/freeimage/font.h @@ -0,0 +1,33 @@ +#ifndef _freeimage_font_ +#define _freeimage_font_ + +#include "bitmap.h" + +namespace FreeImage +{ + +class Font +{ +public: + Font(); + Font(const Bitmap &bmp); + ~Font(); + + const bool Load(const Bitmap &bmp); + + const Bitmap &Char(const int num); + + const int FontWidth() const { return m_fontwidth; } + const int FontHeight() const { return m_fontheight; } + +private: + int m_fontwidth; + int m_fontheight; + Bitmap m_blank; + std::vector m_chars; + +}; + +} + +#endif // _freeimage_font_