Skip to content

Commit 8547f2e

Browse files
committed
update
1 parent e177880 commit 8547f2e

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/update.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
3838
- name: Install fonts
3939
run: |
40-
sudo apt install fonts-noto-color-emoji
40+
sudo apt install fonts-noto-color-emoji libgl1-mesa-glx libgl1-mesa-dri
4141
sudo mkdir /usr/share/fonts/myfonts
4242
sudo cp main/resources/fonts/* /usr/share/fonts/myfonts/
4343
fc-cache -fv

memes/operator_generator/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,12 @@ def operator_generator(images: list[BuildImage], texts: list[str], args):
1717
frame.draw_text(
1818
(120, 0, 620, 100),
1919
f"{name},你的干员信息如下:",
20-
fontsize=80,
20+
max_fontsize=80,
21+
min_fontsize=30,
2122
fill="white",
2223
stroke_fill="black",
2324
stroke_ratio=0.1,
24-
weight="bold",
25+
font_style="bold",
2526
allow_wrap=True,
2627
lines_align="center",
2728
)

0 commit comments

Comments
 (0)