Today the string spacing is calculated fixed, independent from the used font and font size. This is not helpful if you e.g. want to have the tabs printed bigger or shown bigger on screen.
The attached patch calculates the string spacing on initializing the font resource. Therefore a painter is initialized which calculates the height of the example string '1'.