Skip to content

Commit

Permalink
使用ASCII+GBK2312重新压缩了字体
Browse files Browse the repository at this point in the history
  • Loading branch information
SunnySlopes committed Feb 13, 2023
1 parent a5f536c commit dabf4fa
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 2 deletions.
Binary file modified rc/fonts/AlibabaPuHuiTi-2-105-Heavy.ttf
Binary file not shown.
Binary file modified rc/fonts/AlibabaPuHuiTi-2-55-Regular.ttf
Binary file not shown.
Binary file removed rc/fonts/JetBrainsMono-Regular.ttf
Binary file not shown.
Binary file added rc/fonts/JetBrainsMonoNL-Regular.ttf
Binary file not shown.
2 changes: 1 addition & 1 deletion rc/style.qrc
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,6 @@
<file>dark.qss</file>
<file>fonts/AlibabaPuHuiTi-2-55-Regular.ttf</file>
<file>fonts/AlibabaPuHuiTi-2-105-Heavy.ttf</file>
<file>fonts/JetBrainsMono-Regular.ttf</file>
<file>fonts/JetBrainsMonoNL-Regular.ttf</file>
</qresource>
</RCC>
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ int main(int argc, char *argv[])
if (fontid >= 0)
{
QFontDatabase::addApplicationFont(":/fonts/AlibabaPuHuiTi-2-105-Heavy.ttf");
int fontid_mono = QFontDatabase::addApplicationFont(":/fonts/JetBrainsMono-Regular.ttf");
int fontid_mono = QFontDatabase::addApplicationFont(":/fonts/JetBrainsMonoNL-Regular.ttf");

static QFont font_default = QFontDatabase::applicationFontFamilies(fontid).at(0);
font_default.setPointSize(10);
Expand Down

0 comments on commit dabf4fa

Please sign in to comment.