fontrenderer: fix issue with epgwindow font when FB is scaling

This commit is contained in:
Stefan Seyfried
2012-02-25 14:17:06 +01:00
parent 98e8e0f856
commit dd025e6622
2 changed files with 6 additions and 1 deletions

View File

@@ -316,6 +316,11 @@ int Font::getWidth(void)
return fontwidth * SCALE_MULT / xmult; return fontwidth * SCALE_MULT / xmult;
} }
int Font::getSize(void)
{
return font.width * SCALE_MULT / xmult;
}
int Font::getHeight(void) int Font::getHeight(void)
{ {
return height * SCALE_MULT / ymult; return height * SCALE_MULT / ymult;

View File

@@ -73,7 +73,7 @@ class Font
int getDigitHeight(void); int getDigitHeight(void);
int getDigitOffset(void); int getDigitOffset(void);
int getWidth(void); int getWidth(void);
int getSize(){return font.width;} int getSize(void);
int setSize(int isize); int setSize(int isize);
Font(FBFontRenderClass *render, FTC_FaceID faceid, const int isize, const fontmodifier _stylemodifier); Font(FBFontRenderClass *render, FTC_FaceID faceid, const int isize, const fontmodifier _stylemodifier);