mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2026-01-01 02:24:52 +00:00
tes nulis in pil 10
This commit is contained in:
parent
bf64b3b0ca
commit
909e6174da
3 changed files with 3 additions and 3 deletions
|
|
@ -94,7 +94,7 @@ python3 --version
|
|||
```
|
||||
apt update -y & apt install libjpeg-dev zlib1g-dev libwebp-dev python3-pip python3-lxml git wget curl lokal ffmpeg tzdata neofetch mediainfo speedtest-cli -y
|
||||
```
|
||||
- Instal requirements.txt, jika menggunakan python 3.11, Anda harus menambahkan parameter `--break-system-packages` atau gunakan venv saat menginstal.<br/>
|
||||
- Instal requirements.txt, jika menggunakan python 3.11, Anda harus menggunakan opsi venv saat menginstal.<br/>
|
||||
*Python < 3.10*
|
||||
```
|
||||
pip3 install -r requirements.txt
|
||||
|
|
|
|||
|
|
@ -94,7 +94,7 @@ python3 --version
|
|||
```
|
||||
apt update -y & apt install libjpeg-dev zlib1g-dev libwebp-dev python3-pip python3-lxml git wget curl ffmpeg locales tzdata neofetch mediainfo speedtest-cli -y
|
||||
```
|
||||
- Install requirements.txt, if using python 3.11, you need pass `--break-system-packages` parameter or use venv when install.<br/>
|
||||
- Install requirements.txt, if using python 3.11, you need use venv when install pip package.<br/>
|
||||
*Python < 3.10*
|
||||
```
|
||||
pip3 install -r requirements.txt
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ async def handwrite(client, message):
|
|||
font = ImageFont.truetype("assets/assfont.ttf", 30)
|
||||
x, y = 150, 140
|
||||
lines = text_set(txt)
|
||||
line_height = font.getsize("hg")[1]
|
||||
line_height = font.getbbox("hg")[1]
|
||||
for line in lines:
|
||||
draw.text((x, y), line, fill=(1, 22, 55), font=font)
|
||||
y = y + line_height - 5
|
||||
|
|
|
|||
Loading…
Reference in a new issue