Use QFontMatricies to calculate the size and height of lines of text
Update the text scaling for each line so that it fits in with the position of the last character on the line +dx . Scale up if the font isn't big enough
Set the text height scaling, throughout based on the maximum text height and the line spacing that's been calculated as another feature.