summaryrefslogtreecommitdiff
path: root/ffont.c
diff options
context:
space:
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);