Fix text extent metrics with spaces in wxQT