From 09d0105821c71f6f78f40bf84ad5d82b70bcb7ea Mon Sep 17 00:00:00 2001 From: Felix Domke Date: Fri, 20 May 2005 19:34:55 +0000 Subject: [PATCH] - use "xadvance" instead of "glpyh->width" as bounding box width --- lib/gdi/font.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/gdi/font.cpp b/lib/gdi/font.cpp index cc244941..ef92d53a 100644 --- a/lib/gdi/font.cpp +++ b/lib/gdi/font.cpp @@ -332,6 +332,7 @@ int eTextPara::appendGlyph(Font *current_font, FT_Face current_face, FT_UInt gly ng.bbox.setHeight( glyph->height ); xadvance+=kern; + ng.bbox.setWidth(xadvance); ng.x=cursor.x()+kern; ng.y=cursor.y(); -- 2.30.2