Fix font size/dpi issues.
Take into account Qt default dpi of 96 when calling any
QTextDocument methods (other than font size) that deal with
measurements.