diff --git a/res/Throne.qrc b/res/Throne.qrc index 8e43448..8ab9a23 100644 --- a/res/Throne.qrc +++ b/res/Throne.qrc @@ -24,4 +24,7 @@ public/Tun.png dashboard-notice.html + + font/NotoColorEmoji.ttf + diff --git a/res/font/NotoColorEmoji.ttf b/res/font/NotoColorEmoji.ttf new file mode 100644 index 0000000..943741d Binary files /dev/null and b/res/font/NotoColorEmoji.ttf differ diff --git a/src/main.cpp b/src/main.cpp index d826455..8dfcec1 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -21,6 +21,7 @@ #endif #ifdef Q_OS_LINUX #include "include/sys/linux/desktopinfo.h" +#include #endif void signal_handler(int signum) { @@ -67,6 +68,11 @@ int main(int argc, char* argv[]) { QApplication::setQuitOnLastWindowClosed(false); QApplication a(argc, argv); +#ifdef Q_OS_LINUX + // Load the emoji font only on Linux + QFontDatabase::addApplicationFont(":/font/notoEmoji"); +#endif + // Clean QDir::setCurrent(QApplication::applicationDirPath()); if (QFile::exists("updater.old")) {