- use "xadvance" instead of "glpyh->width" as bounding box width
authorFelix Domke <tmbinc@elitedvb.net>
Fri, 20 May 2005 19:34:55 +0000 (19:34 +0000)
committerFelix Domke <tmbinc@elitedvb.net>
Fri, 20 May 2005 19:34:55 +0000 (19:34 +0000)
lib/gdi/font.cpp

index cc2449417bd0f5ec57bdf21e9f9d1e2233b62cbf..ef92d53a2a5165922151e97d428405c4a8e6b1bf 100644 (file)
@@ -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();