ecere/gfx/LFBDisplayDriver: Fixed wrong returned 'ascent' on Font
authorJerome St-Louis <jerome@ecere.com>
Mon, 10 Nov 2014 10:20:10 +0000 (05:20 -0500)
committerJerome St-Louis <jerome@ecere.com>
Sun, 15 Feb 2015 18:47:34 +0000 (13:47 -0500)
ecere/src/gfx/drivers/LFBDisplayDriver.ec

index bbe5615..b427193 100644 (file)
@@ -415,6 +415,8 @@ class GlyphPack : BTNode
             }
             //FT_Set_Char_Size(fontEntry.face, (int)(font.size * 64), (int)(font.size * 64), 96, 96);
             fontEntry.scale = FaceSetCharSize(fontEntry.face, font.size);
+            if(!font.scale)
+               font.scale = fontEntry.scale;
             if(!c)
             {
                if(!fontEntry.face->units_per_EM)