summaryrefslogtreecommitdiff
path: root/ffont.c
diff options
context:
space:
mode:
authoranbr <vdr07@deltab.de>2010-04-29 20:44:38 +0200
committeranbr <vdr07@deltab.de>2010-04-29 20:44:38 +0200
commit8b649a7fa73b9449597b1cf3513e75c8f4733002 (patch)
tree56f81ffe7b1360b739ecede52939ea0af0148b71 /ffont.c
parentc69752e202af6ccc3caa5857b6fa2da0729b8ffa (diff)
downloadvdr-plugin-targavfd-0.0.4.tar.gz
vdr-plugin-targavfd-0.0.4.tar.bz2
Allow setup font size0.0.4
Show current time, on dual line mode
Diffstat (limited to 'ffont.c')
-rw-r--r--ffont.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ffont.c b/ffont.c
index 2afac15..8aa15b0 100644
--- a/ffont.c
+++ b/ffont.c
@@ -83,10 +83,10 @@ cVFDFont::cVFDFont(const char *Name, int CharHeight, int CharWidth)
}
else {
error = FT_Set_Char_Size(face, // handle to face object
- CharWidth * 64, // CharWidth in 1/64th of points
- CharHeight * 64, // CharHeight in 1/64th of points
- 0, // horizontal device resolution
- 0); // vertical device resolution
+ CharWidth << 6, // CharWidth in 1/64th of points
+ CharHeight << 6, // CharHeight in 1/64th of points
+ CharWidth > 8 ? 64 : 80, // horizontal device resolution
+ 72); // vertical device resolution
if (!error) {
height = ((face->size->metrics.ascender-face->size->metrics.descender) + 63) / 64;
bottom = abs((face->size->metrics.descender - 63) / 64);