I looked into the code, and I think this may be due to how GetTextExtent works. It seems to take the x and width fields of Pango's logical rect and sum them together to get the text width. (http://bazaar.launchpad.net/~unity-team/unity/trunk/view/head:/plugins/unityshell/src/StaticCairoText.cpp#L365) I'm not sure, but I think it should take just the width of the logical rectangle.
I looked into the code, and I think this may be due to how GetTextExtent works. It seems to take the x and width fields of Pango's logical rect and sum them together to get the text width. (http:// bazaar. launchpad. net/~unity- team/unity/ trunk/view/ head:/plugins/ unityshell/ src/StaticCairo Text.cpp# L365)
I'm not sure, but I think it should take just the width of the logical rectangle.