Hello everybody,
BOLD-hint on Arial seems to fail. Can anybody tell why and how to workaround?
font.setFamily("Arial");
font.setPointSizeF(7);
font.setBold(true);
qDebug() << font.bold() << font.weight(); // returns: true 75
QFontDialog dialog
(this);
// or QFontDialog dialog(font, this); dialog.setCurrentFont(font);
font = dialog.getFont(&ok, font, this);
QFont font;
font.setFamily("Arial");
font.setPointSizeF(7);
font.setBold(true);
qDebug() << font.bold() << font.weight(); // returns: true 75
QFontDialog dialog(this); // or QFontDialog dialog(font, this);
dialog.setCurrentFont(font);
font = dialog.getFont(&ok, font, this);
To copy to clipboard, switch view to plain text mode
Opens the dialog. But weight is set to standard. This happens on ARIAL and on initial opening only. After I switched trough the dialog to bold, the next launch is set properly. Why is that?
Tried various other fonts, worked fine.
I also would like to learn, why I can't set PointSizeF to i.e. 7.5. User experience on my windows systems show that it is possible (i.e. MS-Office)
Thanks in advance, Lars
Bookmarks