From f548d2e3c0ee97ade9aa037f88571f4d6f851223 Mon Sep 17 00:00:00 2001 From: satbaby Date: Thu, 4 Feb 2010 11:45:37 +0000 Subject: [PATCH] -add: getWidth() git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@255 e54a6e83-5905-42d5-8d5c-058d10e6a962 --- src/driver/fontrenderer.cpp | 5 +++++ src/driver/fontrenderer.h | 1 + 2 files changed, 6 insertions(+) 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);