X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fgraphics%2FFont.h;h=c879dcedf73e4fc8a6803cac9651e1e7c0e538af;hb=e518ac67cf94e244df16078dcbc536e6b659e758;hp=6a8a5c23c11e500e73969aecb9198550d6ce0b5e;hpb=9648fd7d258ae1a2baccb8dd5b6f7a9491e55803;p=l2e.git diff --git a/src/graphics/Font.h b/src/graphics/Font.h index 6a8a5c2..c879dce 100644 --- a/src/graphics/Font.h +++ b/src/graphics/Font.h @@ -1,10 +1,3 @@ -/* - * Font.h - * - * Created on: Aug 8, 2012 - * Author: holy - */ - #ifndef GRAPHICS_FONT_H_ #define GRAPHICS_FONT_H_ @@ -29,6 +22,9 @@ public: public: int CharWidth() const { return sprite->Width(); } int CharHeight() const { return sprite->Height(); } + int StringWidth(const char *) const; + int StringHeight(const char *) const; + void DrawChar(char c, SDL_Surface *dest, const geometry::Vector &position) const; void DrawString(const char *s, SDL_Surface *dest, const geometry::Vector &position, int maxWidth = 0) const; void DrawStringRight(const char *s, SDL_Surface *dest, const geometry::Vector &position, int maxWidth = 0) const;