Set correct size for text items with antialiasing disabled

QTextDocument seems to give correct size only after it is visible.