diff --git a/README.md b/README.md index 69bf1c4..f7165a8 100644 --- a/README.md +++ b/README.md @@ -49,7 +49,7 @@ python main.py 在仓库所在文件夹执行: ``` shell -nuitka --mingw --standalone --onefile --show-progress --show-memory --windows-disable-console --output-dir=out --windows-icon-from-ico=pypvz.ico --include-data-dir=resources=resources --include-data-dir=source/data=source/data --include-data-file=*.ttf=pygame/freesansbold.ttf main.py +nuitka --mingw --standalone --onefile --show-progress --show-memory --windows-disable-console --output-dir=out --windows-icon-from-ico=pypvz.ico --include-data-dir=resources=resources main.py ``` 可执行文件生成路径为`./out/main.exe` diff --git a/freesansbold.ttf b/resources/freesansbold.ttf similarity index 100% rename from freesansbold.ttf rename to resources/freesansbold.ttf diff --git a/resources/huawen.TTF b/resources/huawen.TTF deleted file mode 100644 index 94dc60a..0000000 Binary files a/resources/huawen.TTF and /dev/null differ diff --git a/source/component/menubar.py b/source/component/menubar.py index c154503..7ad38e5 100755 --- a/source/component/menubar.py +++ b/source/component/menubar.py @@ -29,7 +29,7 @@ all_card_list = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16] def getSunValueImage(sun_value): # for pack, must use other ttf - fontPath = os.path.join('resources', 'huawen.TTF') + fontPath = os.path.join('resources', 'freesansbold.ttf') font = pg.font.Font(fontPath, 14) width = 32 msg_image = font.render(str(sun_value), True, c.NAVYBLUE, c.LIGHTYELLOW)