From 8b649a7fa73b9449597b1cf3513e75c8f4733002 Mon Sep 17 00:00:00 2001 From: anbr Date: Thu, 29 Apr 2010 20:44:38 +0200 Subject: Allow setup font size Show current time, on dual line mode --- ffont.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'ffont.c') 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); -- cgit v1.2.3