From 893ead736aab4a50c30302a267ab21e41cae443e Mon Sep 17 00:00:00 2001 From: Raykosan <71210053+Raykosan@users.noreply.github.com> Date: Mon, 16 Mar 2026 21:02:24 +0300 Subject: [PATCH] Added the use of OTF fonts --- Rayko_Save_Image.py | 2 +- Rayko_Save_Image_Pair.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Rayko_Save_Image.py b/Rayko_Save_Image.py index e7bcb20..3184c88 100644 --- a/Rayko_Save_Image.py +++ b/Rayko_Save_Image.py @@ -11,7 +11,7 @@ print("\033[93m🦊\033[0m \033[93mRaykoStudio - RS Save Image \033[92mLOADED\03 def get_font_list(font_dir): if not os.path.isdir(font_dir): return [] - return [f for f in os.listdir(font_dir) if f.lower().endswith('.ttf', '.otf')] + return [f for f in os.listdir(font_dir) if f.lower().endswith(('.ttf', '.otf'))] def create_text_panel(width, height, text, font_path, font_size, text_color, bg_color): panel = Image.new('RGB', (width, height), color=bg_color) diff --git a/Rayko_Save_Image_Pair.py b/Rayko_Save_Image_Pair.py index 28a6824..0b7a417 100644 --- a/Rayko_Save_Image_Pair.py +++ b/Rayko_Save_Image_Pair.py @@ -11,7 +11,7 @@ print("\033[93m🦊\033[0m \033[93mRaykoStudio - RS Save Image Pair \033[92mLOAD def get_font_list(font_dir): if not os.path.isdir(font_dir): return [] - return [f for f in os.listdir(font_dir) if f.lower().endswith('.ttf', '.otf')] + return [f for f in os.listdir(font_dir) if f.lower().endswith(('.ttf', '.otf'))] def create_text_panel(width, height, text, font_path, font_size, text_color, bg_color): panel = Image.new('RGB', (width, height), color=bg_color)