字体改变
This commit is contained in:
parent
95164d1ced
commit
8885d7d0f4
@ -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`
|
||||
|
||||
Binary file not shown.
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user