Skip to content

Commit

Permalink
🐛 fix font issue on other platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
Reverier-Xu committed May 29, 2024
1 parent 5e64a38 commit 5c4631a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion desktop/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,9 @@ int main(int argc, char* argv[]) {

QFontDatabase::addApplicationFont(":/resources/fonts/reverier-mono-regular.ttf");
auto defaultFont = QFont();
auto fontFamilies = QStringList() << "Reverier Mono" << "Noto Sans CJK SC" << "PingFang SC" << "Microsoft YaHei" << "Hiragino Sans GB" << "Source Han Sans CN" << "Noto Sans";
auto fontFamilies = QStringList() << "Reverier Mono" << "Source Han Sans CN" << "Noto Sans CJK SC" << "PingFang SC" << "Microsoft YaHei" << "Hiragino Sans GB" << "Noto Sans";
defaultFont.setFamilies(fontFamilies);
defaultFont.setPixelSize(16);

QApplication::setFont(defaultFont);
QString link = parser.positionalArguments().isEmpty() ? "" : parser.positionalArguments().first();
Expand Down

0 comments on commit 5c4631a

Please sign in to comment.