X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fgraphics%2FFont.h;fp=src%2Fgraphics%2FFont.h;h=a5d7b12d690019f0dfd070cd759cc1591521a94d;hb=2590fad63e8a2013c1a169c77f21931bc19f2f25;hp=6a8a5c23c11e500e73969aecb9198550d6ce0b5e;hpb=1852ed1ca9ccfb63183fec12efeeaccc211a9f72;p=l2e.git diff --git a/src/graphics/Font.h b/src/graphics/Font.h index 6a8a5c2..a5d7b12 100644 --- a/src/graphics/Font.h +++ b/src/graphics/Font.h @@ -29,6 +29,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;