fix(src/main): fix font size on mac os (NEXT TRY!)

This commit is contained in:
Ronan Abhamon 2017-06-07 16:28:13 +02:00
parent 7f2c5e92a0
commit b0350122c5

View file

@ -98,10 +98,10 @@ int main (int argc, char *argv[]) {
#ifdef Q_OS_MACOS
// 72 dpi on MacOs...
font.setPointSizeF(font.pointSize() * 96.0 / 72.0);
font.setPixelSize(10 * QApplication::primaryScreen()->physicalDotsPerInch() / 72.0);
#endif // ifdef Q_OS_MACOS
app.setFont(QFont(DEFAULT_FONT));
app.setFont(font);
}
// ---------------------------------------------------------------------------