mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-26 04:58:49 +03:00
Enable high dpi
This commit is contained in:
parent
4a7b005c64
commit
e3acb533ad
1 changed files with 2 additions and 0 deletions
|
@ -28,6 +28,8 @@ int main(int argc, char *argv[])
|
||||||
QCoreApplication::setApplicationName("nheko");
|
QCoreApplication::setApplicationName("nheko");
|
||||||
QCoreApplication::setApplicationVersion("Ωμέγa");
|
QCoreApplication::setApplicationVersion("Ωμέγa");
|
||||||
QCoreApplication::setOrganizationName("Nheko");
|
QCoreApplication::setOrganizationName("Nheko");
|
||||||
|
QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
|
||||||
|
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
|
||||||
|
|
||||||
QFontDatabase::addApplicationFont(":/fonts/fonts/OpenSans/OpenSans-Regular.ttf");
|
QFontDatabase::addApplicationFont(":/fonts/fonts/OpenSans/OpenSans-Regular.ttf");
|
||||||
QFontDatabase::addApplicationFont(":/fonts/fonts/OpenSans/OpenSans-Italic.ttf");
|
QFontDatabase::addApplicationFont(":/fonts/fonts/OpenSans/OpenSans-Italic.ttf");
|
||||||
|
|
Loading…
Reference in a new issue