3 * - By John Hodge (thePowersGang)
6 * - Text drawing classes
8 #ifndef _DRAW_TEXT_HPP_
9 #define _DRAW_TEXT_HPP_
11 #include "IFontFace.hpp"
21 CRect Size(const ::std::string& text, unsigned int Size) const override;
22 void Render(CSurface& dest, const CRect& rect, const ::std::string& text, unsigned int Size) override;
24 void renderAtRes(CSurface& dest, const CRect& rect, uint32_t cp, unsigned int Size, uint32_t FGC);
25 static uint8_t getValueAtPt(const uint8_t* char_ptr, unsigned int xf16, unsigned int yf16);
26 static uint8_t getValueAtRaw(const uint8_t* char_ptr, unsigned int x, unsigned int y);
27 unsigned int unicodeToCharmap(uint32_t cp) const;
36 CFontFT(const char *Filename);
39 CRect Size(const ::std::string& text, unsigned int Size) const override;
40 void Render(CSurface& dest, const CRect& rect, const ::std::string& text, unsigned int Size) override;
42 #endif // FREETYPE_ENABLED