From dd025e6622b87cabba8f1a50148de79f5bd81442 Mon Sep 17 00:00:00 2001 From: Stefan Seyfried Date: Sat, 25 Feb 2012 14:17:06 +0100 Subject: [PATCH] fontrenderer: fix issue with epgwindow font when FB is scaling --- src/driver/fontrenderer.cpp | 5 +++++ src/driver/fontrenderer.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/driver/fontrenderer.cpp b/src/driver/fontrenderer.cpp index 7cffe2e22..2433388e5 100644 --- a/src/driver/fontrenderer.cpp +++ b/src/driver/fontrenderer.cpp @@ -316,6 +316,11 @@ int Font::getWidth(void) return fontwidth * SCALE_MULT / xmult; } +int Font::getSize(void) +{ + return font.width * SCALE_MULT / xmult; +} + int Font::getHeight(void) { return height * SCALE_MULT / ymult; diff --git a/src/driver/fontrenderer.h b/src/driver/fontrenderer.h index 01f730dbf..3cf830f9e 100644 --- a/src/driver/fontrenderer.h +++ b/src/driver/fontrenderer.h @@ -73,7 +73,7 @@ class Font int getDigitHeight(void); int getDigitOffset(void); int getWidth(void); - int getSize(){return font.width;} + int getSize(void); int setSize(int isize); Font(FBFontRenderClass *render, FTC_FaceID faceid, const int isize, const fontmodifier _stylemodifier);