- 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 cc24494..ef92d53 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();