Commit b0350122 authored by Ronan's avatar Ronan
Browse files

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

parent 7f2c5e92
......@@ -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);
}
// ---------------------------------------------------------------------------
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment