diff -uNr unity-5.8.0.orig/plugins/unityshell/src/StaticCairoText.cpp unity-5.8.0/plugins/unityshell/src/StaticCairoText.cpp --- unity-5.8.0.orig/plugins/unityshell/src/StaticCairoText.cpp 2012-03-23 11:53:16.000000000 +0000 +++ unity-5.8.0/plugins/unityshell/src/StaticCairoText.cpp 2012-03-24 08:11:49.958527064 +0000 @@ -375,9 +375,15 @@ // logRect has some issues using italic style if (inkRect.x + inkRect.width > logRect.x + logRect.width) - width = (inkRect.x + inkRect.width - logRect.x) /PANGO_SCALE; + { + width = (inkRect.x + inkRect.width - logRect.x) / PANGO_SCALE; + width += (inkRect.x + inkRect.width - logRect.x) % PANGO_SCALE == 0 ? 0 : 1; + } else - width = logRect.width / PANGO_SCALE; + { + width = logRect.width / PANGO_SCALE; + width += logRect.width / PANGO_SCALE == 0 ? 0 : 1; + } height = logRect.height / PANGO_SCALE; _cached_extent_height = height;