From 4d38bc19269f07ae88e6570fafd776dd69fe247a Mon Sep 17 00:00:00 2001 From: miteruzo Date: Sun, 3 Dec 2023 07:16:44 +0900 Subject: [PATCH] =?UTF-8?q?=E7=B8=81=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/main.py b/main.py index 7641afe..355b32c 100644 --- a/main.py +++ b/main.py @@ -26,6 +26,8 @@ class Main: live_chat = pytchat.create (video_id = YOUTUBE_ID) system_font = pygame.font.SysFont ('notosanscjkjp', 24) + system_font_outline = pygame.font.SysFont ('notosanscjkjp', 24, + bold = True) user_font = pygame.font.SysFont ('notosanscjkjp', 32, italic = True) nizika_font = pygame.font.SysFont ('07nikumarufont', 50) @@ -64,6 +66,11 @@ class Main: time.sleep (10) + screen.blit ( + system_font_outline.render ( + f'live_chat.is_alive () == {live_chat.is_alive ()}', + True, (255, 255, 255)), + (0, 0)) screen.blit ( system_font.render ( f'live_chat.is_alive () == {live_chat.is_alive ()}',