From f567c3e994871f6e95299f9365b1060f7ee81223 Mon Sep 17 00:00:00 2001 From: kramm Date: Mon, 12 Jul 2004 09:41:17 +0000 Subject: [PATCH] fixed TTF leading. --- lib/modules/swffont.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/modules/swffont.c b/lib/modules/swffont.c index d039ae4..bfaa1a4 100644 --- a/lib/modules/swffont.c +++ b/lib/modules/swffont.c @@ -133,7 +133,7 @@ SWFFONT* swf_LoadTrueTypeFont(char*filename) font->layout->ascent = face->ascender*20/FT_SUBPIXELS; //face->bbox.xMin; font->layout->descent = abs(face->descender)*20/FT_SUBPIXELS; //face->bbox.xMax; - font->layout->leading = -face->bbox.xMin*20/FT_SUBPIXELS; + font->layout->leading = abs(face->bbox.yMin - face->bbox.yMax); //-face->bbox.xMin*20/FT_SUBPIXELS; font->layout->kerningcount = 0; name = FT_Get_Postscript_Name(face); -- 1.7.10.4