From: Felix Domke Date: Fri, 20 May 2005 19:34:55 +0000 (+0000) Subject: - use "xadvance" instead of "glpyh->width" as bounding box width X-Git-Tag: 2.6.0~5833 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/09d0105821c71f6f78f40bf84ad5d82b70bcb7ea - use "xadvance" instead of "glpyh->width" as bounding box width --- 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();