From 909e6174daf9580a4f27dbfacfebeedcc25398a6 Mon Sep 17 00:00:00 2001 From: yasirarism <55983182+yasirarism@users.noreply.github.com> Date: Wed, 12 Jul 2023 13:31:23 +0700 Subject: [PATCH] tes nulis in pil 10 --- README.id.md | 2 +- README.md | 2 +- misskaty/plugins/nulis.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.id.md b/README.id.md index 3c7c69e8..3f802972 100644 --- a/README.id.md +++ b/README.id.md @@ -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.
+- Instal requirements.txt, jika menggunakan python 3.11, Anda harus menggunakan opsi venv saat menginstal.
*Python < 3.10* ``` pip3 install -r requirements.txt diff --git a/README.md b/README.md index c4657b0d..f0b670ff 100644 --- a/README.md +++ b/README.md @@ -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.
+- Install requirements.txt, if using python 3.11, you need use venv when install pip package.
*Python < 3.10* ``` pip3 install -r requirements.txt diff --git a/misskaty/plugins/nulis.py b/misskaty/plugins/nulis.py index eb7faf38..c723d057 100644 --- a/misskaty/plugins/nulis.py +++ b/misskaty/plugins/nulis.py @@ -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