Details
-
Bug
-
Resolution: Cannot Reproduce
-
P2: Important
-
4.3.0
-
None
-
295250 295253
Description
QFontInfo::fixedPitch can return true for fonts which are not fixedPitch.
On Windows (with a proportional default font) the following creates a UI with Courier New as expected, on X11 (SuSE Linux 10) this prints the debug statement instead.
include <QtGui>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
QFont font;
font.setFixedPitch(true);
QFontInfo fontInfo(font);
if (fontInfo.fixedPitch())
qDebug() << "default font exists in fixed pitch";
else
QTextEdit edit;
edit.show();
return a.exec();
}
Attachments
Issue Links
- relates to
-
QTBUG-54623 Linux/xcb/KDE 5.18: QFontDatabase::systemFont(QFontDatabase::FixedFont) returns proportional font
- Closed
-
QTBUG-34082 QFont does not match fixed width fonts (when not using family name)
- Reported