Details
-
Bug
-
Resolution: Out of scope
-
P2: Important
-
4.5.2
-
None
-
Qt/Embedded Linux
Description
Try the following code:
QFont testFont;
qDebug() << QFontMetrics(testFont).size(0, "abcdefg") << QFontMetrics(testFont).boundingRect("abcdefg");
testFont.setLetterSpacing(QFont::PercentageSpacing, 200);
qDebug() << QFontMetrics(testFont).size(0, "abcdefg") << QFontMetrics(testFont).boundingRect("abcdefg");
In the first qDebug output, the numbers will be fairly similar; in the second, the boundingRect will be much narrower.