diff --git a/src/driver/fontrenderer.cpp b/src/driver/fontrenderer.cpp index 2b38a9632..ec9a885e8 100644 --- a/src/driver/fontrenderer.cpp +++ b/src/driver/fontrenderer.cpp @@ -299,6 +299,11 @@ return 0; return temp; } +int Font::getWidth(void) +{ + return fontwidth; +} + int Font::getHeight(void) { return height; diff --git a/src/driver/fontrenderer.h b/src/driver/fontrenderer.h index c196c0024..28d519ea7 100644 --- a/src/driver/fontrenderer.h +++ b/src/driver/fontrenderer.h @@ -68,6 +68,7 @@ class Font int getRenderWidth(const char * text, const bool utf8_encoded = false); int getRenderWidth(const std::string & text, const bool utf8_encoded = false); int getHeight(void); + int getWidth(void); int getSize(){return font.width;} int setSize(int isize);