diff -r 89e065397ea6 -r e24348a560a6 src/gui/painting/qpainter.cpp --- a/src/gui/painting/qpainter.cpp Thu May 27 13:40:48 2010 +0300 +++ b/src/gui/painting/qpainter.cpp Fri Jun 11 14:24:45 2010 +0300 @@ -5773,12 +5773,17 @@ gf.glyphs = engine.shapedGlyphs(&si); gf.chars = engine.layoutData->string.unicode() + si.position; gf.num_chars = engine.length(item); - gf.width = si.width; + if (engine.forceJustification) { + for (int j=0; j