#include #include #include #include #include #include using namespace Qt::Literals; int main(int argc, char **argv) { qputenv("QT_SCALE_FACTOR", "2"); QApplication app(argc, argv); QWidget root; QVBoxLayout layout(&root); QLabel lbl(u"๐Ÿ˜‚๐ŸŽŽ๐ŸŽ๐ŸŽ ๐ŸŽ‘๐ŸŽ๐ŸŽข๐Ÿ‘”๐Ÿงต๐Ÿ˜˜๐Ÿ˜‹๐Ÿ˜—"_s); auto id = QFontDatabase::addApplicationFont( u"G:\\Dev\\funqtapp\\Twemoji.Mozilla.ttf"_s); auto fonts = QFontDatabase::applicationFontFamilies(id); QFont font(fonts[0]); lbl.setFont(font); layout.addWidget(&lbl); root.show(); return app.exec(); }