#ifndef GRAPHICS_FONT_H_ #define GRAPHICS_FONT_H_ #include #include class Texture; class Batch2D; #define STYLE_NONE 0 #define STYLE_SHADOW 1 #define STYLE_OUTLINE 2 class Font { int lineHeight_; public: std::vector pages; Font(std::vector pages, int lineHeight); ~Font(); int lineHeight() const; int calcWidth(std::wstring text); // int getGlyphWidth(char c); bool isPrintableChar(int c); void draw(Batch2D* batch, std::wstring text, int x, int y); void draw(Batch2D* batch, std::wstring text, int x, int y, int style); }; #endif /* GRAPHICS_FONT_H_ */