diff options
author | anbr <vdr07@deltab.de> | 2010-04-29 20:44:38 +0200 |
---|---|---|
committer | anbr <vdr07@deltab.de> | 2010-04-29 20:44:38 +0200 |
commit | 8b649a7fa73b9449597b1cf3513e75c8f4733002 (patch) | |
tree | 56f81ffe7b1360b739ecede52939ea0af0148b71 /ffont.c | |
parent | c69752e202af6ccc3caa5857b6fa2da0729b8ffa (diff) | |
download | vdr-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.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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); |